Hi guys,
Hope everyone is well! I have a problem displaying the tree view on Pocket Internet Explorer. The tree displays and works fine using desktop browser, and expands nodes perfectly.
The first time i load it up on Pocket Internet Explorer it displays fine, but then when i click a node i get the following error.
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid .... blah blah blah.
Now if i change the enableEventValidation property, then the error doesnt occur, but the tree node doesnt expand.
Does anyone know how to fix this? Is it something to do with Pocket Internet Explorer?
The code for my page is below :
Can anyone get it to work? I am using Windows Mobile 5 Emulator through Visual Studio 2005.
<%@ Page Language="VB" CodeFile="test.aspx.vb" Inherits="test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
<html xmlns=" >
<head id="Head1" runat="server">
<title>no title</title>
</head>
<body style="margin: 0; padding: 0; background-color: White; ">
<form id="form1" runat="server">
<asp:TreeView ID="TreeView1" runat="server" ImageSet="Arrows" EnableTheming="False" ExpandDepth="0" NodeWrap="True" EnableViewState="False">
<Nodes>
<asp:TreeNode Text="Sections" Value="Sections" Expanded="True">
<asp:TreeNode Text="ABCDEFG" Value="ABCDEFG">
<asp:TreeNode Text="123" Value="123"></asp:TreeNode>
</asp:TreeNode>
<asp:TreeNode Text="HIJKLMNO" Value="HIJKLMNO">
<asp:TreeNode Text="456" Value="456"></asp:TreeNode>
</asp:TreeNode>
<asp:TreeNode Text="PQRSTUVWXYZ" Value="PQRSTUVWXYZ" >
<asp:TreeNode Text="789" Value="789"></asp:TreeNode>
</asp:TreeNode>
</asp:TreeNode>
</Nodes>
<ParentNodeStyle Font-Bold="False" />
<HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
<SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" HorizontalPadding="0px"
VerticalPadding="0px" />
<NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px"
NodeSpacing="0px" VerticalPadding="0px" />
</asp:TreeView>
</form>
</body>
</html>
Hope everyone is well! I have a problem displaying the tree view on Pocket Internet Explorer. The tree displays and works fine using desktop browser, and expands nodes perfectly.
The first time i load it up on Pocket Internet Explorer it displays fine, but then when i click a node i get the following error.
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid .... blah blah blah.
Now if i change the enableEventValidation property, then the error doesnt occur, but the tree node doesnt expand.
Does anyone know how to fix this? Is it something to do with Pocket Internet Explorer?
The code for my page is below :
Can anyone get it to work? I am using Windows Mobile 5 Emulator through Visual Studio 2005.
<%@ Page Language="VB" CodeFile="test.aspx.vb" Inherits="test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
<html xmlns=" >
<head id="Head1" runat="server">
<title>no title</title>
</head>
<body style="margin: 0; padding: 0; background-color: White; ">
<form id="form1" runat="server">
<asp:TreeView ID="TreeView1" runat="server" ImageSet="Arrows" EnableTheming="False" ExpandDepth="0" NodeWrap="True" EnableViewState="False">
<Nodes>
<asp:TreeNode Text="Sections" Value="Sections" Expanded="True">
<asp:TreeNode Text="ABCDEFG" Value="ABCDEFG">
<asp:TreeNode Text="123" Value="123"></asp:TreeNode>
</asp:TreeNode>
<asp:TreeNode Text="HIJKLMNO" Value="HIJKLMNO">
<asp:TreeNode Text="456" Value="456"></asp:TreeNode>
</asp:TreeNode>
<asp:TreeNode Text="PQRSTUVWXYZ" Value="PQRSTUVWXYZ" >
<asp:TreeNode Text="789" Value="789"></asp:TreeNode>
</asp:TreeNode>
</asp:TreeNode>
</Nodes>
<ParentNodeStyle Font-Bold="False" />
<HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
<SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" HorizontalPadding="0px"
VerticalPadding="0px" />
<NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px"
NodeSpacing="0px" VerticalPadding="0px" />
</asp:TreeView>
</form>
</body>
</html>