Thanks for your response Gary,
I'll continue to followup in the new thread.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "GaryDean" <Ga******@newsgroups.nospam>
| References: <en**************@TK2MSFTNGP10.phx.gbl>
<vJ**************@TK2MSFTNGXA02.phx.gbl>
| Subject: Re: VS2005 BUG ??
| Date: Mon, 26 Dec 2005 10:28:07 -0800
| Lines: 112
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <u1**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: user-vcaui3t.dsl.mindspring.com 216.175.72.125
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:367080
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Steven,
| My original post was not absolutely correct. Also, I'm not sure I
| understand your response.
|
| Anyway, I am reposting this problem but more accurately than I did the
first
| time. I think this is a very bad bug in vs 2005 that I hope can be
| resolved.
|
| Thanks,
| Gary
|
| --
| Regards,
| Gary Blakely
| Dean Blakely & Associates
|
www.deanblakely.com
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:vJ**************@TK2MSFTNGXA02.phx.gbl...
| > Hi Gary,
| >
| > Welcome to MSDN newsgroup.
| > As for the ASP.NET 2.0 page's event handling, the VS2005 ide will have
| > different behavior for c# and vb.net page... For C# built page, it'll
by
| > default set "AutowireupEvents" to true, so that we just need to declare
| > those event handler functions in codebehind following the naming
| > convention. While for VB.NET page, it'll by default set
"autowireupEvents"
| > to false, and we'll still use the "handles xxxevent" statement after
each
| > event handler function's signature....
| >
| > Also, as for converting a vs2003 vb.net web project to vs 2005 ASP.NET
| > website, I've also performed a simple test on local side, it'll still
| > reserve the handles mybase.xxxevent, e.g:
| >
| > Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
| > System.EventArgs) Handles MyBase.Init
| >
| > And the statement being removed after do some editing in design-mode is
| > also an unexpected behavior since I didn't encounter the same problem
(add
| > some new controls and swtiching between design and code view...). In
| > addition, is this problem occuring in newly created asp.net page(using
| > vb.net) or just occur in those page that're converted from vs 2003
| > project?
| >
| > Anyway, for those
| >
| > Handles MyBase.Init
| >
| > I'll suggest you consider change them to Handles Me.Init since this is
the
| > new default statement for the page's event handler registering....
| >
| > Regards,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure!
www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| > --------------------
| > | From: "GaryDean" <Ga******@newsgroups.nospam>
| > | Subject: VS2005 BUG ??
| > | Date: Sat, 24 Dec 2005 16:57:01 -0800
| > | Lines: 28
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | X-RFC2646: Format=Flowed; Original
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | Message-ID: <en**************@TK2MSFTNGP10.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: user-vcauk25.dsl.mindspring.com 216.175.80.69
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:366963
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | I have some earlier posts about a codefile that doesn't get executed.
I
| > | later found that it was because both my Page_Init and Page_Load subs
| > were
| > | missing there Handles clauses and did not know what caused this. So I
| > | started over to see what caused it...
| > |
| > | I convert a working 1.1 asp app to 2.0. It tests out fine after the
| > | conversion - everything works.
| > | I then go to the design editor and add a text box and a label and move
| > some
| > | other labels around a bit so it looks nice.
| > |
| > | I then go back to the codebehind vb file and see that the Handles
clause
| > | from both the Page_Init sub and the Page_load sub have been removed!!!
| > |
| > | the "Handles MyBase.Init" was removed from the Page_Init sub and the
| > | "Handles MyBase.Load" was removed from the Page_Load sub.
| > |
| > | This causes these two subs not to execute.
| > |
| > | So, I can put those two handles clauses back but I'm now woried that
| > | unexpected things will happen to my vb file when working in designer.
| > |
| > | What's going on?
| > |
| > | --
| > | Regards,
| > | Gary Blakely
| > |
| > |
| > |
| >
|
|
|