hi,
i have problem in httphandler, my problem is that when i am trying to
use server.execute(/default.aspx) i am getting error....
[Error executing child request for /Default.aspx]
Here i am trying to redirect from home.aspx to default.aspx (both file
isin sharepoint).I have give a copy of my code below..
public class UrlMap : System.Web.UI.Page,IHttpHandler,
IRequiresSessionState
{
public new bool IsReusable { get { return false; } }
public new void ProcessRequest(HttpContext context)
{
string requestedUrl = context.Request.Url.ToString();
if(requestedUrl.IndexOf("/Home.aspx")!=-1)
{
context.Server.Execute("/Default.aspx");
}
}
}
The same code is working fine when i am using
server.Transfer("/Default.aspx")...
Please anyone can help how to rectify this problem...
It is vey urgent...
mail Adresss : narayanan@gsdindia.com
bye
sathya narayanan
HNG - 29 Jun 2005 22:07 GMT
why server.Transfer ??
use the example ;
session[ "any" ] = ""; // use the any datatable .. datagrid, string, number,
decimal etc..
second or other form call this ;
string any = session[ "any"]; // use the any datatable .. datagrid, string,
number, decimal etc.
> hi,
>
[quoted text clipped - 28 lines]
> bye
> sathya narayanan
HNG - 29 Jun 2005 23:17 GMT
Response.Redirect( "../" );
> hi,
>
[quoted text clipped - 17 lines]
> {
> context.Server.Execute("/Default.aspx");
Response.Redirect( "../" );
> }
> }
[quoted text clipped - 7 lines]
> bye
> sathya narayanan