4

I want to get data from a url on asp.net. I need the data to be a string, which I can then use in other code.

http://example.com/service_name/videos/?category={0}&offset={1}&maxResult={2}

I need category offset and maxresult's number.

Can anyone help me?

2
  • Are you talking about query string or a string in the format of a url? Commented Aug 22, 2011 at 7:34
  • ı think querry string.ı need just category ofset and max results's value.ı'm gonna use this value in sqlserver08's querry. Commented Aug 22, 2011 at 7:42

2 Answers 2

13
string category = Request.QueryString["category"];
string maxResult = Request.QueryString["maxResult"];
Sign up to request clarification or add additional context in comments.

Comments

2

ASP.NET QueryString Usage

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.