Go to next page

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
 
G

Guest

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.
 
H

Hans Kesting

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top