How can I cause a postback in code?

  • Thread starter Thread starter dee
  • Start date Start date
Surely it is possible but my advice u to use a link button set
style="display:none" and use javascript (click method) to raise click
event....
 
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
 
Microsoft .NET Framework works at server side.
Javascript works on client side.

You should use javascript to submit form. For instance,
<a id="s">a</a>

at javascript code,

s.click()


--

Thanks,
Yunus Emre ALPÖZEN
BSc, MCAD.NET
 
I love the way .net has made things so easy


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
 
Back
Top