Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Post Backs

Reply
Thread Tools

Post Backs

 
 
Mark S.
Guest
Posts: n/a
 
      08-13-2003
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






 
Reply With Quote
 
 
 
 
S. Justin Gengo
Guest
Posts: n/a
 
      08-13-2003
Mark, you'll have to use javascript.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche


"Mark S." <> wrote in message
news:...
> 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
>
>
>
>
>
>



 
Reply With Quote
 
 
 
 
Marina
Guest
Posts: n/a
 
      08-13-2003
You would need to add some javascript to force a submit of the form.

"Mark S." <> wrote in message
news:...
> 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
>
>
>
>
>
>



 
Reply With Quote
 
Mark S.
Guest
Posts: n/a
 
      08-13-2003
Yea, I thought as much. Was just hopeing there was a different way.
Javascript is not my stong suit.

Thanks

"S. Justin Gengo" <> wrote in message
news:...
> Mark, you'll have to use javascript.
>
> Sincerely,
>
> --
> S. Justin Gengo, MCP
> Web Developer
>
> Free code library at:
> www.aboutfortunate.com
>
> "Out of chaos comes order."
> Nietzche
>
>
> "Mark S." <> wrote in message
> news:...
> > 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
> >
> >
> >
> >
> >
> >

>
>



 
Reply With Quote
 
George Ter-Saakov
Guest
Posts: n/a
 
      08-13-2003
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.

"Mark S." <> wrote in message
news:...
> Yea, I thought as much. Was just hopeing there was a different way.
> Javascript is not my stong suit.
>
> Thanks
>
> "S. Justin Gengo" <> wrote in message
> news:...
> > Mark, you'll have to use javascript.
> >
> > Sincerely,
> >
> > --
> > S. Justin Gengo, MCP
> > Web Developer
> >
> > Free code library at:
> > www.aboutfortunate.com
> >
> > "Out of chaos comes order."
> > Nietzche
> >
> >
> > "Mark S." <> wrote in message
> > news:...
> > > 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
> > >
> > >
> > >
> > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with DropDownLists and Post Backs ~john ASP .Net 5 12-19-2006 04:21 PM
Session Variable dissappears between post backs on Win 2003 Dirc Khan-Evans ASP .Net 6 10-20-2005 01:29 PM
dynamic text box and post backs - HELP!! Rosanne ASP .Net 0 06-17-2005 06:58 PM
Post Backs and dynamically created tables Jason ASP .Net 5 12-10-2004 04:56 PM
Stopping post backs possible?? ALPO ASP .Net 2 11-21-2003 04:40 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57