Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
978 views
in Technique[技术] by (71.8m points)

url - C# redirect with multiple parameters

I am passing 2 parameters to a C# controller which takes a user to a login page and then after logged in, it redirects the user to a page with both parameters in the URL. Below is an example of what I am trying to accomplish. Login page with ReturnURL which triggers the redirect string http://localhost:64866/account/LogOnOV?ReturnUrl=/Setup/DeviceInfo?id=575994&code=IMCLAL

After logging in, it should then redirect to the following http://localhost:64866/Setup/DeviceInfo?id=575994&code=IMCLAL

The issue I am having, is that it redirects the user to http://localhost:64866/Setup/DeviceInfo?id=575994

As you can see, it removes the second parameter when redirecting.

question from:https://stackoverflow.com/questions/65832094/c-sharp-redirect-with-multiple-parameters

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...