15,896,201 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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.
anAlien2013
7-Mar-13 10:57am
View
I will share the code:
.aspx file
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<head>
<title>Untitled Page</title>
<script type="text/javascript" src="C:\jquery-1.9.1.js"></script>
<script type="text/javascript">
</script>
</head>
<div id="DIV1" >
Downloading Data
<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:UpdatePanel runat="server">
<contenttemplate>
<asp:Button ID="btnDownloadReport1" Visible="true" runat="server" Text="Download" OnClientClick="$('.loading').show();" OnClick="btnDownloadReport_OnClick"/>
</div>
<div class="loading" id="main" align="center" runat="server">
<br />
Loading. Please wait.<br />
<br />
</div>
===============================
.cs file
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnDownloadReport_OnClick(object sender, EventArgs e)
{
GetPCNMEReport();
ScriptManager.RegisterStartupScript(this, typeof(string), "script", "$('.loading').hide();", true);
}
Now, could you please help me fixing this issue. Thanks
anAlien2013
7-Mar-13 10:45am
View
Getting this error - Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.
anAlien2013
7-Mar-13 10:01am
View
Yes, I m aware of this code but where should I put this code.
As I told before no code is getting executed written after GetData() method in buttonclick.
anAlien2013
7-Mar-13 9:53am
View
Hi Akhtar
Where should I put this code?
I tried putting it after the method that fetchs the data on buttonclick, but nothing happened.
Show More