Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Form Problems

Reply
Thread Tools

Form Problems

 
 
Leon Shaw
Guest
Posts: n/a
 
      07-07-2003
I built a normal registration form containing the normal textboxes,
dropdownlists, and validation controls. However, when a user submits the
form in which some field does not pass the client side validation of a
particular control (textbox, dropdownlist, etc.) the cursor does not return
to that particular control. It returns back within in the page in which the
user can then delete the control.
What can I do to fix a problem like this? All I did was place some controls
inside of a table and added a submit button. Thanks!


 
Reply With Quote
 
 
 
 
Ken Cox [Microsoft MVP]
Guest
Posts: n/a
 
      07-07-2003
You might want to check whether Andy Smith's FirstFocus control will do what
you need. Once you determine which textbox was invalid you could probably call
FirstFocus.ControlToFocus and set the focus to it:

FirstFocus Example

http://www.metabuilders.com/Tools/FirstFocus.aspx

ASP.NET Validation Controls
http://www.dnzone.com/ShowDetail.asp?NewsId=125

"Leon Shaw" <> wrote in message
news:eI$...
I built a normal registration form containing the normal textboxes,
dropdownlists, and validation controls. However, when a user submits the
form in which some field does not pass the client side validation of a
particular control (textbox, dropdownlist, etc.) the cursor does not return
to that particular control. It returns back within in the page in which the
user can then delete the control.
What can I do to fix a problem like this? All I did was place some controls
inside of a table and added a submit button. Thanks!



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form within a Form - will it cause problems when submitting? Dave Smithz HTML 3 10-30-2009 07:24 AM
How to retrieve form field value if form is EncType=multipart/form-dataForm? Li Zhang ASP .Net 4 02-27-2009 01:23 AM
<form>...</form> - how to supress blank space after </form> in IE? rob c Javascript 4 12-30-2005 01:18 PM
vs2005 - Open a child form based on selected record parent form's dgv - how? dbuchanan ASP .Net 2 12-19-2005 10:52 PM
Form Field/ Form Submit Problems (probably an easy answer...) Eric ASP General 4 09-24-2003 12:34 PM



Advertisments