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 / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Server.Transfer error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Claudia Fong - 12 Sep 2007 08:59 GMT
In my application I have two webform. In one of the webform I have a
button where the user clicks and it should open another webform.. but
when I click that button, it shows me the error:

Error executing child request for Language.aspx.

I'm new in ASP.NET so I can't understand where is the problem..

Can someone tell me what I'm missing?

Cheers!

   Claudi
Mark Rae [MVP] - 12 Sep 2007 09:13 GMT
> Can someone tell me what I'm missing?

Please show your code...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

Claudia Fong - 12 Sep 2007 09:29 GMT
protected void Button1_Click(object sender, EventArgs e)
   {
       Server.Transfer("Language.aspx");
   }

Cheers!

   Claudi
Alexey Smirnov - 12 Sep 2007 09:45 GMT
> protected void Button1_Click(object sender, EventArgs e)
>     {
[quoted text clipped - 6 lines]
>
> *** Sent via Developersdexhttp://www.developersdex.com***

Either use Response.Redirect, or try to set EnableViewStateMac to
false on Language.aspx

<%@Page EnableViewStateMac="false">
Mark Rae [MVP] - 12 Sep 2007 09:51 GMT
> Server.Transfer("Language.aspx");

What happens if you try:

Response.Redirect("Language.aspx", false);

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

Claudia Fong - 12 Sep 2007 10:25 GMT
I put Response.Redirect("Language.aspx");
and it works

Cheers!

   Claudi
Mark Rae [MVP] - 12 Sep 2007 10:32 GMT
> I put Response.Redirect("Language.aspx"); and it works

I would advise you to use Response.Redirect("Language.aspx", false) as I
suggested...
http://msdn2.microsoft.com/en-us/library/a8wa7sdt(vs.80).aspx

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net


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.