xarzu
xarzu

Reputation: 9479

ASPX command line

We have this on the command line

http://webapps.seattleu.edu/SUOnlineMailer/mailer.login?ReturnUrl=%2fSUOnlineMailer%2fDefault.aspx

It is missing an argument. The code behind is looking for, in addition to an assignment to ReturnURL, an assignment to To. What would that look like?

Upvotes: 0

Views: 88

Answers (1)

gunr2171
gunr2171

Reputation: 17447

The way query strings work is like this:

file.html?firstArg=firstValue&secondArg=secondValue&...

So if you want to add To, it would be

http://webapps.seattleu.edu/SUOnlineMailer/mailer.login?ReturnUrl=%2fSUOnlineMailer%2fDefault.aspx&To=somevalue

Just remember to url escape any values that need to be.

If you (and your question is quite unclear) are asking about escaping characters for command line use, then go read the documentation. In short: put a ^ before &, |, (, and ) characters.

Upvotes: 1

Related Questions