|
Hi,
I am relatively new to ASP.NET with AJAX, and have a couple of performance related issues I am experiencing, and was wondering if anyone could offer some pointers.
I have quite a basic page, with 1 ScriptManager, and UpdatePanel, and 4 Collapsible panels on the page. Inside the collapsible panels, there are some labels and textboxes that are databound to various data sources. I have one button that calls an update to the database. This call happens Asynchronously as I expected as all the data controls and button is inside the UpdatePanel.
All works wonderfully locally.
On the production webserver, nonlocal users are complaining of slow performance. I have no narrowed it down to the size of the page.
I am using the WebDeveloper addon in Firefox to look at the resultant page.
Here are the results :
Documents (1 files) 28 KB (86 KB uncompressed)
Images (7 files) 15 KB
Scripts (5 files) 100 KB (540 KB uncompressed)
Style Sheets (2 files) 1 KB (3 KB uncompressed)
I have setup IIS6.0 to compress static content, as well as ASXP , AXD , CSS , JS etc.
I have not added an Javascript myself, so the script files are all compiler/control related.
Is this sort of size normal ? How do people get good performance from pages that download over 100k of scripts, for a few controls.
Any pointers would be greatly appreciated ?
Thanks,
Steve
|
|
|
|
|
You may be able to trim some of the image files down, or you may even be able to use some sprite-based magic to combine them together.
The document size (28KB) is not particularly big, but again you may be able to trim this down by removing unnecessary markup and making better use of CSS classes.
Your big resource hog seems to be the javascript files totalling 100KB, which I imagine must be some kind of javascript framework (prototype, jquery etc? 540KB uncompressed is really quite monstrous!). Most frameworks offer a compressed version which drastically reduces the size of the framework, or you may want to consider javascript compression in addition to server compression - combining your files into one and then JS compressing will have a much greater effect.
On top of that I would just verify that your site is setup to allow correct caching of static files.
|
|
|
|
|
Hi,
Thanks for the feedback.
I found I was using the debug version of the framework, dropped about 200k.
Am working on combining the files as we speak, and will look at the compression and server setup in depth,
Am looking forward to an optimized experience.
Thanks for the help.
|
|
|
|
|
Hi Everyone,
How to check a paypal's email id verified or not programatically? Does paypal give any option for that? Any answers or links welcome.
Thanks
Jegastar D.
|
|
|
|
|
Doesn't it tell you on Paypal FAQ? I would have thought that would be the best bet.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi follow the below link it may be useful for you..
http://paypaldev.org/[^]
|
|
|
|
|
Read up on the paypal faqs/documentation, sure you can find the answer there.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I am new to administering a domain on plesk. It seems the default virtual directory for a domain is *httpdocs*. I would like to contain the default site content in a separate directory, but have the domain always default to this virtual directory. How can I do this?
|
|
|
|
|
hi,
i want to paste 2 image over and over in ASP page. but i cant do it. please help me.
i want two hand for this
thanks
modified on Sunday, October 5, 2008 1:32 PM
|
|
|
|
|
Just create new image controls and add them to the page, although it seems a strange thing to do.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi,
I want to know what is the best tag to use when making a piece of text a different color. I always used to use the <font> tag, but Visual Studio said that it is "outdated". So what should I use now? The <span> tag?
Please can someone advise?
Thanks
Brendan
|
|
|
|
|
Use CSS, the idea of which it to separate out your style from your content as much as possible.
|
|
|
|
|
Use CSS?? Of course I will, but you clearly didn't understand the question. I have a style called:
separator
{
color:#999;
}
So I wanted to know what tag must I use to apply this style to have a certain piece of text a different colour? The span tag?
|
|
|
|
|
--- NET Enthusiast wrote:</div>Use CSS?? Of course ---
Then what were you twittering on about using the <font> tag for?
--- NET Enthusiast wrote:</div>what tag must I use ---
well it depends on how you have styled you page. As you have it
separator
{
color:#999;
}
is defined neither as a class which can be applied to any element, whether it be p, td or yes, even span - in which case it should be
.separator
{
color:#999;
}
(and used eg <span class="separator"> )
or as a style applied to a particular element defined by its ID, eg <div id="separator"> in which case you shouold have
#separator
{
color:#999;
}
Generally you would use span for styling elements of [parts of text) that may require multiple uses, whereas applying an ID to an element applies oly to that one element.
|
|
|
|
|
The reason <font> is considered outdated is it tells you what (text is being formatted with a specific font, color...) but not why (text is being emphasized? de-emphasized? used to represent something specific, like a keyword, abbreviation, action...).
Generally, you should use a tag that most closely fits your intentions for the text: <p> ,
<em> , <strong> , <cite> , <code> , etc. If none of the standard semantic tags come close, use <span> for inline text, <div> for block text. When using span or div, or when you need to differentiate between multiple uses of another tag (different sorts of emphasis, code...), use CSS class names to specify your intentions: <em class="warning"> ; <div class="note"> . Then, in your stylesheet, write rules against these elements and classes to provide the actual formatting:
em.warning { color: yellow; }
div.note { border: 1px solid black; padding: 2em; background-color: yellow; }
---- You're right.
These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets .
|
|
|
|
|
sir ,
i am a third yesr engineering student and we are developing a web site,basically we are having difficulties in accessing data from our database,if u can give us an insight into thus
|
|
|
|
|
what exactly your problem ??
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
i am not getting the way to access database i.e if some action is done on front end hw to retieve or update the database accordingly.
|
|
|
|
|
|
sir my front end is JSP and HTML,the backend is db2 and the server side is done using JSP,the web application is developed using RAD
|
|
|
|
|
Well THAT narrows down the problem.
Blog link to be reinstated at a later date.
|
|
|
|
|
var n=''
str=document.getElementById("attach").value
m=str.lastIndexOf("\\")
for(i=m+1;i<str.length;i++)>
{
n = n + str[i];
}
alert
document.getElementById("name").innerHTML = n;
alert(document.getElementById("name").innerHTML);
this code is work in firefox while not work in ie given undefine. why?
anybody can tell me what the reason. Big Grin
I will do my best?
Integrated Solutions, Bikaner (Raj.), India
|
|
|
|
|
...
Blog link to be reinstated at a later date.
|
|
|
|
|
Hi,
I am started traying to create a project in html. I just want to know how to call a function.
ex:
here how to call bird .
|
|
|
|
|
If by function you mean a javascript function, then you call it like you would most other programming languages:
<img src="86ttap1.jpg" usemap="" name="imagebird" height="250" width="250" önclick="bird ();"></img>
|
|
|
|