Welcome Guest Search | Active Topics | Sign In | Register

Invalid Viewstate - Unable to validate data Options
Andre
Posted: Wednesday, October 8, 2008 5:30:03 AM
Rank: Member
Groups: Member

Joined: 8/19/2008
Posts: 14
Hi

Can I use the eo:MaskedEdit with a eo:MaskedEditSegment in an asp:GridView's template field.
I have 2 controls inside the ItemTemplate one asp and one eo. see below.

On this page I get an error "Invalid Viewstate" with an inner exception "Unable to validate data" on postback.

if I remove the masked edit the error does not occur.

If it is the masked edit and not something in the grid, can I change anything in the maskededit as I would like to keep it in the grid ?

EnableViewStateMac is not set to false; and its running on my local machine. its not intermittent but occurs as soon as I put back the masked edit and the page postsback.

<asp:TemplateField HeaderText="AnnualSalary" ItemStyle-Width="100px" >
<ItemTemplate >
<asp:Label ID="annualSalaryLabel" runat="server" Text='<%# Eval("AnnualSalaryString") %>' />
<eo:MaskedEdit ID="salaryMaskedEdit" runat="server" >
<eo:MaskedEditSegment Decimals="2" SegmentType="Number" MinValue="0" />
</eo:MaskedEdit>
</ItemTemplate>
</asp:TemplateField>

Thanks
Andre
eo_support
Posted: Wednesday, October 8, 2008 6:07:50 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We did a simple test and it worked fine. Can you create a test page that reproduces this problem? Please make sure the page runs independently.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.