473,395 Members | 1,466 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,395 software developers and data experts.

help needed with asp.net pages

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

Jan 4 '07 #1
4 1138
"JohnAD" <no*****@this.comwrote in message
news:uM***************@TK2MSFTNGP02.phx.gbl...
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...?
Jan 4 '07 #2
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.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:DB**********************************@microsof t.com...
John,
Is this application perhaps using forms authentication and attempting to
send you to the "Login" page? Look in the web.config to see what's going
on.

And again, the asp.net group is for questions like this. This is the "C#
Language" group.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"JohnAD" wrote:
>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

Jan 5 '07 #3
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.


"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:eD**************@TK2MSFTNGP03.phx.gbl...
"JohnAD" <no*****@this.comwrote in message
news:uM***************@TK2MSFTNGP02.phx.gbl...
>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...?
Jan 5 '07 #4
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

"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comschreef in
bericht news:DB**********************************@microsof t.com...
John,
Is this application perhaps using forms authentication and attempting to
send you to the "Login" page? Look in the web.config to see what's going
on.

And again, the asp.net group is for questions like this. This is the "C#
Language" group.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"JohnAD" wrote:
>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


Jan 5 '07 #5

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

Similar topics

1
by: Erich Trowbridge | last post by:
Has anybody seen this tool? It is awesome. check out http://vw.vermeer.org/ . It's a php front end for large-scale syslog deployments. It makes managing syslog in large networks a snap. The idea...
19
by: Thue Tuxen Sørensen | last post by:
Hi everybody ! I´m maintaining a large intranet (approx 10000 concurrent users) running on one IIS box and one DB box with sqlserver 2000. Currently there is 2,5 GB Ram, 1 1400 mhz cpu and 2...
10
by: Bob Bedford | last post by:
In the attempt to keep the URL and code quite clean, and avoid to have a very loooong url, we have used $_session for storing values trough the pages. Now, we have some clients that doesn't get...
7
by: ChadDiesel | last post by:
Hello everyone, I'm having a problem with Access that I need some help with. The short version is, I want to print a list of parts and part quantities that belong to a certain part group---One...
7
by: Tina | last post by:
I have an asp project that has 144 aspx/ascx pages, most with large code-behind files. Recently my dev box has been straining and taking long times to reneder the pages in the dev environment. ...
8
by: . . | last post by:
Hi I am developing a web system using ASP.NET/VB.NET with SQL Server 2005 as back end database . I need to develop a aspx page where user can see their messages after they log into the system...
2
by: Steve K | last post by:
I got a bit of a problem I like some help on. I'm designing an online training module for people that work in food processing plants. This is my target audience. These workers have little or no...
7
by: bobmct | last post by:
I've been toying with this for many weeks now and it still doesn't work as desired; I'm trying to develop with css compliance. In general my pages are within a container. Withing the...
6
by: Siv | last post by:
Hi, I am getting into printing with VB.NET 2005 and want to implement the usual capability that a user can select a selection of pages. I have a report that is generated by my application that if...
1
by: Mike Hofer | last post by:
I really need some help, and I'd appreciate any that you folks can provide. The ASP.NET application in question uses version 1.1 of the .NET Framework. All of the pages use a common base class...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.