By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,563 Members | 1,066 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,563 IT Pros & Developers. It's quick & easy.

Autopostback prgrammitically from client-side script

P: n/a
EC
I have a web control button with which runs a client side script before it
the autopostback using the onclick event. It is working fine when the user
clicks it.

What I would like to do is "click" this button programmtically from a client
side script. Any ideas?

Or is there a way to call the autopostback event of the button and still run
the client side script?
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
You can declare a server side script block and call that from the client.

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik
"EC" <X@x.x> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have a web control button with which runs a client side script before it
the autopostback using the onclick event. It is working fine when the user clicks it.

What I would like to do is "click" this button programmtically from a client side script. Any ideas?

Or is there a way to call the autopostback event of the button and still run the client side script?

Nov 18 '05 #2

P: n/a
<script>
document.getElementById('buttonID').click();
</script>

-- bruce (sqlwork.com)

"EC" <X@x.x> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have a web control button with which runs a client side script before it
the autopostback using the onclick event. It is working fine when the user clicks it.

What I would like to do is "click" this button programmtically from a client side script. Any ideas?

Or is there a way to call the autopostback event of the button and still run the client side script?

Nov 18 '05 #3

P: n/a
That was it. Thanks!
"bruce barker" <no***********@safeco.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
<script>
document.getElementById('buttonID').click();
</script>

-- bruce (sqlwork.com)

"EC" <X@x.x> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have a web control button with which runs a client side script before
it
the autopostback using the onclick event. It is working fine when the

user
clicks it.

What I would like to do is "click" this button programmtically from a

client
side script. Any ideas?

Or is there a way to call the autopostback event of the button and still

run
the client side script?


Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.