473,569 Members | 2,782 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

does anyone knows how to move the bottom of current page, after i press the "button"

Cheers~
Nov 19 '05 #1
15 2226
You could try using the window.scrollTo () method in JavaScript.

"Alan Ho" <gt*********@ya hoo.com.hk> wrote in message
news:ui******** ******@TK2MSFTN GP09.phx.gbl...
Cheers~

Nov 19 '05 #2
Hello Peter,

try this:

<script language="javas cript">
function doscroll(){
x=document.body .scrollHeight;
x=x+99999
window.scrollTo (0,x);
}
</script>

then in your button's tag add onclick="doscro ll()"
You could try using the window.scrollTo () method in JavaScript.

"Alan Ho" <gt*********@ya hoo.com.hk> wrote in message
news:ui******** ******@TK2MSFTN GP09.phx.gbl...
Cheers~


Nov 19 '05 #3
thx
"Peter Rilling" <pe***@nospam.r illing.net> ¦b¶l¥ó
news:%2******** ********@TK2MSF TNGP10.phx.gbl ¤¤¼¶¼g...
You could try using the window.scrollTo () method in JavaScript.

"Alan Ho" <gt*********@ya hoo.com.hk> wrote in message
news:ui******** ******@TK2MSFTN GP09.phx.gbl...
Cheers~


Nov 19 '05 #4
cheers~
"Martin Carolan" <mc******@gmail .com> ¦b¶l¥ó
news:17******** *************@n ews.cable.ntlwo rld.com ¤¤¼¶¼g...
Hello Peter,

try this:

<script language="javas cript">
function doscroll(){
x=document.body .scrollHeight;
x=x+99999
window.scrollTo (0,x);
}
</script>

then in your button's tag add onclick="doscro ll()"
You could try using the window.scrollTo () method in JavaScript.

"Alan Ho" <gt*********@ya hoo.com.hk> wrote in message
news:ui******** ******@TK2MSFTN GP09.phx.gbl...
Cheers~


Nov 19 '05 #5
i would like to know how can i use this script in Asp:Button?
thanks
"Martin Carolan" <mc******@gmail .com> ¦b¶l¥ó
news:17******** *************@n ews.cable.ntlwo rld.com ¤¤¼¶¼g...
Hello Peter,

try this:

<script language="javas cript">
function doscroll(){
x=document.body .scrollHeight;
x=x+99999
window.scrollTo (0,x);
}
</script>

then in your button's tag add onclick="doscro ll()"
You could try using the window.scrollTo () method in JavaScript.

"Alan Ho" <gt*********@ya hoo.com.hk> wrote in message
news:ui******** ******@TK2MSFTN GP09.phx.gbl...
Cheers~


Nov 19 '05 #6
Hello Alan,

in your code just add

button1.Attribu tes.Add("onclic k", "doscroll() ");

That should work.
i would like to know how can i use this script in Asp:Button?
thanks
"Martin Carolan" <mc******@gmail .com> ¦b¶l¥ó
news:17******** *************@n ews.cable.ntlwo rld.com ¤¤¼¶¼g...
Hello Peter,

try this:

<script language="javas cript">
function doscroll(){
x=document.body .scrollHeight;
x=x+99999
window.scrollTo (0,x);
}
</script>
then in your button's tag add onclick="doscro ll()"
You could try using the window.scrollTo () method in JavaScript.

"Alan Ho" <gt*********@ya hoo.com.hk> wrote in message
news:ui******** ******@TK2MSFTN GP09.phx.gbl...

Cheers~


Nov 19 '05 #7
i tried it...
but it seems still not work........
"Martin Carolan" <mc******@gmail .com> ¦b¶l¥ó
news:17******** *************@n ews.cable.ntlwo rld.com ¤¤¼¶¼g...
Hello Alan,

in your code just add

button1.Attribu tes.Add("onclic k", "doscroll() ");

That should work.
i would like to know how can i use this script in Asp:Button?
thanks
"Martin Carolan" <mc******@gmail .com> ¦b¶l¥ó
news:17******** *************@n ews.cable.ntlwo rld.com ¤¤¼¶¼g...
Hello Peter,

try this:

<script language="javas cript">
function doscroll(){
x=document.body .scrollHeight;
x=x+99999
window.scrollTo (0,x);
}
</script>
then in your button's tag add onclick="doscro ll()"

You could try using the window.scrollTo () method in JavaScript.

"Alan Ho" <gt*********@ya hoo.com.hk> wrote in message
news:ui******** ******@TK2MSFTN GP09.phx.gbl...

> Cheers~
>


Nov 19 '05 #8
Hello Alan,

What error do you get (if any) when trying that method?

Martin.
i tried it...
but it seems still not work........
"Martin Carolan" <mc******@gmail .com> ¦b¶l¥ó
news:17******** *************@n ews.cable.ntlwo rld.com ¤¤¼¶¼g...
Hello Alan,

in your code just add

button1.Attribu tes.Add("onclic k", "doscroll() ");

That should work.
i would like to know how can i use this script in Asp:Button?
thanks
"Martin Carolan" <mc******@gmail .com> ¦b¶l¥ó
news:17******** *************@n ews.cable.ntlwo rld.com ¤¤¼¶¼g...
Hello Peter,

try this:

<script language="javas cript">
function doscroll(){
x=document.body .scrollHeight;
x=x+99999
window.scrollTo (0,x);
}
</script>
then in your button's tag add onclick="doscro ll()"
> You could try using the window.scrollTo () method in JavaScript.
>
> "Alan Ho" <gt*********@ya hoo.com.hk> wrote in message
> news:ui******** ******@TK2MSFTN GP09.phx.gbl...
>
>> Cheers~
>>


Nov 19 '05 #9
Dear Martin,
I put the Button2.Attribu tes.Add("onClic k", "doscroll() "); in
webForm2.aspx.c s as below

private void Button2_Click(o bject sender, System.EventArg s e)
{
Button2.Attribu tes.Add("onClic k", "doscroll() ");

}

and in html

<script language="javas cript">
function doscroll(){
x=documen.body. scrollHeight;
x=x+999;
self.scrollTo(0 ,100);}</script>
<h2>
<asp:Button id="Button2" style="Z-INDEX: 101; LEFT: 352px; POSITION:
absolute; TOP: 912px" runat="server" Text="Button"
onClick="doscro ll()"></asp:Button></h2>
after i try to run it...show the error message
"CS0117: 'ASP.WebForm2_a spx' not include 'doscroll' define / declare
"Martin Carolan" <mc******@gmail .com> ¦b¶l¥ó
news:20******** *************@n ews.cable.ntlwo rld.com ¤¤¼¶¼g...
Hello Alan,

What error do you get (if any) when trying that method?

Martin.
i tried it...
but it seems still not work........
"Martin Carolan" <mc******@gmail .com> ¦b¶l¥ó
news:17******** *************@n ews.cable.ntlwo rld.com ¤¤¼¶¼g...
Hello Alan,

in your code just add

button1.Attribu tes.Add("onclic k", "doscroll() ");

That should work.

i would like to know how can i use this script in Asp:Button?
thanks
"Martin Carolan" <mc******@gmail .com> ¦b¶l¥ó
news:17******** *************@n ews.cable.ntlwo rld.com ¤¤¼¶¼g...
> Hello Peter,
>
> try this:
>
> <script language="javas cript">
> function doscroll(){
> x=document.body .scrollHeight;
> x=x+99999
> window.scrollTo (0,x);
> }
> </script>
> then in your button's tag add onclick="doscro ll()"
>> You could try using the window.scrollTo () method in JavaScript.
>>
>> "Alan Ho" <gt*********@ya hoo.com.hk> wrote in message
>> news:ui******** ******@TK2MSFTN GP09.phx.gbl...
>>
>>> Cheers~
>>>


Nov 19 '05 #10

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

Similar topics

5
2266
by: Nick Li | last post by:
Hi, I need to create a html page so that "Back" button(or some other button) is disabled in IE browser. I would appreciate your help. Nick Li
1
2070
by: Tom Youngquist | last post by:
Does anyone know the command to "imitate" the "Back" button on a browser in .NET. I have looked in the Redirect but can't seem to find anything. I can re-direct to a specific page but my users come from differnet places so would like to put a "Back" button on the page. Thanks. Tom Youngquist Tom_Y@ix.netcom.com
6
8219
by: Paul Turley | last post by:
Does anyone have some sample script to "press" a button or image button when the user presses the Enter key? I see this behavior on a lot of web pages but I'm not finding any samples. Thx -- Paul Turley, MCSD, MCAD, MCT, MSF Practitioner, A+ Technician paul@createsolutions.net
0
1781
by: Henke | last post by:
Hi, I have done some research about my problem I have when using the "back button" in IE to go back to a page with two dropdown lists. The both dropdown lists are populated with data. The first dropdown lists is redirecting the user to another page (building a querystring for the second page to use) and when the back button
7
3567
by: Venus | last post by:
Hello, I am trying to generate a dynamic form at runtime and would like to do it using "<asp: ..." form elements as follows Build up the string that is placed somewhere in the HTML code the same way like regular input fields can. strForm = "<form name=""myForm"" runat=""server"">" & vbCrLf strForm += "<asp:button name=""myName"" .......
3
2935
by: Olivier Verdin | last post by:
Hi, I am developing a multi-language application in ASP.NET in c#. I am using a file field html control to upload an image. I would like to change the text on the button "browse" that comes with the control. I need to change the text to have the correct text for the language chosen.
3
3587
by: felecha | last post by:
I'm something of a rookie at .Net. I know I can set TabIndex for controls in a GroupBox, and tab my way over to a button so it's "Active" and will be clicked by hitting the Enter key. But isn't there some way of setting it to the same state? I've built a very simple login for a tabpage in a tab control, so you enter a name and password...
1
1289
by: Agnes | last post by:
I use vb.net to preview the report (it is designed by cyrstal report), and there is "X" button on the left hand side of "refresh", when I mouse on"X" button , it said "close current view" However, as i press it, no response, My client complaint that it make them confuse. Can I remove it ? Thanks
0
7917
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7665
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5501
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2105
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.