User Profile
Collapse
-
Okay, I do have a workaround, although it's kind of a stupid way to have to do it. Basically, I forget altogether setting the "window.sta tus" variable because it just doens't work. Instead, I always set the "window.default Status" variable. So on the "onmouseove r" event, I set the value to what I want in the "window.default Status" variable. But I have to keep track of the original value before the "onmouseove r"... -
window.status not setting because of form tag
Hi all,
I have a perplexing problem here. I've developed some software using ASP.NET with C# in the code behind. I've been setting the "window.default Status" in the code behind to send messages in the status bar to the user about their last actions (page loaded successfully, record stored successfully, etc.) I've been setting the "window.sta tus" message with the JavaScript "onmouseove r" event for various... -
Yup. Style sheets did it. You're right in that it's still clickable (a hyperlink), but it's hidden from the user that it's a hyperlink because the link doesn't highlight or anything that draws attention to it.
Thanks for the help!
RobertLeave a comment:
-
Controlling menu controls
Hi all,
I'm having a perplexing problem with my menu control using asp.net. Basically, I want a menu control that behaves similar to a Windows menu. For example:
File
- New
- Open
- Save
- Exit
In this instance under Windows, when one clicks on "File", the menu options (submenu) popup and the user can select on New to Exit, but the user cannot choose "File"... -
Firing javascript on Calendar web control
HI all,
Using ASP.NET, I have a calendar web control on my page for which I want to fire an event every time a user double clicks one of the dates. Here is my chunk of code that is suppose to accomplish this by assigning javascript to the "ondblclick " event for each day upon rendering.
Code:protected void thisCalendar_DayRender(object sender, DayRenderEventArgs e) { e.Cell.Attributes.Add("ondblclick",
-
How to manipulate GridView paging
Hi all,
For the life of me, I can't find anything meaningful on this from my current resources, so I'm hoping someone here can help out...
I have a GridView and I have the AllowPaging flag set to TRUE. Functionally, it works great and displays the pages as expected. What I would like to do is manipulate the format for the paging links, such that:
1. When the users hover over the page number (or the first/last... -
Using .htaccess to variably block hotlinking
Hi folks,
I need to combine these two functions and I'm not sure how to go about it. I know how to use .htaccess to prevent anyone from hotlinking the images on my site.
What I basically want to do is to (1) prevent anyone, anywhere from hotlinking my images and (2) prevent anyone from MySpace from hotlinking to my site at all (whether images or otherwise).
Now I currently have my .htaccess like this:... -
Just chalk it up to my own ignorance about how to use the ControlCollecti on object. I'm still learning.
-RLeave a comment:
-
Well, I couldn't quite get your solution to work. I was having problems (1) trying to figure out what row I was on, but I got that solved using a ViewState variable and (2) how did I get to the nested GridView from the ControlCollecti on. In any case, I figured out a way to do it. In my codebehind, I have:
Code:GridView myNestedGridView = (GridView)senderControl.Parent.Parent.Parent.Parent.Parent.FindControl("EmployeeGroupEmployeesEditGridView");
Leave a comment:
-
-
Finding the handle of a nested GridView
Hi folks,
Here's a weird problem...
I have a nested GridView setup (i.e. a GridView within a GridView), and within the nested GridView I have a DropDownList item which has the OnSelectedIndex Changed event set on it. This triggers just fine, but within the codebehind of the OnSelectedIndex Changed event, I need to scan through all the entries in the nested GridView (to see if the user changed a value to an already existing... -
Ah, I found I misstated something in my question. I'm not really populating the field from the codebehind, but rather from javascript. I basically have a modal popup window that grabs a value from the user and when they dismiss the popup, it puts the value into the textbox field. I then would like it to kick off my code (from the OnTextChanged event), which grabs that value.
RobertLeave a comment:
-
OnTextChanged event not firing
Help!
I have an ASP textbox where the OnTextChanged event is not firing. Here's the call:
<asp:TextBox ID="ApproverCop y" runat="server" CssClass="noSho w" OnTextChanged=" StoreNewTrainin gs" AutoPostBack="T rue"></asp:TextBox></TD>
The event fires if I enter the value manually, but not when I do it programmaticall y in the code behind.... -
How to get window.open to open a new window
Hi all,
I'm a bit of a novice with javascript, so be patient with me...
I'm using the "window.ope n" function to open a new window from my page. I actually have several buttons on my page that each opens the same page with the "window.ope n" function, but each time it uses a different parameter. (i.e. window.open('Ne wWindow.html?pa rams=1') versus window.open('Ne wWindow.html?pa rams=2').
... -
Okay.
Basically, in my GridView, I am using an SqlDataSource to populate the view and the SqlDataSource had the SelectCommand set something like this (with much simplified SQL):
START EXAMPLE:
SelectCommand=" select field1, field2 from my table where field1 < 10"
END EXAMPLE:
This was failing to compile because the "<" symbol in the ASP was being interpreted as an...Last edited by Plater; Jun 5 '08, 05:02 PM. Reason: Note: the 2nd code uses the < for the < characterLeave a comment:
-
< or > in my SqlDataSource's SelectCommand
Hello,
Hopefully this is a simple question. I'm using an ASP.NET GridView. I'm setting the SQL in my SelectCommand's SqlDataSource. I have a need to qualify a field with a "<" symbol, but ASP.NET doesn't like it because it thinks I'm trying to insert an html or ASP tag. So how does one get "<" or ">" in the query without the code interpretting it as a tag?
Robert
... -
First of all, thanks for moving the thread to the .NET forum instead. I'm still learning...
Second, thanks for the response. I kind of figured that calling the javascript was the way to do it, but I just couldn't get my head wrapped around it.
Thanks again.
RobertLeave a comment:
-
How to add a Javascript event in codebehind
Hi all,
I know this is a trivial question, but I can't seem to figure it out. Pardon my inarticulation in asking the question...
I'm using ASP.NET such that in the OnLoad event of the codebehind, some javascript is dynamically assigned to a button's "onclick" event. Works as expected if the user clicks on the button. However, I also want this javascript to fire when other events occur on the page (i.e. certain... -
It's right there in the code I listed:
In the nested GridView, the datasource is in the line:
Code:DataSourceID='<%# GetDocuments(Convert.ToInt32(Eval("unit_id"))) %>'
In any case, the solution was not forthcoming so I found another way to solve my problem. I assigned the datasource in the codebehind instead.
...Leave a comment:
-
Nested GridView not binding
Hi folks,
I've got another problem. Basically, I'm trying to use a nested GridView, however the nexted GridView displays no values (even though in debug I'm getting valid values into my DataSet. It's probably a binding issue somewhere, but I'm not sure where.
Here's the ASP (slightly edited to remove verbosity):
Code:<asp:GridView ID="GridViewMain" runat="server" AutoGenerateColumns="False"
No activity results to display
Show More
Leave a comment: