Sys.WebForms.PageRequestManagerParseErrorException. The message received from the server can not be parsed. I receive this message when my update panel tries to refresh using a timer. The update panel and timer are contained within a user control and the user control is in a web zone on my main page. Here is the code for the user control.
<%@ Control Language="VB" ClassName="Secondarily" %><%@ import namespace="System.Data" %>
<script runat="server">
Sub DisplayMyTest()
Dim cnMyTest As SqlClient.SqlConnectionDim cmdMyTest As SqlClient.SqlCommandDim drMyTest As SqlClient.SqlDataReaderDim SQLString As String
Dim RelativeURL As String
cnMyTest = New SqlClient.SqlConnection("Data Source=Test;Initial Catalog=Test_Develop;Persist Security Info=True;User ID=")cnMyTest.Open()
SQLString = "exec proMyTest 'me'"
cmdMyTest = New SqlClient.SqlCommand(SQLString, cnMyTest)drMyTest = cmdMyTest.ExecuteReader()
If drMyTest.HasRows = True Then
While drMyTest.Read()If Left(drMyTest.Item("PageURL"), 3) = "../" Then
RelativeURL = Right(drMyTest.Item("PageURL"), (Len(drMyTest.Item("PageURL")) - 3))Else
RelativeURL = drMyTest.Item("PageURL")End If
Response.Write("<li><a href='" & RelativeURL & "'>" & drMyTest.Item("MenuName") & " - " & drMyTest.Item("PageName") & "</a></li>")'Response.Write("***" & Request.)
End While
Else
Response.Write("No Recent Additions")End If
drMyTest.Close()
cnMyTest.Close()
End Sub
</script><asp:updatepanel id="upTest" runat="server" updatemode="Conditional"><triggers><asp:asyncpostbacktrigger controlid="tmr3" eventname="Tick" /></triggers><contenttemplate>
<% Call DisplayMyTest()%>
</contenttemplate></asp:updatepanel><asp:timer id="tmr3" runat="server" interval="3000"></asp:timer>