473,395 Members | 1,484 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 1011
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Andreas Jung | last post by:
I am trying to write a custom logger with a custom handler: class MyHandler(StreamHandler): pass class Logger: def __init__(self): self._l = logging.getLogger('someident')...
3
by: Jeff Shannon | last post by:
I'm having some difficulty getting my logging configuration set correctly. I'm using a config file (copied at end of post), with the intent of setting several loggers which write to a combination...
10
by: tony kulik | last post by:
This code works fine in ie and opera but not at all in Mozilla. Anybody got a clue as to how to get it right? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <script...
0
by: R Reyes | last post by:
Hi. I'm trying to make some event handlers for buttons that are nested within datalists, however I keep getting errors trying to access them and a blank page shows w/o any real error message. How...
0
by: Steve Lewin-Berlin | last post by:
For some reason (and I wish I could say specifically when) studio.net keeps dis-associating my event handlers with their events. In a recent frsutrating example, my (C#) page_load routine wasn't...
0
by: SteveLB | last post by:
(This is a repost from 48 hours ago - any reply?) For some reason (and I wish I could say specifically when) studio.net is periodically disassociating my event handlers from the events. In a...
13
by: Charles Law | last post by:
Mr "yEaH rIgHt" posted the following link about a week ago in answer to my question about removing event handlers. > http://www.vbinfozine.com/t_bindevt.shtml Following on from that post, the...
0
by: Michael Maercker | last post by:
Hi! I'm about to go nuts over my serializing problem. This is my situation: I have a Data-Class that can have children of the same class which are stored in a hashtable, i.e: X has A as a...
1
by: Spiros Bousbouras | last post by:
In 7.20.4.4 of n1124 we read: The _Exit function causes normal program termination to occur and control to be returned to the host environment. No functions registered by the atexit function...
1
by: Phil Townsend | last post by:
I have an application that needs to respond to events that occur outside of the application itself. My project, called "ShowDetection" declares the event. I have a console app called "TestEvent"...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.