By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,361 Members | 3,185 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,361 IT Pros & Developers. It's quick & easy.

textbox in repeater loses value between postback

P: n/a
I have a user control that contains a textbox and a link button. This
UC sits inside a repeater control. When I click any button, any edited
textbox value does not get sent back to the server side code.

(I am using asp.net 2.0 and the aspx page in question uses
EnableEventValidation="false" to temporary bypass a security issue with
repeater controls and button clicks.)

Thanks, regards, dnw.

Sep 20 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Just checking whether your user control has enableviewstate="true" ?

"Dot Net Work" <do***@hotmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
>I have a user control that contains a textbox and a link button. This
UC sits inside a repeater control. When I click any button, any edited
textbox value does not get sent back to the server side code.

(I am using asp.net 2.0 and the aspx page in question uses
EnableEventValidation="false" to temporary bypass a security issue with
repeater controls and button clicks.)

Thanks, regards, dnw.

Sep 20 '06 #2

P: n/a
The user control has no EnableViewState element, so I am sure that the
default value is set to True. (I just explicitly set it to True to
test this, and it didn't fix the problem.)

Incidentally, I have the following file structure -

aspx page
user control, contains repeater - sits in aspx above.
user control, contains textbox and link button - sits inside user
control above.

Thanks, regards, dnw.
Ken Cox [Microsoft MVP] wrote:
Just checking whether your user control has enableviewstate="true" ?

"Dot Net Work" <do***@hotmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
I have a user control that contains a textbox and a link button. This
UC sits inside a repeater control. When I click any button, any edited
textbox value does not get sent back to the server side code.

(I am using asp.net 2.0 and the aspx page in question uses
EnableEventValidation="false" to temporary bypass a security issue with
repeater controls and button clicks.)

Thanks, regards, dnw.
Sep 20 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.