I am trying to do something very simple and getting an error that I have been trying for two days to fix. I have a simple ASP Button calling a function from the codebehind (see below)...and I am receiving the following error. But only when I upload the site to Azure, it runs correctly when emulated.
SCRIPT5007: Unable to get property 'PRM_ServerError' of undefined or null reference
MicrosoftAjaxWebForms.js, line 5 character 11118
The ASP Button is defined as below, nothing special...
<asp:Button CausesValidation="false" ID="Button1" runat="server" Text="Login" OnClick="radbtn_loginButton_Click" />
The code behind again...crazy simple...
protected void radbtn_loginButton_Click(object sender, EventArgs args)
{
try
{
string uName;
string uPass;
uName=UsernameBox.Value;
uPass=PasswordBox.Value;
if(uName=="admin" && uPass=="password")
{
Response.Redirect("dsxHome.aspx");
}
else
{
loginMessage.Text="Login Invalid!";
}//end if
}
catch
{
loginMessage.Text="Problem with Login";
}
}
The message label is nested within an AjaxPanel...and I am doing other Ajax calls elsewhere in other pages in the site...but the simplest one is breaking....
Any thoughts...I know I have missed something stupid...
Michael