TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
andy
NA
10
0
urlrewrite using global.aspx
Dec 4 2009 6:30 PM
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
Reply
Answers (
1
)
how to immediately retrieve the identify after insert
When using an implicitly typed array , which of the following is most appropriate?