Re: How to clear parameter out of url

From: moondaddy (moondaddy_at_nospam.com)
Date: 06/24/04


Date: Thu, 24 Jun 2004 08:46:43 -0500

Thanks for the 2 options. #1 would be cleaner and I think I avoided some of
its performance hit by running the logic in the Page_Init method before the
line InitializeComonent executed. I used a 'redirect' and 'return' before
InitializeComonent could run. However, I ended up using #2 as it seemed to
still be a wee bit faster (although I couldn't really tell by just watching
them both run).

Thanks for the help.

-- 
moondaddy@nospam.com
"Steven Cheng[MSFT]" <v-schang@online.microsoft.com> wrote in message
news:emj9N0cWEHA.3788@cpmsftngxa10.phx.gbl...
> Hi Moondaddy,
>
> From your description, one of your ASP.NET web page will checking a
certain
> querystring parameter in the requested url and do some session operations
> depending on the parameter value. And currently you want to remove the
> certain parameter from the request url if it exist in the first request,
so
> that the following postback request won't do the duplicated operations on
> the session ,yes?
>
> As far as I know, the QueryString collection of the Request object are not
> modifiable by user, and I think you can consider the following means:
> 1.Still let the querystring param remain in the url and use the
> Page.IsPostBack property to check whether its the first time loaded or
post
> back request so as to determine whether to do the session modification or
> not.
>
> 2. User Server.Transfer or response.Redirect to reload the current page
> with the non-querystring url. But this will reduce the performance.
>
> Please have a consider on the above things. If you have any other
different
> ideas, please also feel free to post here. Thanks.
>
> Regards,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>


Relevant Pages

  • RE: How to clear parameter out of url
    ... querystring parameter in the requested url and do some session operations ... certain parameter from the request url if it exist in the first request, ... the QueryString collection of the Request object are not ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: User control remember state across pages without session
    ... Its a shame Microsoft don't extend viewstate beyond a single page because it ... An HTTP Request is received by the web server. ... It sends a Response to the client. ... > Request for a Page comes from any client, the Session Collection has a new ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IIS bug-Concurrent request lock before IHttpModule.AcquireRequ
    ... into the session object. ... You can not have 2 simultaneous request for the same session. ... public partial class slow: System.Web.UI.Page ... public override void ProcessRequest ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IIS bug-Concurrent request lock before IHttpModule.AcquireRequ
    ... shutDownMessage, ... IHttpModule stores the Hashtable of session objects in a private member ... You can not have 2 simultaneous request for the same ... protected void Page_Load(object sender, EventArgs ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Multiple instances of app under IIs and global com object - is it a problem?
    ... If IIS has, say, a pool of 25 threads, and your ASP Sessions do not exhibit ... objects) then you may not be looking at the same data when your next request ... This is why Session-level variables were provided -- in the Session ... this multiplicity of Module-level data means that you cannot ...
    (microsoft.public.inetserver.iis)