Solved

query strings

Posted on 2009-05-05
2
159 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

743 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now