Post Backs

  • Thread starter Thread starter Mark S.
  • Start date Start date
M

Mark S.

Hello,
Question is there a way to force a PostBack of an aspx page. The
codebehind is VB.
I can force a refresh with
Response.AddHeader("Refresh", "30")

But what I would like is a postback so form keeps it data.

Thanks

Mark
 
Yea, I thought as much. Was just hopeing there was a different way.
Javascript is not my stong suit.

Thanks
 
It's not hard at all.

Just put following line into the code before <body> tag

<script>
window.setTimeout("__doPostBack('','');", 1000);
</script>

Pay attention those are apostrophees insied of doPostBack.
And 1000 is 1 second.

George.
 
Back
Top