Click here to Skip to main content
15,910,980 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am changing the value of a textbox from client side. I want the value from server side throuhg a property(property returns the value of text box). The text box is read only.

How can I get the changed value.

UPDATE:
Solved by OP himself. Posted as a comment.
Posted
Updated 25-Apr-11 22:59pm
v2
Comments
Om Prakash Pant 26-Apr-11 2:54am    
you mean when you change the value from client side of a textbox, on submit you need the text box value?
[no name] 26-Apr-11 4:09am    
I Have got the solution. Instead of setting the read only property if we use attribute to set the property from page load event it is working fine.
[no name] 26-Apr-11 3:03am    
Actualy this text box is extended by CalendarExtender. I want user should not write anything at the text box. And it is used in usercontrol and I am getting the value of the text box from another page through a property of the user control. the property returns the value of text box .
It is working fine. but when I disable the text box or make it read only it is not working.
Virendra Deshmukh 7-Jan-13 8:53am    
Thank you boss.......

1 solution

Use hidden field to store value for the textbox. Hidden field can be accessed from client side as well as from the server side.
 
Share this answer
 
Comments
[no name] 26-Apr-11 4:09am    
I Have got the solution. Instead of setting the read only property if we use attribute to set the property from page load event it is working fine.

Anyway Thanks.
Virendra Deshmukh 7-Jan-13 8:54am    
its working

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900