Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
EnableViewState of WebDataMenu raise LoadViewState_Exception
posted

Once EnableViewState of WebDataMenu set to "true", any postback inside Content  of Master's ContentPlaceHolder will raise error : LoadViewState_Exception.

However, I found that this error can prevent by set the EnableViewState to 'false', but any posback inside Content  of Master's ContentPlaceHolder will make previously binding Items of WebDataMenu disappear.

I no sure whether this is bugs or not, but I need Item of my WebDataMenu keeping there after any postback and without error of "LoadViewState_Exception". Thank for help !!!

 

 

The Attachment file is the Sample Project,

using VS2008 to open, right click the "WebForm1.aspx"  -> 'Set As Start Page' -> F5 Start Debuging

<ig:WebDataMenu ID="WebDataMenu1" runat="server" Height="29px" Width="100%" Font-Size="12px" ForeColor="#4863A0"   BorderStyle="None" BorderWidth="0px" EnableViewState="true" >

                        <GroupSettings Orientation="Horizontal" EnableAnimation="false" />

                        <Items>

                            <ig:DataMenuItem Text="No Item" NavigateUrl="">

                                <Items>

                                </Items>

                            </ig:DataMenuItem>

                        </Items>

                    </ig:WebDataMenu>

 

WebDataMenuBugTest.rar