0

I'm locally debugging a page that runs on our server. The page normally has ?Parameters.

How do I set those when debugging locally?

1
  • Can you give us more information? Commented Aug 3, 2018 at 23:11

2 Answers 2

1

All you need to do is append the values to your querystring and then set breakpoints in the code-behind or controller. For example, if have a page at this url:

You can access the querystring parameters like this:

  var foo = Request.Querystring["Parameters"]

Here's a link with a little more instruction.

Sign up to request clarification or add additional context in comments.

Comments

1

If your starting page is to contain querystring parameters, you can specify the page with a querystring value in the Start Options for the project.

Start Options - Visual Studio 2022

the URL to use as localhost is visible in the project properties project properties

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.