Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Form Problems

    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!


    Leon Shaw Guest

  2. Similar Questions and Discussions

    1. Form submission problems
      Hi Everyone, I need help to correct submission error with mailto form on IE6+. I am using the form inside a template and need to know how to...
    2. Form creation problems
      Hi I am trying to make a "create new user" form where people will enter their info to create a user name and password. The information would then...
    3. Problems with form authentication
      I'm experiencing some problems with role-based forms authentication accross domain. I wanted to create an unique login page for multiple web server...
    4. Form Field/ Form Submit Problems (probably an easy answer...)
      Hey Everyone.. I have a form that has approximately 7 text fields and 1 checkbox. Generally when this form is submitted(to itself BTW) it works...
    5. Form Validation problems
      Hi, I am trying to provide some simple validation using Javascript on my form. However at times the validation works and at others it doesn't...
  3. #2

    Default Re: Form Problems

    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

    [url]http://www.metabuilders.com/Tools/FirstFocus.aspx[/url]

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

    "Leon Shaw" <vnality@msn.com> wrote in message
    news:eI$MsECRDHA.2096@TK2MSFTNGP12.phx.gbl...
    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!



    Ken Cox [Microsoft MVP] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139