|
Hi all
i have developed a site and it works fine but after that i created the same site with Ajax.
but the problem is that the Home page of my site takes to long time to loaded and there is no bulky data.
The whole contant are same in both site but the site in which i m using ajax is slow and second one is faster than one, i know the ajax is not the region behind this.
In my Home page there are some addvertisement of companies and Only 10 latest record in Grid(There is no paging in grid) and 3 Web User Control.
Can anyone tell me how can i make speed of loading faster?
|
|
|
|
|
1) Have you changed the debug mode in web.config to false ?. If not change it to false.
2) Try precompiling the website using the ASPNET_COMPILER to fasten the initial page load.
3) If you are using the script manager in the page. Set the Script Mode to release.
Hope this helps.
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
how should i perform the task no 2?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
1) Create a temp folder say c:\Staging
2) Go to Programs > Microsoft Visual Studio xxxx > Visual Studio Tools > Visual Studio Command prompt
3) Type like this ( Assuming your application is created in c:\inetpub\wwroot\myApps)
ASPNET_COMPILER -p c:\inetpub\wwroot\myApps -v / c:\Staging
4) The application will be precompiled the athe result will be placed in
c:\staging
5) Now you can copy and deploy the compiled version that is on c:\Staging in your webserver.
This works only if you are using .net 2.0 or higher
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Sonia Gupta wrote: how should i perform the task no 2?
Google[^] ?
|
|
|
|
|
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Thanks Sir
I have tried all 3 steps suggested by you and uploded the site but it give error
Please have a look at the
www.advice4property.com
|
|
|
|
|
I cannot get the details of the error by running from the internet. Try running it from the local host and put the exact error message.
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
The error is
Directory Listing -- /staging/
--------------------------------------------------------------------------------
Friday, February 29, 2008 03:38 PM <dir> Add_Image
Friday, February 29, 2008 03:38 PM <dir> bin
Friday, February 29, 2008 03:38 PM <dir> DB_IMAGE
Friday, February 29, 2008 03:38 PM <dir> Property
Friday, February 29, 2008 03:38 PM 86 AboutUs.aspx
Friday, February 29, 2008 03:38 PM 86 AddNews.aspx
Friday, February 29, 2008 03:38 PM 86 AdvertisePropertyResidential.aspx
Friday, February 29, 2008 03:38 PM 86 ChnagePassword.aspx
Friday, February 29, 2008 03:38 PM 86 ContactUs.aspx
Friday, February 29, 2008 03:38 PM 86 DescriptionSearchResult.aspx
Friday, February 29, 2008 03:38 PM 86 ForgotPassword.aspx
Friday, February 29, 2008 03:38 PM 86 FuturePlanning.aspx
Friday, February 29, 2008 03:38 PM 86 Home.aspx
Friday, February 29, 2008 03:53 PM 6,592 Web.config
Tuesday, February 12, 2008 03:19 PM 545 XMLFile.xml
modified on Friday, February 29, 2008 5:25 AM
|
|
|
|
|
This does't look like a error. You may unchek directory browsing in IIS and Ass Home.aspx in to the document list.
Before that did you tried running your precompiled version from your local ystem before deploying it in Server ?
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Sorry to bother you but i have unchecked directory browsing in IIS on local machine but how can i do it on webserver?
And i don't think the matter is Directory Browsing boz when i set the current page to Home.aspx and Refresh the home page it runs fine on local but when i upload it on server it gives error
|
|
|
|
|
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Gopinath.R
modified on Friday, February 29, 2008 3:36 AM
|
|
|
|
|
I have a temporary table (datatable) at the front end.
can i send it(datatable) as a parameter field in back end stored procedure sql server 2000?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
I am not sure of the answer but i am curious to know the situation you are trying to solve by this.
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Sonia Gupta wrote: can i send it(datatable) as a parameter field in back end stored procedure sql server 2000?
What do you mean ? How you can send datatable to a stored procedure ?
|
|
|
|
|
There is a table field in the database ?
can i see that one to accomplish it?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
|
Hi, I want to capture my client's HMTL doctype by using server web control, is it possible and how to use render in web control?
Please advice...thanks ~~~
|
|
|
|
|
If i understand correctly you want to get the HTML content of your client sire and render in your site ?
A simple way is
1) Create a web request to clients site
2) Get the html content prase it to get the part you want to display.
3) Create a label and set it text to the html contect.
(The label is implemented as a simple <div> that means you can render any HTML content through its text property )
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
I'd put this in aspx.cs it works well but not in my web control..
StringWriter writer = new StringWriter();
HtmlTextWriter buffer = new HtmlTextWriter(writer);
base.Render(buffer);
string gridMarkup = writer.ToString();
Any hints and idea...
|
|
|
|
|
Try adding a dive controla and try set its innerHTML to gridMarkUP, or label.Text
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
I am creating a web component(not website ya) actually and I need to get the HTML standard of my client in a class..Base.Render is a good way but I can't get it works in my component..
|
|
|
|
|
Your question doesn't make any sense to me. What do you mean by getting the DOCTYPE of client ? Are you trying to get the DOCTYPE of another website from your control ?
|
|
|
|
|
Yes can be said so. User use my component, and in my component I need to rewrite the HTML standard..
|
|
|
|
|
i have a web app. it have a module manager file.
When i rename,delete: folder ,file -> lost session
can you help fix this error?
|
|
|
|