C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Interview   Jobs   Projects   Offshore Development    
Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Revenue Sharing | Talk to Us |



My Profile

Gifts

Active Members
TodayLast 7 Days more...









plz solve this error


Posted Date: 24 Mar 2008      Total Responses: 1

Posted By: uday mahajan       Member Level: Silver     Points: 2


hi i m updatig record in grid view, for this i have used ASP.NET,C#.net
at grid views row updating event i getting this error,
so how can i solve this error

Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.





Responses

Author: DurgaprasadCh    24 Mar 2008Member Level: SilverRating:     Points: 2
Hi Uday,

Firstly, can you let me know if you are creating any dynamic controls in row updating event? And when it Gridview created? Are you creating it from code?

Generally ViewState stores control ID values during postback and these must match before and after postback. So if you are creating any controls dynamically , just make sure to give explicit IDs to those controls.

else, just could you copy and paste that event code here.

-Durga.


Post Reply
You must Sign In to post a response.
Next : MissingManifestException
Previous : Public Assembly
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



Read TATA Nano reviews.
dotNet Slackers   BizTalk Adaptors    Web Design   Scripts
Are you waiting for engineering entrance result? Watch here for engineering entrance results.
teleconferencing

Contact Us    Privacy Policy    Terms Of Use