arjan
-
2/25/2008 11:22:37 PM
RE:AJAX ScriptManager replacement with the AJAX Control Toolkit version
Hi, I am not using Kentico, not yet, and I wonder if this issue is already solved.
A while ago I was playing with url rewriting myself and I created this solution, maybe it can help you out.
Please note that all your forms need to derive from UrlRewriteForm and you need to 'know' the original url. Good luck.
public class UrlRewriteForm : System.Web.UI.HtmlControls.HtmlForm { protected override void RenderAttributes(HtmlTextWriter writer) { writer.WriteAttribute("name", this.Name); base.Attributes.Remove("name");
writer.WriteAttribute("method", this.Method); base.Attributes.Remove("method");
this.Attributes.Render(writer);
if (System.Web.SiteMap.Provider.CurrentNode != null) { writer.WriteAttribute("action", ((MySiteMapProvider)System.Web.SiteMap.Provider).CurrentNode.Url); // this supplies the original url base.Attributes.Remove("action"); }
if (base.ID != null) writer.WriteAttribute("id", base.ClientID); } }
|