Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
Generate a valid querystring in MVC
Joy Banerjee
7y
132
1
Reply
I am stuck with this problem where I need to send an url in below format -
http://localhost:55736/user/viewinfo?userid=569EF26&id=0041
I am using the following code -
string
url = Url.Action(
"viewinfo"
,
"user"
,
new
RouteValueDictionary(
new
{ id = Convert.ToInt32(id), userId = userId }),HttpContext.Request.Url.Scheme,HttpContext.Request.Url.Host);
This code generates the url like -
http://localhost:55736/user/viewinfo/569EF26....
Any suggestions how can I improve this??
Thanks..
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
hindi Font HTML content pdf conversion
How to export Tree View Structure to PDF with same formating