Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > VB.Net Handles keyword for event handler goes away,dissapears

Reply
Thread Tools

VB.Net Handles keyword for event handler goes away,dissapears

 
 
thomas
Guest
Posts: n/a
 
      03-07-2005
annoyingly, every so often after a compile, my code will cease to work because the Handles keyword gets removed from the end of the method.
ex: Private Sub buttonMakeTransfer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles buttonMakeTransfer.Click
....
might become
Private Sub buttonMakeTransfer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
....
this happens infrequently and i can't pinpoint the cause.
thanks for your help!
thomas

___
Newsgroups brought to you courtesy of www.dotnetjohn.com
 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      03-07-2005
It happens to me sometimes when I cut and paste a control.
I agree it's annoying.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"thomas" <> wrote in message
news:%...
> annoyingly, every so often after a compile, my code will cease to work
> because the Handles keyword gets removed from the end of the method.
> ex: Private Sub buttonMakeTransfer_Click(ByVal sender As System.Object,
> ByVal e As System.EventArgs) Handles buttonMakeTransfer.Click
> ...
> might become
> Private Sub buttonMakeTransfer_Click(ByVal sender As System.Object, ByVal
> e As System.EventArgs)
> ...
> this happens infrequently and i can't pinpoint the cause.
> thanks for your help!
> thomas
>
> ___
> Newsgroups brought to you courtesy of www.dotnetjohn.com



 
Reply With Quote
 
 
 
 
Ken Cox [Microsoft MVP]
Guest
Posts: n/a
 
      03-07-2005
Something to try...

When you add a control or markup in HTML view, make sure you save the page
before switching to the code behind.


"thomas" <> wrote in message
news:%...
> annoyingly, every so often after a compile, my code will cease to work
> because the Handles keyword gets removed from the end of the method.
> ex: Private Sub buttonMakeTransfer_Click(ByVal sender As System.Object,
> ByVal e As System.EventArgs) Handles buttonMakeTransfer.Click
> ...
> might become
> Private Sub buttonMakeTransfer_Click(ByVal sender As System.Object, ByVal
> e As System.EventArgs)
> ...
> this happens infrequently and i can't pinpoint the cause.
> thanks for your help!
> thomas
>
> ___
> Newsgroups brought to you courtesy of www.dotnetjohn.com


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with "this" keyword in event handler of body element szimek Javascript 12 02-17-2008 12:32 PM
RE: keyword checker - keyword.kwlist Hamilton, William Python 4 05-13-2007 06:31 AM
keyword checker - keyword.kwlist tom@finland.com Python 6 05-10-2007 04:53 PM
Question about file handles and windows handles @ Windows Operating Systems eino Python 1 05-08-2007 09:14 PM
Event Handler that creates adds another event handler kaczmar2@gmail.com ASP .Net 1 02-22-2007 07:37 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57