Go to next page

  • Thread starter Thread starter mac
  • Start date Start date
M

mac

Hi! I am Mac


I have a problem with my code with regards to call the next page
I use response.Redirect just to show the next page, I try to call the
next page on form 2 using button. Please correct my code on using
response.redirect with Namespace.



The error is

The resource you are looking for (or one of its dependencies) could have
been removed, had its name changed, or is temporarily unavailable

Here is my code.


1. Webform 1
Namespace GridDemos.DataBinding

Public Class GridDemos

End Class

End NameSpace




2,. Webform2


Public Class GridDemos

Button1__Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click

Response.Redirect("GridDemos.aspx",False)

End Sub

End Class
 
Hi Mac,

This problem is occured when the pagename you declared or written is
incorrect. so i request you to check the name of the page you want to
redirect it to. the code which you provided is fine.
 
Hi! I am Mac
I have a problem with my code with regards to call the next page
I use response.Redirect just to show the next page, I try to call the
next page on form 2 using button. Please correct my code on using
response.redirect with Namespace.

The error is

The resource you are looking for (or one of its dependencies) could have
been removed, had its name changed, or is temporarily unavailable

Here is my code.

1. Webform 1
Namespace GridDemos.DataBinding

Public Class GridDemos

End Class

End NameSpace

2,. Webform2

Public Class GridDemos

Button1__Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click

Response.Redirect("GridDemos.aspx",False)

End Sub

End Class

Is the *filename* of the first form "webform1.aspx" of
"griddemos.aspx"?
A redirect works on filenames, not on the classnames that are used
within that file (although usually they are very similar).

Hans Kesting
 
Back
Top