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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top