|
The screen shots are probably executing in the context of the IIS user.
I, for one, would be worried if this functionality actually worked. What's to stop a website from taking screenshots of everyone's desktop that visits their page?
|
|
|
|
|
Hi,
I'm trying to implement a WAP front end for a Website, but the website i am trying to wrap requires an active session for users to use it.
I've created the WAP pages on a seperate server and have the requests sent to a worker process that processes the live Webpages. However, using the WebRequest and WebResponse, i can't seem to maintain an active session (I'm re-creating a new instace for each request).
How would i go about retaining a session between multiple requests? OR, how can i use a single request object to make multiple consecutive request?
Any examples or articles would be appreciated.
Cheers
Tris
|
|
|
|
|
You must retrieve the CookieContainer of the first response (HttpWebRequest object) and retain the CookieContainer for the subsequent requests
|
|
|
|
|
If you are using HttpHandler, then you need to have IRequiresSessionState interface (marker interface) to be implemented.
Then the automatic WebRequests would pass through.
|
|
|
|
|
hi friends.........
can anybody help me
my page taking longtime to postback in the meantime i want to display an Hourglass(waiting cursor)..
pls give me some idea
thnx in advance
|
|
|
|
|
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; }
|
|
|
|