help needed with asp.net pages

  • Thread starter Thread starter JohnAD
  • Start date Start date
J

JohnAD

Hello NG,

Maybe it is a wrong NG but posting here because I have got some great
replies from here.

I have inherited these web pages. One of the page has lots of stuff (mostly
calls to make that page look cool).

When I modify that page, somehow it is redirecting to default page. I have
done my best to find any location that might be doing that and I can't find
a single place where it might be doing that.

I am someone how able to put brake points on page_load event. In fact page
load even is never even called.

What is going on?
How can I force it to brake into debugger?
How can I find what is causing this?
I am frustrated in last 5 hours I gave this magic out.

Please help me.

-
Po
 
Maybe it is a wrong NG but posting here because I have got some great
replies from here.

Well, microsoft.public.dotnet.framework.aspnet is the newsgroup
*specifically* for ASP.NET issues, but no matter...
When I modify that page, somehow it is redirecting to default page. I have
done my best to find any location that might be doing that and I can't
find a single place where it might be doing that.

"Modify that page"...? What did you actually do...?
I am someone how able to put brake points on page_load event. In fact page
load even is never even called.

Are you absolutely sure about that...? Put the following statement as the
first line of the page's Page_Load event:

Response.Redirect("http://www.microsoft.com", false);

If suddenly you're looking at Microsoft's homepage, then Page_Load *is*
being called.

If your page is wired up correctly and is pointing to its codebehind class,
it's difficult to imagine how it wouldn't fire the Page_Load event...
How can I force it to brake into debugger?

Well, firstly:

1) what version of Visual Studio.NET?

2) are you running in Debug mode or Release mode?

3) have you actually set a breakpoint in the Page_Load event...?
 
Peter, No there is not web.config setting and yes I know for sure that this
is a wrong NG but still thanks for reply.
 
Thanks for the link to the NG, I will move over there if I could not get
answer here. To answer questions --

By modify I meant few data calls from DB are changed. That will *no way*
affect redirection of page.
For the page load, I have done that trick to find where is page load going.
But nothing happened.
It is wired correctly. I checked connections. Even if it is not wired it
should not redirect without any code.
I am running VS2005, yes I put breakpoints, and it is in debugger mode. Only
addition now I have is that that breakpoint becomes yellow ring with
pointing that this code will not reach. This is for page_load even I am
talking about.

These all things I have done and tried that is why I am very puzzled. I have
no way to talk to the person who wrote this everything is so open that makes
me look like a stupid. I have searched every single code file (even that are
not related) to make sure there is no line that might be redirecting or
directing that page to default page.
 
Peter,

This is not my most regular newsgroup. However strange that redirection to
ASP.Net framework. I thought that the framework newsgroups are for technical
questions about the architecture or whatever around the framework. The
language newsgroups are for the languages used inside those architectures.

For me this is for sure a language question.

However probably wrong from me.

Cor
 

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

Back
Top