Last post Aug 02, 2010 11:01 AM by martinhoge
Aug 02, 2010 11:01 AM|martinhoge|LINK
In my application I am rewriting URL and at least this part works. I have however problem
when I want to rewrite-back page content, links for example. I use a an adapter class which implement IHttpModule,
here I use particularly method : public override void WriteAttribute(string name, string value, bool fEncode).
In this method, when it gets value of the link for example : "default.aspx?id=44", it rewrites value to "/en/somepage.aspx".
So far everything work. I generate menu and it really rewrites URLs inside. But here is my problem. On default.aspx I have
Literal control, in which I write content from database, this content is simply HTML output - with LINKS , <a href=xxx... etc..
But for this generated content, my WriteAttribute method is never hit. Where could I make a mistake? Or should I use different approach?
If you know some pages about this issue, links are welcomed.
re writting url