473,785 Members | 2,831 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1380
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 "AutowireupEven ts" 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 "autowireupEven ts"
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.EventArg s) 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******@newsg roups.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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: user-vcauk25.dsl.min dspring.com 216.175.80.69
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP10.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3669 63
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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******** ******@TK2MSFTN GXA02.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 "AutowireupEven ts" 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 "autowireupEven ts"
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.EventArg s) 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******@newsg roups.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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: user-vcauk25.dsl.min dspring.com 216.175.80.69
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP10.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3669 63
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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******@newsg roups.nospam>
| References: <en************ **@TK2MSFTNGP10 .phx.gbl>
<vJ************ **@TK2MSFTNGXA0 2.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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: user-vcaui3t.dsl.min dspring.com 216.175.72.125
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP12.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3670 80
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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******** ******@TK2MSFTN GXA02.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 "AutowireupEven ts" 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
"autowireupEven ts"
| > 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.EventArg s) 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******@newsg roups.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.publi c.dotnet.framew ork.aspnet
| > | NNTP-Posting-Host: user-vcauk25.dsl.min dspring.com 216.175.80.69
| > | Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP10.phx. gbl
| > | Xref: TK2MSFTNGXA02.p hx.gbl
| > microsoft.publi c.dotnet.framew ork.aspnet:3669 63
| > | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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
1926
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 type="SystemMonitor.Monitors.NetworkAvailabilityMonitor,SystemMonitor"> <notifiers> <notifier type="SystemMonitor.Notifiers.MessageBoxNotifier,SystemMonitor" />
3
1801
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 do you need to use Visual Studio 2005? If you can use the new framework 2.0 with VS2003 are there any benifits?
9
1699
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 mscorfg.msc to set permissions as follows: Machine | Code Groups | All_Code | LocalIntranetZone | Copy of DataShare file://\\Jgsvr\DataShare\*.
5
1997
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 VS.Net 2005 to render the associated .resx and .vb file inoperative. detail... I converted an asp 1.1 vb.net app using the vs2005 conversion wizard and then retested the app after conversion.
10
2537
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. Anyway, I decided to have a go at loading them as web projects from our Win2k3 server. It gets so far and then says "The web server does not appear to have FrontPage server extensions installed".
6
3636
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 list of all of my webs, however if I attempt to open a site under and web other than localhost I receive the message: "Unable to open the Web 'http://localhost/anywebappname'. The Web 'http://localhost/anywebappname' does not exist" Obviously...
7
1712
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 its size: while I am resizing, an hour glass comes up for a few seconds. There a lot of other slowdowns all over the system. It seems like it the hard drive kicks in really hard. Now I did have the VS2005 beta installed, but I uninstalled it...
9
1986
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 side-by-side assemblies and that application has to have a manifest binding it to those assemblies. My question is, can previously built apps use my new dlls build with vs2005? It would be really important to make it work, because otherwise we would...
15
4232
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 mapped to the local devleopment folder. Project compiles to a subfolder .\bin. To deploy, the asmx page and bin subfolder are copied to the production server. So now I upgrade to VS2005. OK, so except for the name, everything is changed. No more...
5
3026
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 advantages to using XMLSpy over VS2005? Apparently there are "integration diagrams" that VS2005 does not have natively. Does someone have a link or a MVP have some comparison I could have? Warmly Adrian
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10324
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6739
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5380
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.