VS 2010 - How To Determine Why Site Takes 5 Minutes Partial Postback

Dec 19, 2013

I have a web application which has rather a lot of controls. I also have several buttons (add, edit, save, cancel). Most of my content page is in an update panel so it does not process the whole page. On form submit I have some javascript code which shows a div 50% opacity and an animated gif to prevent users clicking on the buttons more than once whilst it is processing the data to the server. Here is the javascript / call:

Code:
onsubmit="overlay();"
function overlay() {
el = document.getElementById('overlay');
el.style.display = "inline";
document.getElementById('Image2').src = "../Images/loader.gif";
}
function removeoverlay() {
el = document.getElementById('overlay');
el.style.display = "none";
}

The problem is it the form disables like I want it and the giff animates for about 1.5 seconds but it does not enable the form for a further 4 seconds.

Is there anyway to see what it happpening at this point. If I put some watches in my code behind it runs through less than a second so what else can it be doing.

Also on some laptops the form does not fit vertically so there is a scroll bar. When the div is shown on a submit it does not do the full screen including the scroll area.

View 10 Replies


Similar Messages:

VS 2010 FileUpload Empty During Partial Postback?

Nov 17, 2010

I have a FileUpload control inside of an update panel that I would like to use to do async file uploads. The issue I am having is that during the partial post back, the FileUpload control is empty. I was under the impression that through an update panel doing the full page life cycle that it would pick up the use input.Am I incorrect here? Can this somehow be done or do I need to do the traditional full page post back to get this to work?

View 3 Replies

AJAX :: Request Takes A Few Minutes Then Times Out - Only In Firefox

Nov 22, 2010

I have a very peculiar problem that I've been wrapping my head around and I just can't figure it out. I have an updatepanel. Inside that I have a TabContainer. And inside that I have three TabPanels, each of which has checkboxes. Sometimes (and it happens often enough that I can easily reproduce it, but strangely may not happen with the same exact steps), when I click on different tabs or click on checkboxes inside the tabpanels (basically when I do an AJAX async postback), the request takes about a few minutes, after which the request just stops. Looking at the Firefox error console, I see this popping up after a few minutes...

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 0 Now, the asyncpostbacktimeout property for the ToolkitScriptManager is set at 360000, which is 6000 minutes, so the problem has nothing to do with that setting. In IE, I never have this problem and the AJAX requests are instantaneous and smooth, no delays. So this isn't a network or database lag issue. Something to do with how AJAX is run in Firefox. Why is it that sometimes, an AJAX request in Firefox takes a few minutes and just stops processing the request? And once again, the steps to reproduce this problem may not be the same every time, it seems random - very strange. Google searches have yielded very little help on this. I've tried things like extending the timeout property (which again has nothing to do with this), setting Response.Cache.SetNoStore() everywhere. Is there a crude workaround I can do (at this point, I'm willing to settle for a workaround). I just don't know anymore.

View 1 Replies

Databases :: The Webpage Didn't Show Any Results After 5 Minutes Which Normally Takes About 3 Secs?

Feb 9, 2010

am querying an Oracle database thru an ASP.NET web page, but the other day, the webpage didn't show any results after 5 minutes which normally takes about 3 secs. Then, 3 hours after, I got an email from the IT Dept asking me to kill my task which was taking a lot of ressources, but I couldn't since there is no way to send a user cancel request as I can do for instance with SQL Naviguator. So, they had to kill it for me. However, I do't want it to happen again because I don't want to overload the servers because of a query that didn't execute properly.

So, I thought about including connection timeout into my connection string, but there is already a default value. So, is it possible to avoid that kind of situation?My code contains a try {} finally {} to trap errors, but I didn't seem to work in this case.

View 7 Replies

Determine Time It Takes To Copy Datatable Into Another

Sep 21, 2010

I'm copying one datatable into another like this:

temporaryTreeData = treeViewData.Copy();

How could I figure out how much time it takes for the copy to complete?

View 2 Replies

How To Determine The C# Framework Version In A Partial/medium Trust Environment

Mar 18, 2010

I need to determine the clients .NET framework version in my web application. I'm running in partial trust so I can not read the filesystem or registry (Is there an easy way to check .net framework verison using C#?).

System.Environment.Version returns the runtime version, so I can not use that.

I cannot use javascript The only way I can think of at the moment is to try to load a .NET 3.5 dll and catch an exception, but this does not.

Update:

Request.Browser.ClrVersion and Request.Browser.GetClrVersions() will return the .NET framework version(s) installed on the client.

View 3 Replies

Webforms Site Using HTTPCookie With 100 Year Timeout Times Out After 20 Minutes

Jun 11, 2010

I have a site that is using Forms Auth. The client does not want the site session to expire at all for users. In the login page codebehind, the following code is used:

// user passed validation
FormsAuthentication.Initialize();
// grab the user's roles out of the database
String strRole = AssignRoles(UserName.Text);
// creates forms auth ticket with expiration date of 100 years from now and make it persistent
FormsAuthenticationTicket fat = new FormsAuthenticationTicket(1,
UserName.Text, DateTime.Now,
DateTime.Now.AddYears(100), true, strRole,
FormsAuthentication.FormsCookiePath);
// create a cookie and throw the ticket in there, set expiration date to 100 years from now
HttpCookie cookie = new HttpCookie(FormsAuthentication.FormsCookieName,
FormsAuthentication.Encrypt(fat)) { Expires = DateTime.Now.AddYears(100) };
// add the cookie to the response queue
Response.Cookies.Add(cookie);
Response.Redirect(FormsAuthentication.GetRedirectUrl(UserName.Text, false));

The web.config file auth section looks like this:

<authentication mode="Forms">
<forms name="APLOnlineCompliance" loginUrl="~/Login.aspx" defaultUrl="~/Course/CourseViewer.aspx" />
</authentication>

When I log into the site I do see the cookie correctly being sent to the browser and passed back up: However, when I walk away for 20 minutes or so, come back and try to do anything on the site, the login window reappears. This solution was working for a while on our servers - now it's back. The problem doesn't occur on my local dev box running Cassini in VS2008.

View 3 Replies

Visual Studio :: Why After Installing 2010 SP1 Starting And Stopping The Debugger Takes Forever

Mar 15, 2011

why after installing VS2010 SP1 starting and stopping the debugger takes forever?

View 1 Replies

VS 2008 Determine Postback Element?

Oct 1, 2010

Is there a way where I can actually view the name of a post back element? Below code goves me an alert but all it says is "object HTMLSelectElement". In my case it should be DropDownList3 based upon a "selectedindexchanged" event with autoppostback=true.

Code:
var pbControl = null;
pbControl = args.get_postBackElement();
alert(pbControl);
var ExecutingControl = "DropDownList3"
if (ExecutingControl == pbControl) {
alert("DropDownList3 - is the post back element");

View 2 Replies

How To Determine If A Request Is The Result Of A Postback

Aug 5, 2010

I'm implementing a custom page caching solution and I don't want the request to be cached or retrieved from the cache if it's in response to a form submission or some sort of asp.net postback.I'm trying to figure out if the current HttpRequest is a postback. Is there a way of doing this outside the context of a page or other usercontrol? In otherwords if I'm inside an HttpModule I don't have access to this.IsPostBack but I still need to determine if it is in fact a postback.

View 5 Replies

MVC :: How To Determine Which Event Caused The Postback

May 13, 2010

Currently I have two events in my view that can trigger the post back (A dropdownlist and a submit button).

1. <%= Html.DropDownList("List", ViewData["Days"] as SelectList, "--Choose Day--", new { onchange = "this.form.submit();" })%>

2. <input type="submit" value="Submit"/>

When either of these are used, it they both call the [AcceptVerbs(HttpVerbs.Post)] Index() method.

What I want to know is how can I know which event caused the postback, because I need to process each one differently.

View 2 Replies

VS 2010 - Determine If A Record Is Inserted In Database

Jun 11, 2012

I am trying to insert a record into a MySQL Table. I thought that the Insert methods returned the number of records that were successfully inserted. But that is not what I found. My code:

Code:
dim n as integer
n = taProject.InsertProject(pname, descr, idManager, startdate, tenddate, client, disable)

I get n = 0 even though the record is installed. How can I determine if the insert was successful or not?

View 1 Replies

Visual Studio :: Is It Possible To Determine At Runtime When Site Is Running In The Debugger

Sep 22, 2010

Is it possible to determine at runtime when my site is running in the debugger? I want to use one setting for production and another when I'm running in the debugger.

View 3 Replies

Security :: How To Redirect The User After 2 Minutes If There Is Inactivity For 2 Minutes

Feb 13, 2011

I want to redirect the user after 2 mins if there is inactivity for 2 mins. I am not using ASP.NEt membership. And I dont want to use Sessiontimeout for this. Session timeout will logout the user even if he is working on the system. My objective is like screensaver process.

If there is no action for the specified time, the screensaver runs. Similarly, I want to redirect the user to login page.

note that i have already handled it with the following javascript:

[Code]....

Here what my problem is,

the user is working on the site...ok.. he want to see someother site.he browse someother site and works on....or even he can do some other work in his system...but he is active in his system... What this script does is, it automatically logout the user and redirect him to login page. But it should not do while he is active...IT SHOULD REDIRECT IF HE IS NOT ACTIVE REALLY (Similar to Screensaver process)

Is it possible ?

View 1 Replies

Web Forms :: Determine Which Gridview Control Raised Postback?

May 17, 2010

I have 5 infragistics webdatagrid controls on page, I am using paging and sorting features for the grids. For paging to work for a grid, I need to rebind the grid on every postback in Page_Init or Page_Load event and after that page_indexchanged event gets fired.

Now, when I click on any page number in second grid, I don't want data of other 4grids to be re-bind. I just want to know which grid has done postback and bind that particular grid.

I checked out Request.Forms["__eventargument"] but its value is comma (",").

Consider the scenario for asp.net gridviews and depending upon that I'll get idea to proceed with Infragistics controls.

View 5 Replies

Web Forms :: Partial Rendering Of .NET Site?

Jul 22, 2010

I have an ASP.NET application which calls aspx-pages in other ASP.NET applications (all on the same server and the same solution). This aspx-pages should be shown in a (fixed) region on the main-site in that way that that only the embedded pages is renewed, during user interactions there. Is an IFRAME the only way to achieve this goal, or can I use for example theAJAX update-panel or are there further possibilities / techniques?

View 5 Replies

Partial Postback With Javascript?

Oct 19, 2010

I couldn't find something similar in SO.

In ASP.NET, is there any way that on cue I can cause a partial postback with Javascript in an UpdatePanel?

I tried __doPostBack() but it does a full postback. I can trick it with a dummy button and fire click() then handle the partial postback that way, but I want a more graceful way than trickery.

View 2 Replies

How To Detect A Partial Postback

Jun 4, 2010

How do I detect whether a postback is a partial postback from any of my Update Panels?

View 1 Replies

How To Know Which UpdatePanel Causes The Partial PostBack

Jan 31, 2011

In a page contains two UpdatePanels, How can I know which UpdatePanel causes the partial PostBack ?

I mean in the Page_Load event handler.

This is my code:

[Code]....

View 2 Replies

Web Forms :: Can Check Partial Postback?

May 27, 2010

can we check postback is partial postback or whole page postback ?

View 4 Replies

What's The Difference Between A Callback And A Partial Postback

Jun 10, 2010

Is there a difference, or are the terms synonymous? i could only find the difference between a full postback and a callback. I'm already aware of how a full postback is different.

View 1 Replies

C# - JQuery Is Not Working After Partial Postback?

Aug 25, 2010

I have this jquery functions below in external file. So after partial postback jquery is not working. I need to load jquery from server side on partial postback.

can someone show me what I need to call in this code and how to load jquery

[Code].....

View 2 Replies

AJAX :: Determine If User Control Is Contained By The Update Panel That Triggered Async Postback?

Sep 16, 2010

Does anyone know a simple way to determine if a user control is contained in an update panel that was triggered for async postback?

At the moment, the only pseudo logic for this I can think of is?

'Loop through the update panel controls on the page and find the one that is involved in the postback (isInPartialRendering)

'Try to find the user control as a child of the update panel

View 5 Replies

Web Forms :: Scroll Position After Partial Postback?

Feb 1, 2010

I have a page that uses AJAX updatepanels. On this page, we have some radio buttons with Autopostback set to true. The problem is that after the postback, the control was losing focus so that when the user would hit tab, control would be restored to the first control on the page and not the drop-down which fired the event. As a fix, I wrote some set focus code in the radio button's oncheckchanged event. This seems to have fixed the problem with the focus. The problem I have is that the browser loses its scroll position every time I click on one of these radiobuttons. Is there a way to maintain scroll position? Maybe there is another way to resolve my original problem of setting focus that will prevent this from happening.

View 6 Replies

AJAX :: Partial Postback And Update Panel?

Dec 4, 2010

i have one label out of update panel and one button inside update panel. in button click event i update the label text. when i run the code and click on button then partial postback occur and button click event fire but label value is not change. if i put the label too in the update panel then label value change at the time of button click. i do not understand why label value is not getting updated. suppose if i want that label should stay out of update panel and label value should change at the time of partial postback then how to write the code. i dont want put the label in any update panel.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved