.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Sharon Maxwell
Post New Web Links

ReportViewer looping ajax calls to keep session alive causes Firefox to look like it's constantly r

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :Windows Application
 
In the HTML generated by the ReportViewer there is the following line of code (I've tried ot make it more readable by removing the superfluous information)
setTimeout("frames['ReportViewer1TouchSession0'].location.replace('/Reserved.ReportViewerWebControl.axd?...&TimerMethod=KeepAliveMethodReportViewer1TouchSession0...", 0);

function KeepAliveMethodReportViewer1TouchSession0() {
   setTimeout("frames['ReportViewer1TouchSession0'].location.replace('/Reserved.ReportViewerWebControl.axd?...TimerMethod=KeepAliveMethodReportViewer1TouchSession0....", -1703027296);
}

 

When the Reserved.ReportViewerWebControl.axd is called it makes a GET request that returns the following HTML:

 

<html><body><script type="text/javascript">parent.KeepAliveMethodReportViewer1TouchSession0();</script
></body></html>
 

 So in effect it becomes a recursive function and because KeepAliveMethodReportViewer1TouchSession0 calls a set timeout with a negative timeout value, in Firefox it's called immediately, in about 10 seconds Firebug logs over 150 GET requests in one minute there


View Complete Post


More Related Resource Links

ReportViewer looping ajax calls to keep session alive causes Firefox to look like it's constantly r

  
In the HTML generated by the ReportViewer there is the following line of code (I've tried ot make it more readable by removing the superfluous information)
setTimeout("frames['ReportViewer1TouchSession0'].location.replace('/Reserved.ReportViewerWebControl.axd?...&TimerMethod=KeepAliveMethodReportViewer1TouchSession0...", 0);

function KeepAliveMethodReportViewer1TouchSession0() {
   setTimeout("frames['ReportViewer1TouchSession0'].location.replace('/Reserved.ReportViewerWebControl.axd?...TimerMethod=KeepAliveMethodReportViewer1TouchSession0....", -1703027296);
}

 

When the Reserved.ReportViewerWebControl.axd is called it makes a GET request that returns the following HTML:

 

<html><body><script type="text/javascript">parent.KeepAliveMethodReportViewer1TouchSession0();</script
></body></html>
 

 So in effect it becomes a recursive function and because KeepAliveMethodReportViewer1TouchSession0 calls a set timeout with a negative timeout value, in Firefox it's called immediately, in about 10 secon

session timeout redirect in ajax calls

  

If a normal session timeout occurs we could handle the session timeout.

But say we are using a lot of ajax calls, webhandlers etc. How would we catch session timeout here and redirect to error/login page.

Thanks



Using JQuery to perform Ajax calls in ASP.NET MVC

  
The muscle behind the actual asynchronous calls comes from JavaScript. I looked around at a bunch of existing JavaScript libraries and settled on JQuery because of the way it leverages existing CSS knowledge. The three things that the library should do easily are:

Session problem with display of image in row of reportviewer

  

Hello techies...

I am new to this sql reporting service. But anyhow by surfing I am able to bind the report but i was stuck in image display.

Anyways, i also managed that. But the real problem is whenever i was keeping a image control in rdlc report i was having session prob. If i remove the image control then as usual report works fine.

Please suggest me some solution.... either for session problem or for image display. I am keeping the image name in database but for binding the rdlc report i am using a store procedure which return the path (static) concating with the image name(kept in database).

Hope to find a solution .....


Extreme ASP.NET: Client-Side Web Service Calls with AJAX Extensions

  

Microsoft AJAX Library and the ASP.NET 2.0 AJAX Extensions provide a number of compelling features ranging from client-side data binding, to DHTML animations and behaviors. Learn all about them here.

Fritz Onion

MSDN Magazine January 2007


ReportViewer Error Asp.net Session expired

  
When i am connecting Report Manager report through our ASP.NET 2.0 application using Report Viewer control frequently we get message ASP.Net Session expired .              How can we avoid this error.While i directly opens Reports through the Report Manager reports are opening without any problem.   My .Net application Code. ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://SERVER/reportserver");ReportViewer1.ServerReport.ReportPath = @"/myreport/reportname";

ReportViewer and ToolkitScriptManager AJAX 4.1.40412

  
I try to use a Reportviewer 10.0.0.0 in a project that uses AJAX controllers. If I first add a ScriptManager and a reportviewer there is no problem, the Reportviewer is shown. If I then add another AjaxToolboxScript I need to use the ToolkitScriptManager. But if I use the ToolkitScriptManager the page starts with depugger error: "Microsoft JScript runtime error: Sys.ArgumentNullException: Value cannot be null.Parameter name: panelsCreated[1]" (There is no poblem to use the RepoertViewer, but the error reoccur every postback.) If I then change back to standard ScriptManager the same error occur. I have to generate a new project before I get rid of the error, a project without ToolkitManager. I think this is a problem with AJAX toolkit, any thoughts?  

ë in Ajax control toolkit HTMLEditor in Firefox

  
If i use signs like ÃƒÂ« in the HTML Editor, in IE, its ok, and works.But if i use ë in firefox in the same page with the HTML Editor. If i press safe the ë is converted to: ? (copy past doesnt work well, but its a square if you put [] to each other). But how is this possible? And how can i solve this problem? In IE its working well, but 50% of the users of the system i build are using Firefox. So it should work in all editors......

Ajax Session timeout problem

  
Hi,  I have some problems when using AJAX with updatepanels. I have an ASP.NET webapplication with a login that uses form authentication with the timeout set to 5 min. After 5 min of idle the site should be redirected to the login.aspx page. My problem is that after using the site for 5 minutes when clicking on contents inside an updatepanel I get a messagebox with the following error: A Runtime Error has occurred.Do you wish to Debug? Line: 4723Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12031  I think that it has something to do with the ajax updatepanel since when I remove the updatpanels this problem does not appear. Instead the site is redirected to login.aspx as expected. When searching on the problem on google I see alot of people having similar problem, but I haven't found suitable solution. Any suggestions?

Asp.net Ajax and session timeout

  
Hi, How do I handle a session timeout when using a updatepanel ?When the user session has timed-out and I click a button I get this error Sys.WebForms.PageRequestManagerParserErrorException - The message received from the server could not be parsed.I have tried to set EnabledEventValidation to false on the page but that didnt work, I have also tried to override the preInit on the page...didnt work either.Any ideas ?

jQuery 1.2.6 Ajax: troubles in FireFox and Opera

  
Hi everybody! Today I downloaded jQuery and begin learning it. I wrote a simple ajax request that normal working in IE:<script type="text/javascript">$.ajax({url: 'http://mysite/link.axd',type: 'GET',timeout: 3000,error: function(){alert('Error loading document');},success: function(xml){//alert(xml); //for test$("div#divMess").html(xml);}});</script>But when I was testing it in FF and Opera I has found next troubles:FF doesn't send request to my handler (FF generally nothing do),Opera throws error event and also and FF doesn't send request to my handler. What should I do that the code will work in all browsers?

URGENT: HElp with AJAx Xmlhttp calls

  

I have a client js script which calls server aspx pages 

Both are on same domain ctually localhost.

but when I do a XMLHTTPREQUEST I get 500 Internal error, service not available.

If I run both application under debug mode then all works fine.

But when I publish and run, it does not work.



ASP.NET AJAX Post back happening in IE7 but works good in Firefox

  

Hi all,

I am debugging one of the project which is implemented using .Net Framework 3.5.

in the home page the project has 5 widgets.

In one of the widget contains a two radio buttons and a save button.When ever the user tries to change the Radiobutton option and Save the results will be displayed properly in Firefox.

But in Internet Explorer 7 the page gets a post back and all the widgets will be reloaded and finally the default radio button will be selected as default instead of the option which i selected.

Can any one help me to resolve this issue.

thanks in advance


Securing AJAX Calls from JQuery (Looking for ideas, suggestions, best practices).

  

Hello,

I am working on web application in which all of the data I am submitting back to the server is being done on the client side using JQuery AJAX calls to my .NET web services using JSON.  This works perfectly to enhance my user experience and greatly reduces post backs, etc.

What I am looking for suggestions on is securing the web services being exposed to the client side from being used by anything but my JQuery code on my site.  The security hole that I see here is that since the client-side JQuery can access the web services, so could anything.

Any ideas?  What is the best practice here?

Thanks


Ajax update panel refresh and dropdown behaviour in firefox

  

I have found an odd bug in my application.  I have a dropdown status which is bound to my gridview. On selecting a status from the dropdown the selectedindex then fires and binds the results to the gridview.

Now the strange behaviour in firefox and not IE:

If I have a dropdown open and an ajax update fires on my gridview the option is selected from the dropdown (just by hovering my mouse over it rather than selecting it) and the results bound to the gridview. This does not happen in ie as you should have to physically select an item from the dropdown rather than firefox selecting it for you because you happened to hover over an option when the update event fires.

Anybody had the same problem or does anyone have a fix out there?

Your help would be appreciated.

Thanks

JW

 

 


Session identifier missing until a couple of calls done to webservice

  

Hi!

I use the ReportExecution2005 service to render reports and on the first rendering of the stylesheet, and on the first call to ToggleItem I get "A session identifier is required for this operation" exception. If I go back to the first "get" to my page and click ctrl+F5 it starts behaving well. Stylesheet and toggling works as expected.

In my local environment, both on my computer and testserver (64bit) it works first time, but in my customers environment (64bit) it fails as described. I've checked that we've got exactly the same version of SQL Server.

Any ideas where to start debugging?


Lars-Erik

Ajax Nobot, updatePanel on firefox

  

Hi guys,

I encounter a very strange problem and hope someone could help me. I have a content page in which a nobot control is used to prevent any robot guessing. There is an updatepanel used to hold all the input fields, enter button and the nobot control. Whenever I finished filling out the form and pressed enter button, an invalidbadresponse will come out. This problem doesn't appear on IE, Chrome but on Firefox. I used firebug to trace the problem and then i found that 2 posts were submited. 1 is aborted and 1 is successfully sent. The most wired thing is, when i fired the webpage on debugger mode from visual web developer (http://localhost:<port> ), firefox can validate it without a problem. Once I copied the page to my website ( http://www.mySite.net/ ), such invalidbadresponse comes out. Then, I tried to remove the updatePanel and now only 1 post is sent and no more invalidbadresponse is shown. Therefore, I guess the problem is between the mechanism of nobot and updatepanel. Could anyone know what happens behind and what I could do to solve this problem ?

My challenge is from the internet:


    Protected Sub CustomChallengeResponse(ByVal sender As Object, ByVal e As AjaxControlToolkit.NoBotEventArgs)
<
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend