Wrox Programmer Forums
|
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 March 27th, 2004, 03:33 AM
Authorized User
 
Join Date: Mar 2004
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default Delete InitializeComponent() ?

I can't seem to get back to the Errata page for this book that says to delete InitializeComponent(), that it was autogenerated by a pre-release version of VS.NET, but...
Can anyone confirm that this entire sub and all calls to it should be deleted from all .aspx.vb code-behind files?
Thanks.

 
Old March 27th, 2004, 10:35 PM
Authorized User
 
Join Date: Mar 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm not sure of the context where "InitializeComponents" was to be removed, but ordinarily you would not remove it.

 
Old March 30th, 2004, 02:27 AM
Authorized User
 
Join Date: Mar 2004
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The code, as shown below, appears to be in every .aspx.vb code-behind for every module except the 'FileManager' module. So this is a pretty broad reaching change.
Why do you say 'ordinarily you would not remove it'? Have you dealt with this issue before?
It's strange, if I comment out the call to InitializeComponent() in OnInit, then OnInit doesn't even get called. Why would that be?

    Protected Overrides Sub OnInit(ByVal e As EventArgs)
      MyBase.OnInit(e)
      InitializeComponent()
    End Sub


    'This call is required by the Web Form Designer.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
      AddHandler Me.Load, AddressOf Page_Load
    End Sub






Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to delete file System.IO.Delete error maricar C# 13 March 14th, 2014 06:50 AM
php/mysql delete button and delete query dungey PHP Databases 17 April 11th, 2009 12:24 PM
How to call InitializeComponent function? LWWVB C# 1 November 9th, 2007 06:51 AM
how to delete a row when click delete hyperlink naveenkumarg1 Pro JSP 1 August 16th, 2004 01:29 AM
delete mussavcom Javascript 1 July 10th, 2003 03:01 AM





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