pageload

ASP.Net / Umbraco Website has (initially) very high server response time.

Hi guys, I've got this problem. I launched an ASP.NET website with the Umbraco CMS on an ISP. (Its just a very basic informative site. nothing special.) When I go want to visit the website however, the first pageload takes a lot of time, sometimes even up to 20 seconds. Of course this is ridiculous. Afterwards, I am able to navigate t...

ASP.NET page contains dynamic elements, loading takes time

Hi I am dynamically creating a table of checkboxes on my test.aspx page. The dimensions (row and column count) of the table are determined by querying the database. In test.aspx page, I do the following: <script language="C#" runat="server"> protected void Page_Load ( object src, EventArgs e ) { //Query the database to get the dat...

ASP.NET Multiple Page_Load events with URL Rewriting

Hello All, Im using intelligencia urlrewriter as my url rewrite module. I have one very strange problem which only occurs when an url is rewritten but to make it more fun, not on all rewritten pages. Edit: Forgot to tell you what's the problem boing boing. the problem is that my Page_Load event gets fired 2 times. This is how my f...

Does the iframe have any effect on page load time? Why not?

Like the headline says: What effect does iframe have on page load time? Thanks. ...

the Javascript "function pageLoad()" doesn't play nice with UpdatePanel...

So I've got this UpdatePanel. Inside it I have a nifty little jQuery scroll gallery of thumbnails which shows the full image in a container after posting back to get the full image URL from the server. Each thumbnail in the scroll gallery is an imageButton with an onCommand event. What's happening is that when a thumbnail is clicked it ...

Run a javascript function on script load

I am using jQuery. I keep all of my function definitions wrapped in the $(document).ready event in application.js. I have a function from it that I would like to call somewhere in the body of the page I am working on. I was wondering if there is some alternative to the .ready event that will work on a script load. Ideally I would l...

Telerik RadGrid doesn't display on first Page_Load but does on postback

I have a page with a drop-down. Based on the selection in the drop-down, data gets loaded and populates a RadGrid. I am using a custom user control for the EditTemplate, so I can't use radGrid.DataBind(). Instead, I have to use radGrid.MasterTableView.Rebind() in association with a NeedDataSource event handler. My problem is that when...

.net ViewState in page lifecycle

I have a page containing a control called PhoneInfo.ascx. PhoneInfo is dynamically created using LoadControl() and then the initControl() function is called passing in an initialization object to set some initial textbox values within PhoneInfo. The user then changes these values and hits a submit button on the page which is wired up t...

Sign out button reloads all user controls

I have an aspx page with several user controls (ascx) as well as an asp:button for signing out. The click event of the button clears the session and does a response.redirect to the login page. However, before the click event is called, since the page posts back, all of the Page_Load events run for all of the controls. What is th...

where is the best place to place a javascript snippet to alter the DOM of a page before it renders

I have a few dynamic pages and I want to alter certain elements before the page has fully rendered. My snippet is something like document.body.getElementById("change").innerHTML = "<img src..."; I do not have access to change the content server side. Where is the best place to put the snippet to have the code run before the page it ...

Multiple WCF calls for a single ASP.NET page load

I have an existing asp.net web application I am redesigning to use a service architecture. I have the beginnings of an WCF service which I am able to call and perform functions with no problems. As far as updating data, it all makes sense. For example, I have a button that says Submit Order, it sends the data to the service, which does t...

Control in Gridview loses all values

I have a checkboxlist, contained within a user control. The user control resides in a template field inside a gridview. On Page_Init I bind the checkboxlist. Everytime a post back occurs, all values are lost from the checkboxlist. Is there any way to get around it? ...

How do you detach your pageload from third party scripts?

I have this problem where the UI components of my page like the drop down menus arent available until thirdparty scripts finish loading. This causes a problem because who knows whats going on on those servers. I need to detach the availability of the page's interactive components from the loading of thirdparty stuff... how? =/ ...

get data from a querystring

i have this querystring that shall open up my page. http://www.a1-one.com/[email protected]&amp;stuid=123456 Now when this page loads, on page_load, I want to pick up email and stuid in two different variables. So I can use them to insert into my database (sql server) how can this be done in vb.net ...

how to set focus the dropdown item in the page load event?

Based on my dataset row value , my drop drown will focus the particular list item in page load event. ddparty.SelectedIndex = ddparty.Items.IndexOf(ddparty.Items.FindByValue(ds.Tables[2].Rows[0][1].ToString())); i try the above code its not working. ...

Greasemonkey script not executed when unusual content loading is being used

I'm trying to write a Greasemonkey script for Facebook and having some trouble with the funky page/content loading that they do (I don't quite understand this - a lot of the links are actually just changing the GET, but I think they do some kind of server redirect to make the URL look the same to the browser too?). Essentially the only t...

jQuery trigger mouseover function when page loads with the mouse over the element

Hello all, I have an ASP.NET document, with an Image element within it. I created a mouseover function on this image element and it's working fine. The question is: If the mouse is ALREADY over the element when the document loads itself, the mouseover function doesn't trigger (I need to mouseout and then mouseover again in order to trigg...

How do I keep the background images from "flashing" befor content loads?

I am working on a new site and have a repeating background image that provides "continuous" flow of the page colors. Visually it blends perfectly with the content, however, when the page loads or when I switch to another page, there is a brief pause before the content loads when this background image is visible - causing a sort of "flash...

Why does some page components not getting fully loaded in Page_Init of ASP.NET ?

In page-init, view state and some other components don't get loaded. Which are they? Why do they loaded in Page-Load only? What does the need of Page-Init then ? ...

Having two Page_Load without overriding

I have a class named PageBase inheriting from ASP.NET Page. I want to do something in PageBase's Page_Load. All pages in my application have their logic done on their Page_Load. I'm thinking of a way that Page_Load of both of PageBase and other pages run without having to override Page_Load in pages. Is it possbile? ...