Click here to Skip to main content
15,896,201 members

Comments by anAlien2013 (Top 9 by date)

anAlien2013 14-Mar-13 11:52am View    
Hi
Now I m facing another problem. Actually I wanted to display the Laoding message when I m fetching data from backend and putting in .CSV file, I was getting error - Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.
For this I wrote the script in the PageLoad(see below), now I m not getting this error but the hide() is again not working. I have given the code below.
Please help...


protected void Page_Load(object sender, EventArgs e)
{
ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);
scriptManager.RegisterPostBackControl(this.btnDownloadReport1);
}

protected void btnDownloadReport_OnClick(object sender, EventArgs e)
{
GetPCNMEReportInCSV();
ScriptManager.RegisterStartupScript(this, typeof(string), "script", "$('.loading').hide();", true);
}

Thanks in advance.
anAlien2013 14-Mar-13 11:49am View    
Now I m facing another problem. Actually I wanted to dispaly the Laoding message when I m fetching data from backend and putting in .CSV file, I was getting error - Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.
For this I wrote the script in the PageLoad(see below), now I m not getting this error but the hide() is again not working. I have given the code below.
Please help...


protected void Page_Load(object sender, EventArgs e)
{
ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);
scriptManager.RegisterPostBackControl(this.btnDownloadReport1);
}

protected void btnDownloadReport_OnClick(object sender, EventArgs e)
{
GetPCNMEReportInCSV();
ScriptManager.RegisterStartupScript(this, typeof(string), "script", "$('.loading').hide();", true);
}

Thanks in advance.
anAlien2013 14-Mar-13 11:32am View    
Its working now. Atually my Div that contains the Loading... message was outside the UpdatePanel :) Thanks a lot, got so much to learn!
anAlien2013 13-Mar-13 12:57pm View    
No luck. After changing the web.config file I ran the application and still seeing the Message. Its not hiding.
anAlien2013 8-Mar-13 6:34am View    
How to find out whether the AJAX is enabled or not? I m using VS2010 here.