Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > How to get dynamic control's value after postback?

Reply
Thread Tools

How to get dynamic control's value after postback?

 
 
YesGoGoGo@gmail.com
Guest
Posts: n/a
 
      04-19-2006
hello!
I have a question about getting dynamic control's value after
postback(or submit).
I've read a lot of article and have some idea.
It's seems that if I want to keep the dynamic control's layout and
value,
I have to make some *extra work" to keep control's hiararchy,such as
using arraylist,
or recreating control when the page postback and in initilization
stage.
But I still have a question.
Does it mean as long as these dynamic controls are recreated,
I can undoubtedly get their values just like the usual?
and the value here is from dynamic controls' viewstate?(if I enable it
in advance)

Is my thought right?
Please give me some hint
Thanx a lot!

 
Reply With Quote
 
 
 
 
Alessandro Zifiglio
Guest
Posts: n/a
 
      04-20-2006
Yes, that is correct. Right after the controls have been reconstructed,
viewstate is loaded and retained for the recreated control(only after the
recreation phase ofcourse).
Refer to the following online documentation for more information that might
interest you.
http://msdn2.microsoft.com/en-US/lib...h7(VS.80).aspx

Have a good day,
Alessandro Zifiglio
<> ha scritto nel messaggio
news: oups.com...
> hello!
> I have a question about getting dynamic control's value after
> postback(or submit).
> I've read a lot of article and have some idea.
> It's seems that if I want to keep the dynamic control's layout and
> value,
> I have to make some *extra work" to keep control's hiararchy,such as
> using arraylist,
> or recreating control when the page postback and in initilization
> stage.
> But I still have a question.
> Does it mean as long as these dynamic controls are recreated,
> I can undoubtedly get their values just like the usual?
> and the value here is from dynamic controls' viewstate?(if I enable it
> in advance)
>
> Is my thought right?
> Please give me some hint
> Thanx a lot!
>



 
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
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Copy File Field Value to Dynamic File Field Value VUNETdotUS Javascript 25 11-10-2007 10:36 AM
placement of dynamic control depends on VALUE of dynamic control Larry Bud ASP .Net 1 01-10-2007 10:07 PM
if instance variable get initialize after assigning some values or after constructor then when does static variable get initialize Tony Morris Java 3 02-04-2006 08:39 AM
Changing value of dynamic control in Page_Load after creating the =?Utf-8?B?YW1pcm1pcmE=?= ASP .Net 1 04-05-2005 08:37 PM



Advertisments