Textbox viewstate

G

Guest

I have read that the values of disabled and readonly textboxes are not saved
to the viewstate on postbacks in .NET 2 for security reasons.
However if the value of the textbox is set on the server on page load
shouldn't this value be persisted during postbacks? It doesn't seem to be at
the moment and is causing all sorts of problems in upgrading my application
from .NET 1.1.
 
P

Peter Huang [MSFT]

Hi

Yes.
ASP.NET 2.0 ReadOnly behavior change when EnableViewState is false
http://west-wind.com/weblog/posts/3939.aspx

What is the problem you are encountering. Maybe we have another solution of
your scenario in asp.net 2.0.
Also would you please build a simple webpage with a textbox to demostrate
the problem and what problem you encounter and what did you want to achieve
in asp.net 2.0?

I will appreciate your efforts!
Thanks!


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top