|
There are many posts for this exact question. This is obviously homework.
|
|
|
|
|
You might want to look into why the page is taking so long, instead of a hacky workaround. Nice school you're going to.
|
|
|
|
|
yes u r correct but in my webpage m retrieving data from data source
there are around 3000 records , that's why its taking time to reload the page
i want to display a hourglass in this mean time.
pls give me some idea
soori
|
|
|
|
|
People here frown upon doing homework for others. You should NEVER change the cursor to an hourglass through postbacks. It's a horrible practice.
|
|
|
|
|
homework homework dont u know more than that
m clearly saying what is my requirement
and m asking to give some idea m not asking u to do homework.
i know how to do it in javascript
function hourglass()
{
document.body.style.cursor='wait';
}
how to call this method b/w reload or postback.
thanks if u can help me.
SOORI
|
|
|
|
|
If you know how to do it, then call the javascript function when it starts loading data.
|
|
|
|
|
m clicking on a link button which is on a user control.
its before page load in java script m retrieving the records and binding them to datagrid .
pls tell me where should i call hourglass().
thanks inadvance
soori
|
|
|
|
|
How about the button's click event?
|
|
|
|
|
on the .aspx page.
function unLoadPage()
{
document.body.style.cursor='wait';
}
see if this is what you are looking for.
|
|
|
|
|
write the following on Body tag
Regards,
Jegastar.
|
|
|
|
|
Hey
I have a problem with a page in a site i am developing. Basically this page will not perform server side events such as button click.
I have already checked the event wireup code and ran aspnet_regiis -i, aspnet_regiis -c.
Is there any thing else i may be missing?
Thanks.
|
|
|
|
|
Silly question, but have you defined an event handler? I can't imagine not being able to fire an event with a server side control... and it's a button, right?
Nila
I do ANYTHING for a jumbo cup of coffee right now!
|
|
|
|
|
Hi
I have a data table with around 10 millions of row, currently it is shown throught a datagrid with previous next paging option and sorting. When this data table is loaded in code for grid, it takes around 400 mb and if there are multiple sessions whole application can go up to around 2 GB, currently data table is stored in session b/c sorting requires table. if i dont store it in session then every sort takes huge time to get data from database. what is the way around.
I looked at a sample of caching but i think if i m storing 400mb of data table into it most of the time it will drop it. what can be the way around?
Regards
Shajeel
|
|
|
|
|
Create a paging procedure of your own.... Loading for example 100 rows max per page, in stead of loading the entire rows collection at once..
|
|
|
|
|
i m using asp.net datagrid with its paging. there are only 20 rows per page and previous next to move from 1 to onwards, problem is when i load whole data in data table memory of aspnet_wp process shoots. i want to keep the table so that when sorting i dont have to get data from database.
Regards
Shajeel
|
|
|
|
|
It's not a memory problem. It's a programming problem. Don't retrieve 10 million rows at one time.
|
|
|
|
|
That's exactly what I said... load the rows required to display on the current page, not more, not less...
|
|
|
|
|
then how can i use it with datagrid
now i m using
DataTable dt = GetDataTableFromDB();
grid.DataSource = dt;
grid.DataBind();
Session["dt"] = dt;
this data table contains all the rows based on search criterea and which can be 10 million, then in sortcommand event i m using
DataTable dt = (DataTable)Session["dt"];
DataView dv = dt.DefaultView;
//Sort criterea
grid.DataSource = dv;
grid.DataBind();
Regards
Shajeel
|
|
|
|
|
|
It's possible that it is a problem with temporary files. Check the settings for temporary files in the browser. The default setting is that it uses a certain percentage of the disk space, which may be much more than it can handle. Set the limit to a reasonable value, like 50 MB.
---
b { font-weight: normal; }
|
|
|
|
|
Is it a large picture that takes time to load?
|
|
|
|
|
hi all,
i am getting problem in datagrid .the problem as follows,
i am able to retrieve the Ticket numbers for Ex:1 ,2, 3 in a method return type is datatable .i want to disply this number in one cell forEx:
1
2
3
help me plse
P.gurukiran
|
|
|
|
|
Hi everyone,
Here's the situation.
We migrated an ASP (VB) site from machine 1 to machine 2
Machine 1 had IIS, SQL Server.
Machine 2 has IIS, SQL Server and .NET Framework 1.1
The site from machine 1 used to work perfectly.
But when requesting pages from the new server for index.asp,
I get the following error.
-------------------------------------------
Server object error 'ASP 0177 : 80040111'
Server.CreateObject Failed
//global.asa, line 36
ClassFactory cannot supply requested class
-------------------------------------------
Please help. If you need more info, please ask.
This is critical.
forged
|
|
|
|
|
What kind of object is it that the code tries to create in line 36?
an ASP (VB) site
You mean "an ASP (VBScript) site", I assume?
---
b { font-weight: normal; }
|
|
|
|
|
Yes absolutely, ASP VBScript.
Object? Here's the line of code which is failing:
set myObj = server.CreateObject("BETCA.clsBETCA")
Now I'm getting the followign error after changing some IIS settings:
Error Type:
Server object, ASP 0177 (0x80040111)
ClassFactory cannot supply requested class
/qanew/global.asa, line 34
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322)
Page:
GET /qanew/waqt/asp/waqtmain.asp
Time:
Friday, December 01, 2006, 5:22:17 PM
More information:
Microsoft Support
forged
|
|
|
|