cause postback with javascript function

P

Paul

Just wondering if there is a way to cause a post back with a javascript
function?
Thanks.
 
G

George

Pretty much that is the only way :)


Dump any empty (not text propery specified ) LinkButton on the form and
check out generated HTML.
You will see somehting like OnClick="__doPostBack('$LinkButton1');"

that is the way :)

George.
 
L

Lloyd Sheen

Paul said:
Just wondering if there is a way to cause a post back with a javascript
function?
Thanks.

Check out the __doPostBack javascript function. This is what gets called on
a regular asp.net postback. You can set the parameters to values.

Hope this helps
LS
 
P

Paul

thanks for the responses, I need to pass parameters to the URL string on the
post back so thinking a few of these methods should work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top