473,395 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

textbox in repeater loses value between postback

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
2 3735
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Maurice Mertens | last post by:
Hi, having some troubles with a BOUND textbox. The BOUND (text property) textbox is hidden on the form. Just before I update the database I stopped the code in debug and when I use me.C_ID.text...
4
by: RTM | last post by:
Can anyone help me with the following issue? I've seen some similar questions here, but none relating to a textbox control.... I have a form with several controls, one of them being a textbox...
1
by: Matthew Curiale | last post by:
I have a ddl that is populated in my If Not IsPostBack block in the Page_load event. A repeater is also populated at this time, showing different domains for a website. The ddl contains different...
2
by: ABC | last post by:
How to pre-set combo textbox's selectedindex value from querystring passed from another page? I pass the querystring to set combo text box (change selectedindex on Page_Init). Source code as: ...
0
by: dougloj | last post by:
Hi, I have two RadioButtonLists on a.aspx page. Let's call them ListA and ListB. Each list has 3 list items. After any postback, the first list item of ListB always ends up being selected,...
1
by: tarscher | last post by:
Hi all, I have a repaeter rendering textboxes. I also attach a datascource (array) to the repeater with default valeus: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack)...
8
by: Bhagya | last post by:
I am doing client side validation in my page. The password field does not retain its value. Pls help
0
by: landesjoe | last post by:
Hi, here's my problem in short: Text boxes in gridview don't seem to hold their value if the column's .Visible property is changed back and forth. I've got a form with a gridview populated from...
1
by: dotnetguys | last post by:
Hi there, I want to pass textbox server control value through anchor tag to some other form how do i do Can somebody help me for this. Thanks
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.