|
Write faster code. Optimize your code.
Want useful answers, ask your question with some useful information.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Thanks for your response
But Sir i have not written my own code for ajax,
Simply i used Ajax Control like DropShadow etc after installing the Ajax toolkit. But after using this my site is loaded very slow.
|
|
|
|
|
Check how large your ViewState is getting. (View Source and check the content of the hidden field containing the ViewState data.)
If you for example use a grid that has 10000 rows but only display 10 rows at a time, only 10 items are rendered in the html code for the contol, but all 10000 rows end up in the ViewState.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi Guffa
Thanks for your information i didn't know that thing
but i m using Ajax control in my Home Page(First Page) of my site, In this page there are some advertisement images, In grid i m showing only ten latest records so there is no paging and other things which i m using like panel in which i m added ajax for rounded corner and shadows.
But my home page taks approximately 1 Min to loading
|
|
|
|
|
As guffa said, have you checked your view state size ?
|
|
|
|
|
AJAX in itself doesn't make the page slow. We are using AJAX on our web site, and the servers are handling up to 200 requests per second.
However, you can easily go wrong if you don't really know what's happening below the surface, creating something that uses much more resources than it would have to.
~V~ wrote: panel in which i m added ajax for rounded corner and shadows
That's not something that I would say is typical use for AJAX, or something that you would need AJAX at all to accomplish. What controls are you using for that?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
As you said that
<b"creating something="" that="" uses="" much="" more="" resources="" than="" it="" would="" have="" to.="">
Could you give me some idea about that what type of resources can be caused of slow process and which thing i shoule keep in mind to create fast access because i m newbie to asp.net and its my first site.
Thanks a lot
|
|
|
|
|
The bottle neck is usually the transmission between the server and the browser, so usually when a page is slow it's because there is a lot of data send from the server to the browser.
Check the page properties in the browser to see how large the html document itself is.
In Firefox you can use the plugin Firebug to monitor exactly what's loaded to the browser, how large the files are, and how long time it takes.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thanks a lot for your suggestion it guided me to take next step.
|
|
|
|
|
Hi i am new to all this and i need help.
What i am trying to do is display images and data from a sql data base in a repeater
the images are stored in the database with the Image Data Type.
plz help
akhlaq ahmad
|
|
|
|
|
This is very complex. You need to write a HTTP handler to serve the images, if you cannot write them onto your file system first. Then you can create elements in your page that call this file handler and get back the byte data. It's far easier if you can write the images to the HDD first. Then it's just an img tag.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Adding to CG's post, you can also create an ASPX page which reads the database image and return it to the response. Set this page as src in an img tag. You need to set the ContentType also before you write it to response.
|
|
|
|
|
I would go with what CG said, but if you can't writing an ASPX page that serves an image is how you have to do it. It won't be hard to find some sample code that does both.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
|
Hi,
Anybody know how to get response from a printer to check for any printer error?
thx
|
|
|
|
|
You can't.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
thx Chris.
Can we do it through Javascript?Or any other way you can suggest?
The requirement is to trigger emails to the Administrator through a wepApp if there is any problem with the printer attatched to the machine in which that Wepapp is browsed.
rgds
|
|
|
|
|
ASP.NET doesn't have access to the client machine like that. You might be able to with an ActiveX control...
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
payback wrote: Can we do it through Javascript?Or any other way you can suggest?
There is no way for this. ASP.NET or Javascript is not built for this. Javascript works inside the browser and executed by the browser. So you don't have permission to access devices like printer.
|
|
|
|
|
Try using Meadco ScriptX. It also has a free edition. That should limited interaction with the printer.
www.meadroid.com/scriptx/ [^]
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
hi,
I know this is asp.net forum...as there is no ajax forum i am asking this question ..
i want to use accordian in the page so i have dropped a acdordian control then using collection i have added panes when i run the program this error is coming
Error:
'AjaxControlToolkit.Accordion' does not have a public property named 'AccordionExtender'.
Please tell me how to use the accordian....
thank you
*** Why EXPERTS behave like a fool ***
|
|
|
|
|
What makes you think the AccordionClass DOES have a property called AccordionExtender ? What code is causing this error ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I dont know what happened at the back end i just dropped the accordian control and added panes to it and in the source a tag name AccordianExtender appeared which was giving error
*** Why EXPERTS behave like a fool ***
|
|
|
|
|
OK - I guess you need to read up on how the ASP.NET AJAX library is configured, you obviously have something wrong there.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Will you please provide any links or stuff regarding the asp.net ajax library configuration
thank you Christian Graus
*** Why EXPERTS behave like a fool ***
|
|
|
|