p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 1.0 and 1.1 Basics (http://p2p.wrox.com/forumdisplay.php?f=60)
-   -   Page Reloading (http://p2p.wrox.com/showthread.php?t=12094)

mahulda April 21st, 2004 07:11 AM

Page Reloading
My page size is larger than the vertical screen limit .
Every time the page Postbacks, the Screen displays the Top of the
Instead I would like the page to reload to that position of the page
which was earlier on display.
How can It be Done ?

Second Question -
How Can I programatically force a page to reload/postback ?

katsarosj April 21st, 2004 08:38 AM

Either enable SmartNavigation on your page or using javascript/vbscript to set the focus to the current control on postback.


planoie April 21st, 2004 09:06 AM

Question 2:

You need to have some client-side event cause a postback. What did you have in mind? What do you mean by "programatically force"?

Work smarter, not harder

scorpion_king April 21st, 2004 09:06 AM

In JavaScript, try using:

   window.scrollTo(x-coord, y-coord)

Your x and Y would have to be set to the coordinates in the page that you would like to go back to.

melvik April 21st, 2004 10:06 AM

For 1st one, u should save ur location area I mean ur label (<a>) Then use it in onload event, work a lottle sure u'll find out it.
And about Second put a button as a WebControl. By clicking that page will postback.

Hovik Melkomian.

Snib April 21st, 2004 10:22 AM

Here are some ideas of what you're trying to do, I think....


//postback with JavaScript

//reload with JavaScript

Is this what you're looking for?



All times are GMT -4. The time now is 06:26 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.