Performance Of Page With Code And Design In The Same Page?

Jan 8, 2010

I have a query that hit my mind when I was adding an asp.net web page in a project. Normally we place the server side code in the codebehind file. Could there be any improvement in the server side processing if we place both the code and the page design markup in the same page? I am referring to the practice like this:

[code]....

If we use separate codebehind file, we would do all these in the page load event and make div elements visible, invisible according to the test. We could even have only one div in the design page and set its inner text accordingly.

View 2 Replies


Similar Messages:

Performance - Which Page Event Is The Best Place For This Type Of Code

Jan 8, 2010

I have a relatively simple page that will do most of its operations on the client side using Javascript or JQuery. However, initially I do need to retrieve some data from the DB server based on QueryString parameters.

I plan on passing this data in the form of a JSON string to the script by an old-fashioned ASP manner ( var severData = <%=MyPublicData %>) block where MyPublicData is defined in CodeBehind as:

Public string MyPublicData;

The question is, which event in the ASP.NET page lifecycle is the best for this? Page_Init ? Page_Load? Also, is it worth the effort to do this in ASP.NET MVC. I did look at this possiblity but it seemed a little too much for a simple page like this where I do more 90% of the work on the client.

View 4 Replies

Will Commenting-out Unused Code Give Page A Performance Boost In Any Way, Shape, Or Form

Aug 2, 2010

Okay so my situation at work is that I've written about 200 or so lines of additional functionality into an aspx page's code-behind that is currently not to be implemented. It is in a subroutine that handles an event that currently has zero chance of occurring.

Because this code is not being used, I've gotten curious. Should I comment out the subroutine that has zero chance of firing? Would it do anything to enhance the performance of the page or anything like that if I did indeed comment it out? Or could/should I just leave it as is?

View 4 Replies

WCF / ASMX :: Wcf Performance Vs Page Events Performance?

Mar 20, 2011

I am creating a service oriented application where trying to have everything using services....however there is something I am not sure of , I am having a page that calls the database at the page load...so what would be better and faster?? to call database in pageload , or to call wcf service from javascript during javascript load ??btw , I am using a repeater in the page , but I have created somekind of an engine to create the suitable html so...I'll be creating the repeaters html using the wcf and resend it back to the page If I am using a wcf service at the start.

View 1 Replies

Visual Studio 2008 SP1 - Design View Of Page Only Shows The Master Page?

Feb 26, 2010

I'm creating a app that uses a Master Page.

But when i go to Design View of the page (for creating the events automatically or for drag/drop any new control from toolbox, I don't want to type everything) the design view only shows the master page! the page controls are complete ignored!

the image: [URL]

View 2 Replies

Web Forms :: CSS Not Working In Page Derived From Child Master Page When Viewed In Browser But Works In Design...

Jun 13, 2010

I have a page with features supplied from both a master page and a child master page.In the content placeholder for the head in both master pages I have supplied the link to the stylesheet for the site.In Design View in VS 2008 the CSS code seems to be functioning correctly.When viewing in a browser the CSS does not appear to be applied at all.

Here is the CSS code for the div elements within the main content placeholder:

[Code]....

View 8 Replies

Web Forms :: Putting A Control On An Aspx Page And Double-clicking In Design View To Create VB Page?

Apr 22, 2010

I've always depended on putting a control on an aspx page and double-clicking in design view to create my VB page. But this isn't happening in my current project. It creates an inline script in my aspx page instead. Where is the option or preference or XML file or.... that controls this?

View 5 Replies

How To Design Page To Allow For Dynamic Movement Of Elements On The Page

Mar 3, 2010

I'm working on an ASP.NET page where I've got 10 entities. I'll call them Items. An Item can be displayed in one of two modes: Featured or Thumbnail. At any given time there is one Featured Item at the top of the page, and the rest are Thumbnails arranged in a 3x3 grid underneath the featured Item Each item is an ASP usercontrol that contains two divs: one div for Featured and one for Thumbnail -- when the item is Featured, the Thumbnail div is set as invisible and vice versa.

View 1 Replies

Web Forms :: Inheriting Page From Another Page With Design And Source?

Aug 5, 2010

I want to Create a page material.aspx which should inherit other page template.aspx with design and source and that template should be inherited from Master page

View 2 Replies

The Design Of The Page Is (layout Of The Page) Not As In The First Server?

May 31, 2010

i developed a web application and it is working fine in local server. when i place the web application (copy paste the file of asp.net) in another local system it is working fine but the design of the page is (layout of the page) not as in the first server what could be the problem

View 1 Replies

Configuration :: Improving Performance Of Page In IIS?

Jun 14, 2010

In my webpage, the page uses lots of images and css. The time taken to load the initial home page is huge.What are the ways,which can be done in IIS 6.0 to improve the performance?I checked few results in google, which talked about File expiration policy and enabling http compression in IIS 6.0. In the Enable content expiration, what value should be ideally used?In the Custom Http header, what should be added to improve the performance.

View 4 Replies

Telerik - Increase The Performance Of Page?

Dec 2, 2010

We have one page which is about 300 KB after compression of viewstate. It's loading very slow. We are using telerik tabstrip. There are 8 user controls being loaded for this tab. Is there anyway we can improve the performance of this page?

View 5 Replies

Performance - Slow First Page Load On Site?

Jan 20, 2010

Every now and then (always after a long period of idle-time, e.g. overnight) when I access a site built using asp.net - it takes around 15 seconds to load the page (15 seconds before I see any progress whatsoever, then the page comes up fast).Further pages on that site, or refreshes, are quick as usual - they are also fast on other machines, only the first one seems to take the 'hit'.

Page tracing never through anything up (whole cycle was a fraction of a second) So my question is where else should I be looking? Perhaps IIS? Or could it still be my asp.net app and I'm just looking in the wrong place (the trace) for clues?As I don't have much control over the IIS server, anything I can check through asp.net would be more helpful, before I go ask that particular admin.

View 7 Replies

Configuration :: Performance Test For Login Page?

Aug 3, 2010

I needed to test the performance of my site on a remote server (do not have IIS access). I am also using Visula Web Developer / Studio Professional 2008 (But not team system version).

View 2 Replies

C# - Page Content In Database Vs File Performance?

Sep 29, 2010

I am creating a site whose content is dynamic and has images in it.How much performance hit will my DB (MSSQL) take if I save content/Images in DB?

View 3 Replies

Testing ASPX Page Performance On Simultaneous Requests

Oct 26, 2010

I have to test my asp.net web application for performance when there are simultaneous requests for the web site in my developer machine before deploy in production. How can I achieve this using Visual Studio?.(without using third party tools preferably Visual studio 2010 professional edition

View 3 Replies

AJAX :: How Event That Occurs Every One Second Affect The Web Page Performance

Jun 23, 2010

I am using the timer inside UpdatePanel to check the time every second and enter it to a label control.

But I must ask, How this is going to effect performance? Bandwidth of the site?

View 6 Replies

OutputCache Page Directive To Improve Performance Of The Site

May 14, 2010

I am having trouble with the performance of a web site... Some SQL queries are killing the server. But, as the title of this post mention, I looked at the OutputCache page directive to improve performance of the site. Although, I came across some questions regarding this directive:

1- If I have a web-user control that declares an OuputCache directive in a page that has one too, which one will "win"?

2- What's the best pratice regarding the duration ? I'd love to have a sliding window too.

View 2 Replies

Performance - Page Contains Dynamic Elements - Loading Takes Time

Feb 10, 2010

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 data for rows and columns
CheckBox[] chkBox = new CheckBox[rows * columns]; //creates a collection of checkboxes
//Iterate over the query set in a double for loop to create dynamic checkboxes
}
</script>

Right now I have the number of rows=20 and columns=10, but it can increase (with the columns more likely). I used the Net tab in Firebug to ascertain the time taken by different events and found that GetTest.aspx is taking close to 4 minutes, which is too long a time to wait. Is there a way to being down the page load time? Is my approach to create dynamic check boxes correct?

View 4 Replies

What Is Website Page Performance When Input Controls Exceed High

Dec 8, 2010

I have requirement in website, where i need to provide around 60 textbox inside form.

I woud like to know whether it make performance down when i put such large count of textbox (60) in form.

Is there any alternate way to meet this requirement.

View 1 Replies

Web Forms :: Performance - Page Is Being Loaded For The First Time Vs SubSequent Request?

Sep 17, 2010

I have some serious performance Issues with Windows controls loading first time on IE Browser then subsequent request's. When ever i open Browser first time , mywebsite takes 7 seconds to load, but on subsequent request without closing browser it loads with-in 2 seconds.I Knew IIS on first time it re-compiles the process and for subsequent request's it wont perform and it cahches .I'm looking for better options to improve performance, when ever first time reqest's comes to web server.

On IIS 7 Server,I was using both Dynamic and Static compression enabled.Also,On application pool ,I set "ShutDown Time(Limit)" and "Startup Time(Limit") to 90 (seconds).Here is web.config i disable below to improve performance issues.

<trace enabled="false" pageOutput="false" />
<compilation debug="false"/>

Here is the Server Configuration

Windows 2008 Server
IIS 7 64 bit
Upto Date patches.
.Net Framework 2.0,3.0,3.5

Need inputs to improve performance when user call website for first time.

View 2 Replies

AJAX :: WebSite Performance Decreasing Due To Heavy Page Size

Apr 10, 2012

In my website for one project we have 5000+ records in sql database. If I give page size is 100 for gridview then the paze size showing 800kb in firebug net panel and it is taking 20-30 seconds to load webpage. If I give page size is 10 for gridview then the paze size showing 160kb in firebug net panel and it is taking 5-6 seconds to load webpage.  If I give page size is 5for gridview then the paze size showing 130kb in firebug net panel and it is taking less than 6 seconds to load webpage. I noticed that due to heavy paze size the performance decreasing but as per my requirent the paze size should be 100 or above and the page should be load less than 2 seconds.

Note: I am using Ajax Update panels

View 1 Replies

Forms Data Controls :: Gridview Width / When Add Columns To Gridview The Width Shoots Out Of The Page And The Page Design Is Seems Ruined?

Feb 11, 2010

.I am new to asp.net.Is there any way we can limi the width of the gridview in the design mode.

I have to put 15-20 columns on the gridview.When I add columns to gridview the width shoots out of the page and the page design is seems ruined.

i placed it inside the panel and added scrol bars to it. it looks ok when debuggin i.e looks ok in internet explorer but in design mode it ruins the page design.

View 4 Replies

Web Forms :: How To Improve The Performance Of This Page Like Making The Results To Be Displayed More Faster

May 1, 2010

I designed a web page in that i'm getting the query and executing the query, if a single user enters some query then the time won't be a matter, but if more than one person is accessing the webpage, then it will make delays to execute the queries,

how can i improve the performance of this page like making the results to be displayed more faster?

View 6 Replies

Forms Data Controls :: Binding Gridview - The Performance Of The Page Is Very Slow

Jan 20, 2011

I am using gridview. In which i m entering some value in textbox in Gridview.According to that value, i m generating datatable and binding it to the Gridview(Child Gridview).But when i m doing this, the performance of the page is very slow. How do i improve the performance.

View 3 Replies







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