473,399 Members | 4,177 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,399 software developers and data experts.

VS2005 BUG ??

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
Dec 25 '05 #1
3 1356
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
|
|
|

Dec 26 '05 #2
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
|
|
|

Dec 26 '05 #3
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
| > |
| > |
| > |
| >
|
|
|

Dec 27 '05 #4

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

Similar topics

3
by: Robert | last post by:
I have an application with custom configuration sections in it's app.config file. Here's a shortened excerpt: <monitors> <monitor...
3
by: Darrin | last post by:
Hello, I see that VS2005 and the new framework 2.0 is out to the public now. Wondering about some things. When you install the new framework 2.0 can a person still use visual studio 2003 or...
9
by: Jeff Gaines | last post by:
I have just installed VS 2005 (MSDN version) and I am having problems coping files to the Projects folder while VS2005 is running. The projects folder is on a network share and I have used...
5
by: GaryDean | last post by:
(my original post was inaccurate but this post accurately describes what I think is a very bad vs2005 bug) short description... Deleting a dataset and recreating it from the dataadapter causes...
10
by: musosdev | last post by:
Hi guys I'm trying to migrate to VS2005... I've managed to do that, but realised I'd opened my web projects as file projects, and I'm getting the error about network BIOS command limit. ...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
7
by: Frank Rizzo | last post by:
Is it me or is the speed of VS2005 actually slower than VS2003? The startup is pretty bad - even though I changed VS to display an empty environment. When I create a new form and want to change...
9
by: yevvi | last post by:
Hi, We have a product with bunch of dlls which are now built with Visual Studio 2003. We want to switch the build to use VS2005. I have read that in VS2005 runtime libraries come as...
15
by: Joseph Geretz | last post by:
OK, I'll admit it up front - I just don't get it. Here's our previous VS2003 development model. Developers develop the WS solution on their own workstations, using their own IIS web servers...
5
by: Gumby | last post by:
Hi there! A "special" project team in our department has decided to purchase XMLSpy. We standardize on VS2005 as our IDE and up to now everyone has used the XML parser in VS2005. Are there...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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.