|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
error messages and focusI am using web server controls...when the error occurs I want to display it
as an alert and after clicking ok to that alret dialog I want to set the focus to the incorrect value (text control in mycase) How can I do this using web server control code... thanks You'll need to emit javascript manually to set the focus to the control.
So something like: Page.RegisterOnStartupScript("MySetFocus", "window.setfocus('" + MyControl.ClientID + "')"); Double check the javascript, but I think that's it. -Brock DevelopMentor http://staff.develop.com/ballen Show quoteHide quote > I am using web server controls...when the error occurs I want to > display it as an alert and after clicking ok to that alret dialog I > want to set the focus to the incorrect value (text control in mycase) > > How can I do this using web server control code... > > thanks >
How to react to an ImageButon in a DataList ?
AutoPostBack How can I use my Own control in DataGrid? Can we have more than 1 'control to validate' for a single validat TextBox.Text not getting the proper value Datalist Dynamic Template Loading Problem Detailsview empty dataset insert TableCell Text Wrapping Problem! Calendar Language Infragistics UltraWebTab & RequiredFieldValidator |
|||||||||||||||||||||||