why wont viewstaet turn off?

R

robert112

Hi All,
I have a webpage.aspx and a webusercontrol.ascx with both of them
having viewstate turned off.

Then in my web user control I have got some code reading the request
stream:

Dim str As IO.Stream
Dim strLen As Integer
Dim strRead As Integer

str = Request.InputStream
strLen = Integer.Parse(str.Length.ToString())
Dim strArr(strLen) As Byte
strRead = str.Read(strArr, 0, strLen)

System.Text.Encoding.ASCII.GetString(strArr, 0,
strLen).Substring(iStartIndex)

when I put a break point on the last line I get the following output:
"__VIEWSTATE=dDwtNzkxMjYyODQ5Ozs%2BRIdmzZpk4%2FEHqMI3MlRLHut43bA
%3D&asdf=on&asdf=Robert+Hormozi&IncDisplayForm1%3AbtnSubmit=Submit"

I don't want this viewstate string I need what the html code looks
like in plain html. Is there anyway to do that ? Why is viewstate
still on even after I turn it off?

Thanks!
 
J

Juan T. Llibre

Robert112 :

Please don't post the same question several times with different subjects.

Doing that only makes it less likely that you'll get attention paid to your question because
the people who might be able to help you (other programmers) feel you're wasting their time.
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top