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
|
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
|