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...
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...
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...
I created my own xsd to define the schema for my controls so intllisense would work in HTML view. I attempted to mimic what was done in asp.xsd to "wire" up an event (<xsd:attribute name="OnDoWhatever" vs:omtype="event" />).
I see the event show up in intellisense but the event I point it to...
I found some great documentation on how to create your own xsd to define hwo intellisense will work for custom controls in HTML view. I need to add an xmlns attribute to the BODY of each WebForm. All the documentation I have found uses a URL for this value but I am working locally. Do I use...
I have a custom control with 2 TextBoxes. When I drag the control onto a WebForm in Design View the control shows as a very small green arrow. I can expand the control by dragging one of the corners and the control snaps open and shows as I would expect it to show. As I toggle between HTML and...
I developed a simple TextBox CustomControl (witin a CustomControl Library project) and added to the AssemblyInfo.vb file the TagPrefix "CustomCntrl". I build the project. On a sample WebForm I add a Tab to my ToolBox and add the dll that houses the TextBox control I developed. When I drag and...
I thought this would be easier but I can not find a decent example.
I created a Custom Control, Tester, with a TextBox. When I use the control on a WebForm I want to be able to choose the Control from the top dropdownlist (in the IDE) and have the Textbox's TextChanged event available in the...
I am attempting to have my page timeout just to test the executionTimeout property of httpRuntime. I set this to 5 (executionTimeout="5") and on a webform I have a button that fires off a long method, but the page does not timeout. Am I missing something?
Just upgraded to Framework 1.1 and I am not having sporadic revoloving around the DataView. I found that after creating a DataView I need to set the RowFilter (even if I do not use one) to String.Empty. The tried and true method I have found to work without strange behavior is:
Dim DV as New...
I have some javascripts that total up values contained in a number of textboxes. Users can enter in new values and total values are calculated with javascript functions and displayed on the page.
I have a Onload event in the html body that calls these javasctips.
When user clicks out of the...
I am able to attach events to an image like so:
===============================================
var oOpenImg = document.all('imgOpen');
oOpenImg.attachEvent('onclick', alert);
===============================================
Once I open a new window via JavaScript, I reference the same image...
I would like to be able to Save a Office document that is opened in IE.
I would like to do this without creating a Word/Excel/PowerPoint.Application ActiveXObject (I do not want the users to have to alter their IE Security settings etc...)
Any input would really help ...
- rp
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.