Professional Web Applications Themes

Understanding submit button behaviour - ASP.NET General

hi. Aspnet posts. Otherwise you wouldn't get anything in the form collection. You write that the textedits are not visible, are they set to Visible=false?; then they are not rendered on the page and not sent when posting either. Check the HTML source in you favourite web browser. Solution: Either use hidden controls or the view state. Since MS didn't create any hidden server controls my guess is that another solution is preferred by MS and a further guess is that it is view state that is this preferred solution for sending hidden data back and fro. - Someone Please ...

  1. #1

    Default Re: Understanding submit button behaviour

    hi.

    Aspnet posts. Otherwise you wouldn't get anything in the form collection.

    You write that the textedits are not visible, are they set to
    Visible=false?; then they are not rendered on the page and not sent when
    posting either. Check the HTML source in you favourite web browser.
    Solution: Either use hidden controls or the view state.

    Since MS didn't create any hidden server controls my guess is that another
    solution is preferred by MS and a further guess is that it is view state
    that is this preferred solution for sending hidden data back and fro.
    - Someone Please correct me if I am wrong.

    Be careful with using more than 1 form. Aspnet is designed with 1 form and
    posting to the same form in mind.

    HTH

    /OF - senior developer at Mandator
     
    ones 
    the 
    it 
    URL 
    there 
    if 


    Ola Guest

  2. #2

    Default Re: Understanding submit button behaviour

    Possibility: When you use Request.Form, you must specify the "name"
    attribute of the HTML form element. The "id" attribute is not passed to the
    server; it is for use only on the client.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    http://www.takempis.com
    The more I learn, the less I know.

    "Lauchlan M" <com> wrote in message
    news:phx.gbl... 
    ones 
    the 
    it 
    URL 
    there 
    if 


    Kevin Guest

  3. #3

    Default Re: Understanding submit button behaviour

    > Possibility: When you use Request.Form, you must specify the "name" 
    the 

    Hi Kevin.

    I looked for that. There didn't appear to be a name property for the textbox
    element. I thought maybe ASP.NET makes up a name itself.

    I guess I should write some code to loop through the request.form collection
    and see what's happening.

    Lauchlan M


    Lauchlan Guest

Similar Threads

  1. Submit Button In IE
    By DonJuanDon in forum Macromedia Dynamic HTML
    Replies: 2
    Last Post: May 10th, 08:07 AM
  2. Submit button
    By Kevin Bilbee in forum PHP Development
    Replies: 40
    Last Post: November 13th, 03:40 AM
  3. [PHP] Submit button
    By Eugene in forum PHP Development
    Replies: 4
    Last Post: October 1st, 01:43 AM
  4. using submit button and PHP-HELP
    By Angelo Zanetti in forum PHP Development
    Replies: 0
    Last Post: September 22nd, 02:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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