473,401 Members | 2,146 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,401 software developers and data experts.

URL redirect not working - question

I have a hyperlink control redirecting to another page within my site.
The URL is passed with the correct parameters, however the page won't
load.

I'm fairly new to this so I copied an existing web page that was
similar and made changes to the new context. The problem is that the
new page, when be called, doesn't get to the page_load method. Is there
some type of configuration that I missed?

Jun 20 '06 #1
8 1202
It could be a browser caching problem. Try adding a random query parameter
to the url to trick the browser into loading the page from the server.

Eliyahu

"Reeve" <ja****@jslocum.com> wrote in message
news:11**********************@c74g2000cwc.googlegr oups.com...
I have a hyperlink control redirecting to another page within my site.
The URL is passed with the correct parameters, however the page won't
load.

I'm fairly new to this so I copied an existing web page that was
similar and made changes to the new context. The problem is that the
new page, when be called, doesn't get to the page_load method. Is there
some type of configuration that I missed?

Jun 20 '06 #2
"Reeve" <ja****@jslocum.com> wrote in message
news:11**********************@c74g2000cwc.googlegr oups.com...
I have a hyperlink control redirecting to another page within my site.
The URL is passed with the correct parameters, however the page won't
load.

I'm fairly new to this so I copied an existing web page that was
similar and made changes to the new context. The problem is that the
new page, when be called, doesn't get to the page_load method. Is there
some type of configuration that I missed?


If this is v1.1, check that the modifications you've made haven't erased the
contents of the InitializeComponent() method in the Web Form Designer
generated code region - it's an extremely annoying bug which, thankfully, is
fixed in v2.
Jun 20 '06 #3
The URL passes different parameters each time I click the link. I have
also cleared out the cache and tried it again. Same effect.

Also, the contents of the InitializeComponent() method were not erased.
The page isn't even being loaded.

The name of the page I want to load is ManagerAccountTableEdit.ascx.
The navigateurl variable of the hyperlink I want to take me there is
...
"admin.aspx?Function=Administration&Action=Manager AccountTableEdit&MgrAccountID=0&ManagerID="
& ddlManager.selectedvalue
...
This follows the same format used on existing pages. Is there
something I need to do in order to "attach" the new page to the project
or should it automatically be recognized?

Thanks again.

Jun 20 '06 #4

Mark Rae wrote:
"Reeve" <ja****@jslocum.com> wrote in message
news:11**********************@c74g2000cwc.googlegr oups.com...
I have a hyperlink control redirecting to another page within my site.
The URL is passed with the correct parameters, however the page won't
load.

I'm fairly new to this so I copied an existing web page that was
similar and made changes to the new context. The problem is that the
new page, when be called, doesn't get to the page_load method. Is there
some type of configuration that I missed?


If this is v1.1, check that the modifications you've made haven't erased the
contents of the InitializeComponent() method in the Web Form Designer
generated code region - it's an extremely annoying bug which, thankfully,is
fixed in v2.


The URL passes different parameters each time I click the link. I have

also cleared out the cache and tried it again. Same effect.

Also, the contents of the InitializeComponent() method were not erased.

The page isn't even being loaded.
The name of the page I want to load is ManagerAccountTableEdit.ascx.
The navigateurl variable of the hyperlink I want to take me there is
...
"admin.aspx?Function=Administration&Action=Manager AccountTableEdit&MgrAccou*ntID=0&ManagerID="

& ddlManager.selectedvalue
...
This follows the same format used on existing pages. Is there
something I need to do in order to "attach" the new page to the project

or should it automatically be recognized?
Thanks again.

Jun 20 '06 #5
..ascx is an extension for a user control, not for a page. You are loading a
page called "admin.aspx".

Also & ddlManager.selectedvalue looks very suspicious.

Eliyahu

"Reeve" <ja****@jslocum.com> wrote in message
news:11*********************@y41g2000cwy.googlegro ups.com...

Mark Rae wrote:
"Reeve" <ja****@jslocum.com> wrote in message
news:11**********************@c74g2000cwc.googlegr oups.com...
I have a hyperlink control redirecting to another page within my site.
The URL is passed with the correct parameters, however the page won't
load.

I'm fairly new to this so I copied an existing web page that was
similar and made changes to the new context. The problem is that the
new page, when be called, doesn't get to the page_load method. Is there
some type of configuration that I missed?


If this is v1.1, check that the modifications you've made haven't erased
the
contents of the InitializeComponent() method in the Web Form Designer
generated code region - it's an extremely annoying bug which, thankfully,
is
fixed in v2.


The URL passes different parameters each time I click the link. I have

also cleared out the cache and tried it again. Same effect.

Also, the contents of the InitializeComponent() method were not erased.

The page isn't even being loaded.
The name of the page I want to load is ManagerAccountTableEdit.ascx.
The navigateurl variable of the hyperlink I want to take me there is
...
"admin.aspx?Function=Administration&Action=Manager AccountTableEdit&MgrAccou*ntID=0&ManagerID="

& ddlManager.selectedvalue
...
This follows the same format used on existing pages. Is there
something I need to do in order to "attach" the new page to the project

or should it automatically be recognized?
Thanks again.
Jun 21 '06 #6

Eliyahu Goldin wrote:
.ascx is an extension for a user control, not for a page. You are loading a
page called "admin.aspx".

Also & ddlManager.selectedvalue looks very suspicious.

Eliyahu


I'm sorry for the misunderstanding, I'm new :)

I meant to say I needed to load the user control
ManagerAccountTableEdit.ascx on the page admin.aspx. I have also
confirmed ddlManager.selectedvalue does produce the correct parameters
in the URL.

I still am confused why the user control isn't loading at all. I've
looked in the reference books I have, but there is not a lot of
information about user controls. Other than MSDN, is there any
websites that you all recommend for .net development information?
Thanks.

Jun 21 '06 #7
Bump for feedback. Thank you.

Jun 22 '06 #8
Problem solved. Not that anyone cares, but just in case...

I needed to attach the newly created user control to the main (.aspx)
page. Made the connections there and it loaded like a charm.

Thanks to those who looked at this problem.

Jun 26 '06 #9

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

Similar topics

3
by: Justin | last post by:
Hi, Im confused here over the usage of Response.Redirect and Server.Transfer. I used frameset for my work, what are the proper usages of the two methods that seems working similar.. The...
6
by: Keith Patrick | last post by:
I have to do some programmatic redirects (in several pages) based on URLs I am given from an external source. The URLs have querystrings at the end, but one in particular is about 240 chars long,...
1
by: Ravindra | last post by:
Hi, Im trying to use Response.Redirect in Session_End event in Global.asax page, which is not working. Why this is not working? And if this not works here, how do I hanlde this? Any possible and...
10
by: Johnny Fugazzi | last post by:
I have a couple of pages that have started showing an odd problem. When the code calls Response.Redirect("file.aspx"), nothing happens. The page goes white, and the old URL and querystring are...
3
by: Marc Hoeijmans | last post by:
Hello, I have a problem with the Response.Redirect. The redirect is working for some users for other useres it is not working. We all use the same browser. I have coded the Response.Redirect after...
4
by: nkoier | last post by:
Hi, I've been going crazy trying to figure out what's wrong with our Asp.Net 2.0 intranet site. At the very top of our main page I provide a TextBox and a Button for submitting Google searches....
7
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I am trying to set this up using asp code and IIS configuration. But it seems not working. Here it is the way I am doing. In IIS I set up a virtual directory with secure communication, I...
5
by: mister-Ed | last post by:
I need to look into a database table (cats) to see if a certain category and its resulting resultset should be shown to users if it is deemed "universal" , or the column 'ur' is tagged with the...
9
by: RN1 | last post by:
When a server encounters the line Response.Redirect("abcd.asp") in a ASP script, the server tells the browser that it has to be redirected to another page (which is abcd.asp, in this case)....
6
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, We have two sites hosted on different servers and we have many pages on domain A which has many links(asp programs) to domain B. My question is if domain B server is in trouble, what is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.