473,325 Members | 2,442 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

shouldn't the DIV remember this?

hey all,
i have a div on my page where i set the ScrollLeft value. when i do a
postback the div is set back to 0. i've made the DIV runat server and enabled
viewstate. what would i have to do to make this work?

thanks,
rodchar
Oct 13 '07 #1
1 961
Are you setting ScrollLeft using JavaScript or during a postback? If you are
setting it using JavaScript it will not be remembered because the JavaScript
will not modify the ViewState. It may also be helpful if you showed us your
code.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:A1**********************************@microsof t.com...
hey all,
i have a div on my page where i set the ScrollLeft value. when i do a
postback the div is set back to 0. i've made the DIV runat server and
enabled
viewstate. what would i have to do to make this work?

thanks,
rodchar

Oct 13 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: pl | last post by:
Hi all, I followed the mails entitled 'How to turn a variable name into a string?' in march 2005 posts as I have a similar problem. I have to get some list variable names at some point in my...
3
by: laredotornado | last post by:
Hello, I have a simple login script. I have the pages login.php login_response.php login_success.php login_failure.php What I want to do is have a checkbox on the login.php page where if...
1
by: | last post by:
I'm currently at the Macromedia Max Developer Conference in California and was impressed by vendor's InterAct User Authentication system which bascially allows one to smash together a 'Remember Me'...
5
by: Jim Hubbard | last post by:
There is another alternative which looks promising - REALbasic. I have just downloaded the demo - so don't lynch me if I'm wrong - but REALbasic looks like a very strong contender to take over...
2
by: André | last post by:
Hi, When clicking on "remember me" when logging, the user asks for not to have to log in next time he visits the site. Now, on one side, i read it is recommended to logout properly (clicking...
0
by: Frank Miverk | last post by:
Hi, I am not understanding how the Remember Me checkbox is supposed to work here. I have a LoginCtrl (asp.net 2.0, framework 2.0) and all I want to do is remember the user the next time if they...
1
by: ronchese | last post by:
Hello All. I'm trying to remember a .NET open source tool name, but I can't!! :P That tool does the following: - allow us specify a file or a text to import to its own storage; - once the...
1
by: =?Utf-8?B?VEo=?= | last post by:
Hi, Environment : Asp.net 2.0 / C# As you know, there is a "Remember me" check box in Login control is VS.NET 2005. It allows you to get in the page without logging it if user closes browser,...
13
by: Dhiru1009 | last post by:
Hi guys, I have created a login system where user can enter their username and password which when validated will take user to new page with his or her name displayed on the screen, now I want to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.