Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / June 2005

Tip: Looking for answers? Try searching our database.

problem in httphandler (server.execute)-please urgent..

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sathya - 16 Jun 2005 11:03 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.