469,282 Members | 1,706 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

Handlers not getting called

Hi,
I am developing an Web Application in ASP.Net with C#. In this application I
have used the IsApiRewrite tool for Rewriting the URL. I have got a page
named Images and this page has got a dropdownlist. When the dropdown list is
autopostbacked then the original URL gets appended to the Rewritten URL. Not
only that any WebControl on that page is not calling its handler function
..Instead the original URL gets appended to the Rewritten URL. What i want is
that when the dropdown list is autopostback then the Rewritten URL should
appear in the browser. Kindly help me out in solving this problem.

Rewritten URL :http://localhost/Entertainment/Harr...s/Images/1.html

Actual Url: /Images.aspx?Category=Harry%20Potter%20Movies&id=1

After Selecting a new Item in Drop down list i get the URL as:
http://localhost/Entertainment/Harr...ter+Movies&id=1

The Rewriting Rule is: RewriteRule (.*)/(.*)/(.*)/Images/([\w-]+).html
$1/Images.aspx?Category=$3&id=$4 [L]

Please Help me out.
Thanks.
Apr 27 '06 #1
1 961
Hi Irshad,

Thank you for posting.

Regarding on the URL Rewriting, are you using ASP.NET's managed component
like HttpModule & Httphandler or the raw IIS isapi filter to do the work?
Based on my experience, using httpModule or the ISAPI filter is the general
way. And for post back of ASP.NET page, as long as we ensure that one fake
url will always be mapped to a fixed target url, the postback should work
well. Here is a msdn article discussing on ASP.NET url rewriting through
httpModule:

http://msdn.microsoft.com/library/en...ng.asp?frame=t
rue

Also, you can try testing on the postback through a simple rewritring
mapping in the filter or httpmodule's code.

Hope this helps some.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Apr 28 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Andreas Jung | last post: by
3 posts views Thread by Jeff Shannon | last post: by
10 posts views Thread by tony kulik | last post: by
reply views Thread by Steve Lewin-Berlin | last post: by
reply views Thread by SteveLB | last post: by
13 posts views Thread by Charles Law | last post: by
reply views Thread by Michael Maercker | last post: by
1 post views Thread by Spiros Bousbouras | last post: by
1 post views Thread by Phil Townsend | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.