Upgrading to ASP.NET 2.0 causes issues with LinkButton

G

Guest

I am running into an issue after upgrading my ASP.NET 1.1 project with
regards to link buttons. Clicking on any link button produces the error:
Unable to validate data.
Stack Trace: at
System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[]
modifier, Int32 start, Int32 length, Int32& dataLength)
at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString)

I have noticed that the javascript for the link has changed from

if (typeof(Page_ClientValidate !)= 'function' ||Page_ClientValidate ())
_doPostBack("link1","") -- in .NET 1.1

to

WebForm_DoPostBackWithOptions(new
WebForm_PostBackOptions("link1","",true,"","",false,true)) -- in .NET 2.0

Any help on how to solve this would be greatly appreciated.
 

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,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top