Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Clearing QueryString


Message #1 by "Josh Bailey" <djbailey@l...> on Tue, 16 Jul 2002 19:12:08
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C22CF4.DD6EBE60
Content-Type: text/plain;
	charset="iso-8859-1"

Could you use the  Request.QueryString.Set() to set the string to ""? do
this right after you do the call mAddRow

David Debreceni
Senior Visual Basic/ASP Developer 
xxx-xxx-xxxx  x 1086


-----Original Message-----
From: Josh Bailey [mailto:djbailey@l...]
Sent: Tuesday, July 16, 2002 3:12 PM
To: ASPX_Professional
Subject: [aspx_professional] Clearing QueryString


I have a .NET site I am working on. The site includes a web control as a 
header with my main navigation. The pages also include a datgrid and a few 
dropdows.

I have tried putting the 'add row' functionality into the header control. 
I do this by response redirecting  from the web control to the correct 
page (select case statement using a global variable that has the page 
name). I then call a function to add a new row from the page's Page_Load.

        If Request.QueryString.HasKeys Then
            If Request.QueryString.Get("ACTION") Like "ADD" Then
                Call mAddRow(sender, e)

            End If
        End If


However, when I try and click anyother button it does not allow me to do 
anything else because it hits the code above and continues to execute.


  Return to Index