URL redirect not working - question

  • Thread starter Thread starter Reeve
  • Start date Start date
R

Reeve

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?
 
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.
 
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
 
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=ManagerAccountTableEdit&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.
 
Mark said:
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=ManagerAccountTableEdit&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.
 
..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


Mark said:
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=ManagerAccountTableEdit&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.
 
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.
 
Back
Top