简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM