Re: Clearing the data....

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Paul King (kin0363k_at_hotmail.com)
Date: 07/29/04


Date: Thu, 29 Jul 2004 15:40:32 +0100

No problems Kevin, I will use the Response.Redirect.

I just done a web search on Response.Redirect and it recommended to use
Server.Transfer as this was less intensive on IIS.

Regards
Paul.

"Kevin Spencer" <kspencer@takempis.com> wrote in message
news:eSAewMXdEHA.1356@TK2MSFTNGP09.phx.gbl...
> I didn't say anything about Server.Transfer. Response.Redirect tells the
> browser to request a new URL. Refreshing the page redirected to does just
> that: it refreshes the page that the Redirect linked to.
>
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
>
> "Paul King" <kin0363k@hotmail.com> wrote in message
> news:eBxm2BXdEHA.2664@TK2MSFTNGP09.phx.gbl...
> > Kevin
> >
> > Thanks for the information - the only problem is that you can Invoke the
> > Response.Redirect or Server.Transfer to clear the entry of the form.
> >
> > However if you hit the refresh button on a blank form this will
duplicate
> > another entry into the SQL from the DataSet. I need to somehow also
clear
> > the DataSet.
> >
> > Regards
> > Paul.
> >
> > "Kevin Spencer" <kspencer@takempis.com> wrote in message
> > news:etQAgnWdEHA.1152@TK2MSFTNGP09.phx.gbl...
> > > Simplest solution: After the INSERT is performed, do a
Response.Redirect
> > > back to the same page.
> > >
> > > --
> > > HTH,
> > > Kevin Spencer
> > > .Net Developer
> > > Microsoft MVP
> > > Big things are made up
> > > of lots of little things.
> > >
> > > "Paul King" <kin0363k@hotmail.com> wrote in message
> > > news:eSgbQgUdEHA.3632@TK2MSFTNGP09.phx.gbl...
> > > > I have created a form on the web that allows us to update a table on
> our
> > > SQL
> > > > server using the INSERT function.
> > > >
> > > > The way the page is constructed is that the results panel refreshes
> with
> > > the
> > > > new data after a post has been issued. This is fine and dandy, but
if
> > we
> > > > were to refresh the browser, this would duplicate another record
with
> > the
> > > > same details.
> > > >
> > > > I would there like to either:
> > > >
> > > > A) Clear the input from the screen after a POST has been issued or,
> > > > B) Clear the DataSet data so that this will not duplicate the
> > information
> > > if
> > > > a refresh was issued.
> > > >
> > > > Please can you help
> > > >
> > > > Thanks
> > > > Paul
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Quantcast