cause postback with javascript function

  • Thread starter Thread starter Paul
  • Start date Start date
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.
 
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
 
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.
 
Back
Top