Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 4th, 2003, 02:36 AM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default architecture problem with all web forms

Opening ThePhile web forms within VS.NET, making changes to the html and selecting Design mode will regenerate the automatic codebehind to reflect the changes. What happens (ad infinitum), and which stuffs everything up is:

'original code
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
    AddHandler Me.Load, AddressOf Page_Load
End Sub

Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
etc.

turns into:

'altered code, which fails to initialise the forms
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()

End Sub

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
etc.

The only way I can see to get ThePhile to work again is to manually reset the change. This is very annoying particularly because it doesn't always happen, and often you don't find out until after recompiling and running the app, and you have to do it all over again, wasting considerable time.

Does this situation have anything to do with AutoEventWireup="false" which is set for all of ThePhile web forms?
 
Old August 12th, 2003, 09:12 AM
Registered User
 
Join Date: Aug 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Has anyone found a fix to this problem? It's rather annoying.

 
Old August 12th, 2003, 02:13 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Maybe these KB articles help:

http://support.microsoft.com/default...;EN-US;Q820769

or

http://support.microsoft.com/default...;EN-US;Q822759

or

http://support.microsoft.com/?kbid=324199&sd=msdn

I ran into this issue too, but haven't requested / downloaded a fix yet so I don't know whether it solves your problem or not.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Forms Keith Smith BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 8 February 24th, 2007 02:49 PM
Web Forms issues bluetonic VB.NET 2002/2003 Basics 0 August 6th, 2006 09:12 AM
Multiple web forms submition problem Mystic C# 3 June 14th, 2006 04:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.