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
1
Answer
urlrewrite using global.aspx
andy
15y
3.6k
1
Reply
My url is something like this http://
:
/cather/getfilters?id=1&desc=xxx (here id and desc may vary) i know i can use urlrewrite or handling request in Application_BeginRequest method in global.aspx. protected void Application_BeginRequest(Object sender, EventArgs e){ try { HttpContext myContext = HttpContext.Current; myContext.RewritePath("actualfile.aspx?" + myContext.Request.QueryString, true); } catch (Exception ex) { } } this code is working fine when i tested in my localhost using port number only. Its not working when i use ipaddress in my local pc or production environment. I guess only way global.asax file will be called is from the .NET engine which is called by IIS. i think IIS doesn't understand my url http://
:
/cather/getfilters?id=1&desc=xxx how to i set up in IIS to make understand above url and calling .NET engine. so But strange how its understanding when i use http://localhost:1987/cather/getfilters?id=1&desc=xxx call is accessing global.aspx and my code working fine. above
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
how to immediately retrieve the identify after insert
When using an implicitly typed array , which of the following is most appropriate?