> Hi guys,
>
[quoted text clipped - 21 lines]
> Thank you
> Maz
BTW, all you have to do to make AutoCompleteExtender stop working is
to add
protected void Application_BeginRequest(object sender, EventArgs e)
{
HttpContext incoming = HttpContext.Current;
string oldPath = incoming.Request.Path;
incoming.RewritePath(oldPath);
}
to Global.asax file. Anyone knows why?
Thx
George Ter-Saakov - 20 Mar 2008 13:27 GMT
If you URL has query parameters then Request.Path will strip then,
so in url http://www.myserver.com/mypage.aspx?q1=aaa
the Request.Path is /mypage.aspx
So when you rewrite it you loosing the query parameters.
Might be the case....
try something like
ctx.RewritePath(oldPath, "", Request.Url.Query);
PS: You might need to strip out question mark since as far as I recall
Request.Url.Query comes back like "?q1=aaa"
George.
>"mazdotnet" <maflatoun@gmail.com> wrote in message
>news:94e3b28e-3c4a-479d-a88f->af10d627db1a@s19g2000prg.googlegroups.com...
>BTW, all you have to do to make AutoCompleteExtender stop working is
>to add
>protected void Application_BeginRequest(object sender, EventArgs e)
> {
[quoted text clipped - 3 lines]
> }
>to Global.asax file. Anyone knows why?
>Thx