D
dee
Hi
How can I cause a postback in code, e.g., without clicking on a button?
Thanks.
Dee
How can I cause a postback in code, e.g., without clicking on a button?
Thanks.
Dee
ural said:try document.forms[0].submit();
dee said:Hi
How can I cause a postback in code, e.g., without clicking on a button?
Thanks.
Dee
Brock Allen said:Well, it's not quite that simple. You use this method to get a block of
javascript and then you have to attach it somewhere in the rendered HTML
(typically in some client side javascript event). Once the client side
event fires, then it will execute this javascript which triggers the
postback.
-Brock
DevelopMentor
http://staff.develop.com/ballen