Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Probleme of Dynamic Server Control:ViewState

Thread Tools

Probleme of Dynamic Server Control:ViewState

Posts: n/a
Are your controls generated within the:
If Not IsPostBack Then
'***** Controls added here
End If

I had a similar problem, but then I realized that I need
to add the controls each time to the webform. I do not
need to reload the values (actually you shouldn't reload
the values for the controls like the textbox, cause that
will overwrite the value that the user has inputted), but
the controls need to be added on each postback as well. So
make sure you add them on each postback as well (i.e. do
not add your controls within the above mentioned If

Hope that helps. If not, would you be able to describe in
more detail the way you go about adding them to your

>-----Original Message-----
>Hie all, I generate dynamically a HtmlTable in wich I

include dynamic server control like DropDownList label...
>But when I click to th Submit button in order get the

value entered by the user using the their ID it seem that
the aspx page is refreshed and I lost all the control .
>Would Your mind to help me please
>Posted using NntpNews Component -
>Post Made from

Our newsgroup engine supports Post Alerts, Ratings, and

Reply With Quote

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
Probleme mit LoadControl Andreas ASP .Net 1 03-04-2006 11:16 PM
VPN Probleme with Pix 515 and operator router. LLFF Cisco 2 06-16-2005 03:47 PM
Probleme de lecture de champs BDD sdffsdf ASP .Net 2 04-07-2005 12:00 PM
Probleme with struts 1.0 html:file tag Kristiansem Java 0 03-03-2004 03:31 PM
Probleme d'affichage de couleur d'arriere plan christian Ginouvet Java 0 11-10-2003 07:16 PM