TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dhilipkumar r
NA
100
4.7k
Explicitly defining ViewState of a server
Feb 14 2017 9:32 AM
Is it possible to explicitly define viewstate into a hidden field of an aspx page?
I tried this and got error
Exception Details:
System.Web.HttpException: The state information is invalid for this page and might be corrupted.
<
form
name
=
"Form1"
method
=
"post"
action
=
""
id
=
"Form1"
runat
=
"server"
>
<
input
type
=
"hidden"
name
=
"__VIEWSTATE"
id
=
"__VIEWSTATE"
value
=
"/wEPD..............XCny"
/>
<
input
type
=
"hidden"
name
=
"__EVENTVALIDATION"
id
=
"__EVENTVALIDATION"
value
=
"/wEdA..............ntw=="
/>
the error doesn't come when I postback to javascript alert function without runat="server" in form. But when I add runat="server" and call C# button_Click(object sender,EventArgs e) I get the invalid state error
thanks for any kind of help
Reply
Answers (
1
)
How to pass length value in query string?
How to gererate ticket no for the registration page in mvc