TextBox Controls losing their values

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

  1. #1

    Default TextBox Controls losing their values

    I have a user control that contains a form with several text boxes. The
    text boxes get populated from a SQL Server table when the control loads.
    When the controls posts back, any values that have changed get passed to
    a stored procedure to update the table. The problem is that when the
    form is submitted, the text boxes seem to lose their values and contain
    nothing but empty strings. I have tested the same code from an .aspx
    page and it works, however, when attemting the same thing in a user
    control, I get these errors. Any clues?



    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Philip Townsend Guest

  2. Similar Questions and Discussions

    1. Losing checkbox values when saving PDF
      Hi, I have been looking at this problem for 2 days now, changing numerous properties and trying different coding approaches and nothing works. ...
    2. Losing Postback state with composite controls
      Not sure how to go about explaining this, which is never a good sign. I have a Custom UserControl I've built, which contains 1 drop-down list and...
    3. Losing Assigned Global Variable Values
      I am running Director 7. I declare and initialize my global variables in the prepareMovie handler. As my movie (an interactive game) runs, I...
    4. sending values in textbox
      Hi I want to be able to send the vlaues that a user enters in a couple of input fields. However, my register_globals is set to off. So how do I...
    5. how to Add different controls(textBox,DropDownList or some ) in the same column,based upon the value in the previous column (Say second Colum which contain dropdown with some values) ?
      I am new to ASP.NET. I am facing problem with datagrid. I will explain prob now. In the datagrid the first column is name in the second...
  3. #2

    Default Re: TextBox Controls losing their values

    If you set EnableViewstate to true this should save all the setting of
    the textbox when you report to the server.

    --dwayne


    On Fri, 27 Jun 2003 10:59:07 -0700, Philip Townsend
    <anonymous@devdex.com> wrote:
    >I have a user control that contains a form with several text boxes. The
    >text boxes get populated from a SQL Server table when the control loads.
    >When the controls posts back, any values that have changed get passed to
    >a stored procedure to update the table. The problem is that when the
    >form is submitted, the text boxes seem to lose their values and contain
    >nothing but empty strings. I have tested the same code from an .aspx
    >page and it works, however, when attemting the same thing in a user
    >control, I get these errors. Any clues?
    >
    >
    >
    >*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    >Don't just participate in USENET...get rewarded for it!
    daphish@msn.com 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