473,320 Members | 1,988 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Go to next page

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






May 17 '06 #1
2 4248
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.
--
Raghuram Raichooti
"mac" wrote:
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






May 17 '06 #2
> 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
May 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: joe | last post by:
Can anyone help me out by either telling me how to get to the result i need or by pointing me to some documentation about the following question: A certain query to a database give me eg 100...
3
by: Marcel | last post by:
Hello, I'm working on a search application for my website. The website contains a lot of pictures, and a search should return clickable thumbnails. No problems there. My problem started when I...
2
by: Al Cadalzo | last post by:
I am doing a screen-scraping app using HttpWebRequest. I create the HttpWebRequest and then I call the GetResponse() method on it. I get the page back OK. The page has a 'Next' button on it. ...
2
by: Arsalan Ahmad | last post by:
Hi, May be I am a newbie, or may be i dont have that much insight in following systems ..i.e. why i have some confusions as below: In many websites, when search is performed on some keywords...
3
by: md9108 | last post by:
I have a previous page and next page coded. The next page works. The previous page gives me an http: 404 error and I can't figure it out. The error is on the line "<td align=left> <!-- ...
9
by: ajos | last post by:
Hello friends, After thinking about this for sometime, i decided to post this in the java forum. Well my problem here in detail is, i have 3 jsp pages where in a.jsp(for example) i have a combo...
8
by: GaryDean | last post by:
I have a Wizard page and need to affect the next and previous buttons from my code-behind. I've googled around and found two solutions, and neither appear to work. I can access the SideBarList...
4
by: ArizonaJohn | last post by:
Hello, The code below works great. The user enters a name into an HTML form, the code looks up a table with that name, and then that table is displayed. I am trying to use pagination with it,...
16
by: pupilstuff | last post by:
hi guys i just want to perform custom paging in which at the footer of the grid view ,there must be a pager 'pervious/next with numeric' this is what i did in aspx page <asp:GridView...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.