| | |
Page_Load never called when I browse to my aspx page
Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
Join Date: Jun 2005
Posts: 2
Reputation:
Solved Threads: 0
I have a pretty straightforward pair of aspx pages that were working just fine until last night. The first page has a form that posts to itself, updates some values in a session object, then calls Response.Redirect to the second page. The second page loads a datagrid from the session object. It was working fine yesterday, so I'm pretty sure all the databinding logic is correct. But now not only is it not loading the datagrid, it never hits a breakpoint I put on the second page's Page_Load method. This is true whether I use Response.Redirect, Server.Transfer, or even if I reload the page or type its url directly. It never hits the breakpoint--as soon as it hits the page, it renders the static parts of the page without the DataGrid. I put a breakpoint in the previous page immediately before the Response.Redirect and tried to step into it, but again, the browser immediately renders the rest of the page without stepping through in the debugger. What could have gone wrong with my configuration that Page_Load wouldn't get called? I reverted the specific files in question back to the version that was working yesterday, but it doesn't work now, so something must have changed somewhere else. Is that possible? Where do I look??
Thanks very much in advance! I'm stumped.
Thanks very much in advance! I'm stumped.
•
•
Join Date: Jun 2005
Posts: 2
Reputation:
Solved Threads: 0
OK, I found a solution to my problem, but since I had to comb a LOT of message boards to find it, I thought I'd repost it here. Here's a link to the message board that gave me the answer:
http://gotdotnet.com/Community/Messa...d.aspx?id=9412
Basically, Visual Studio designer deleted the entire body of the initializeComponents method, including the all-important line
That left my page entirely useless. I have no idea why the IDE decided to perform this useful task for me, but in case it ever chooses to help you out in the same way, just paste the above event handler back in.
http://gotdotnet.com/Community/Messa...d.aspx?id=9412
Basically, Visual Studio designer deleted the entire body of the initializeComponents method, including the all-important line
ASP.NET Syntax (Toggle Plain Text)
this.Load += new System.EventHandler(this.Page_Load)
![]() |
Similar Threads
- How to disable Back button of IE when executing welcome.aspx page? (ASP.NET)
- how to make the aspx page at runtime (ASP.NET)
- Create .aspx page at runtime (ASP.NET)
- Email an aspx page (or any webpage you want) (ASP.NET)
- aspx page not loading!!!! Method called too soon (C#)
Other Threads in the ASP.NET Forum
- Previous Thread: help with asp.net/JS and cookies
- Next Thread: Free ASP .NET World Recipe Application
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 beginner bottomasp.net browser businesslogiclayer c# cac checkbox class commonfunctions confirmationcodegeneration contenttype countryselector css dataaccesslayer database datagrid datagridview datagridviewcheckbox deployment development dgv dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv formatdecimal forms formview gridview gudi iframe iis javascript jquery listbox menu microsoft mouse mssql multistepregistration nameisnotdeclared news objects opera panelmasterpagebuttoncontrols problem redirect registration relationaldatabases reportemail rotatepage schoolproject security serializesmo.table sessionvariables silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl textbox tracking treeview unauthorized validatedate validation vb.net video videos virtualdirectory vista visualstudio web webapplications webarchitecture webdevelopemnt webdevelopment webprogramming webservice youareanotmemberofthedebuggerusers





