Solved

query strings

Posted on 2009-05-05
2
161 Views
Last Modified: 2013-12-17
I am using a third party web application and I need to know the names of the querystring which are being passed around behind the scenes.

Is there any c# code which I could use to list all the available query strings.

thanks.
0
Comment
Question by:Mr_Shaw
2 Comments
 
LVL 8

Accepted Solution

by:
ppittle earned 500 total points
ID: 24305081
System.Web.HttpRequest.QueryString.   http://msdn.microsoft.com/en-us/library/system.web.httprequest.querystring.aspx

You can get access to the current instance from within your page:
public class MyPage : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Request.QueryString;
}
}

or from outside of a Page:

System.Web.HttpContext.Current.Request.QueryString;
0
 

Author Closing Comment

by:Mr_Shaw
ID: 31578030
thanks
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question