Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Recover values for not postback controls

Thread Tools

Recover values for not postback controls
Posts: n/a
I'm having problems on recovering values from a control which is not
doing postback on it's value change... but I need its value when any
other control postback.

This is a simplified scene to reproduce my problem (it's really simply
and silly, but real environment is much more complex):

- A custom control "C1" wich exposes a TextBox, with Autopostback =
False, and a property ThisIsMyC1Value (the Text value from the TextBox)
- A second custom control "C2" wich exposes C1, and a ThisIsMyC2Value
property which shows value from property ThisIsMyC1Value
- A page with 2 controls: C2 and a button

If you run such sample, you can write anything on TextBox. When you
click on the button, you can see that there is no lost of data (I set
ViewState to True), but if you try to access ThisIsMyC1Value from code,
you have nothing!!!!

Any help will be appreciated


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
Lost Windows login Password? 6 Ways to Recover and Recover windows Password jamesstevn General Computer Support 0 03-10-2010 03:18 AM
[asp] remembering values after postback - changes values Piotrek \Alchemik\ ASP .Net 0 11-12-2006 09:18 PM
stop postback in postback events for server controls ?? Wael_Bakr ASP .Net Web Controls 0 11-30-2005 08:06 AM
Accessing values of dynamically added controls on Postback =?Utf-8?B?ZG90bmV0dGVzdGVy?= ASP .Net 1 07-14-2005 04:00 PM
effecting postback without auto postback controls Psych971 ASP .Net 5 12-17-2004 08:53 PM