Simple scenario:
You have 3 textboxes on the screen (txt1, txt2, txt3). When the focus leaves (onBlur) txt1 I want to manually set the focus to txt2 only if the reason focus was lost on txt1 was due to the tab button.
onBlur event has a keyCode (event.keyCode) of zero (0) (tab key keyCode is...
Known issue. A RadioButton inside a Reapeter/Datagrid has it's Name (GroupName) altered by INamingContainer rendering the grouping of RadioButtons useless. Micosoft has provided a javascript solution but that is not do-able in the application I am working on.
So I created my own Repeater...
Not sure I understand the question or where you are going with this. I do not want to implement any other logic mearly to retireve the last page. Currently I am storing this as a session value, which sucks. Just can't believe Microsoft did not deal with the pitfalls of Server.Transfer that...
This has stuck in my craw for some time and it would seem I can not find any simple solution.
Simply, when using Server.Transfer how can I get the last page the user was on (URLReferrer does not work).
Thinking of implementing a stack like the DOM history object but gads, this should be more...
I am trying to determine the memory footprint of a object I am stroing to a custom cache object. The object is a HybridDictionary containing collections and property bags. Marshal.SizeOF() does not work (I point you toward a discussion that got nowhere on this topic...
Noticed in a datagrid that has linkbuttons the LinkBUttons get highlighted when you click on them. The row where the linkbutton was clicked will show the linkbutton as "visited" (highlighted) even after rebinding the datagrid and/or paging.
Any input on how to clear the linkbutton's highlight?
Hi.
I created a Custom DropDownList that inherits from WebControl. The Custom DropDownList creates a DropDownList and a RequiredFeidlValidator in the CreateChildControls() event. This control works 100%.
I created a custom RadioButtonList in the exact same manner as I described above...
So I went ahead an crated a control with a Textbox and a ReqFieldValidator.
I created another control that uses the above control. In the new control I want to be able to point to the Textbox in the above control as the ControlToValidate. I keep geeting the following error :
Unable to...
I figured that was the an option. Inherit WebControl then have the textbox and validator created in the CreateChildControls. Just was fishing for a way to do so w/o having to expose all of the Texboxes inherent controls manually. 'preciate the response dragonwell!
I would like to create a custom TextBox that has a RequiredFieldValidator on it. I have attempted creating such a control that Inherits from TextBox, adding a RequiredFeildValidator (using Me.Controls.Add) in CreateChildControls. I set the RequiredFeildValidator.ControlToValidate property to...
I created a very simple custom control inherited from CheckBoxList. I created a schema (xsd) to define how intellisense will work in HTML view in the IDE. When I try to add a ListItem to the control in the HTML intellisense I see <MyControlLibrary:ListItem> rather then <asp:ListItem>. Does...
When I create a custom control that inherits from the DropDownList I can Implement INamingContainer but I can not do this for a RadioButtonList (error states that it is already implemented by the RadioButtonList control).
I use an xsd to define a schema for HTML intellisense. For the...
Not wanting users to double-click buttons or navigate from a page after clicking a Save button I incorporated a javascript. The script loops through the form elements using getElementsByTageName('INPUT') then sets the element's disable property to true. I add an attribute to the Save button's...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.