CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 1/21/2008 9:40:09 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 21 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
korkless
Asp.Net User
vs autogenerate a bad eventhandler name?1/21/2008 9:40:09 AM

0/0

hi, this it's a really little problem but

when i use vs 2005 to autogenerate eventhandler for example for a button click, it give to the new method a name as

button1_click(object sender, EventArgs e) {....}

but the logic (and maybe also the c# code style standard) tells that it's name must be something as

button1_clicked(object sender, EventArgs e) {....}

somebody knows if i can set this convenction in vs options?

thanks. 

Mikhail Arkhipo
Asp.Net User
Re: vs autogenerate a bad eventhandler name?1/21/2008 10:53:04 PM

0/0

The generated event is correct. Function name is control ID (Button1) + event name (Click). Same pattern applied to, say, client script or Windows Forms where 'click' turns to 'onclick' attribute (not OnClicked). It is difficult to modify events to 'past' in English and besides, event name does not have to be in English. C# and VB are fully Unicode so you can name class, its methods in events in Japanese, if you wish. IDE obviously should not be adding 'ed' to a Japanese verb Smile


Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
korkless
Asp.Net User
Re: vs autogenerate a bad eventhandler name?1/29/2008 1:37:27 PM

0/0

i found that the problem is the bad name for the event button.Click, non the IDE autocomplete behaviour.

For me the corret name must be button.Clicked .

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:

Web:
vs autogenerate a bad eventhandler name? - ASP.NET Forums when i use vs 2005 to autogenerate eventhandler for example for a button click, it give to the new method a name as ...
Feedback: Autogenerated event handlers should conform to StyleCop Oct 10, 2008 ... There are a lot of factors to be weighed even in something as seemingly simple as generated event handler names. Your itch is not by itself ...
ng.asp-net-forum.visual_studio_2005/8 - Find Errors, Solve ... vs autogenerate a bad eventhandler name? 2, 2, 1/29/2008 1:37:27 PM. VSTO 2005, 5, 5, 1/29/2008 9:52:31 AM. DotNet framework 3.5 for Visual Studio.Net 2005? ...
Wayne Graham's Blog: Model-Glue Entities ... have to do much of this since 1) you can autogenerate most of this stuff with the ANT scripts, ...
Autogeneration of Client-side JavaScript from an ASP.NET User Control You'll notice that I've added the mouse-over state image file name as an ... The first step was to create an event handler for the PreRender event. ...
Re: adding onBlur event handler to a webcontrol te: msg#00019 I've never seen a colon in the name before -- and apparently the code ... I'd be glad to > do so if it weren't for the fact that this is all autogenerated. ...
jacksonblog - Shannon Jackson Mar 22, 2006 ... Visual Studio Magazine Online | Feature: Manage Data With VS 2005 The BindingSource class, as its name implies, links simple and complex .... Autogenerated code for the Northwind_Load event handler fills the three primary ...
Application Development Trends - Use InfoPath With VS.NET 2003 The _Startup event handler assigns the form's Application instance to the ... Autogenerate Event Handlers InfoPath projects include a Microsoft.Office. ...
Autogeneration of Link Buttons - ASP.NET Forums Error 11 The name 'lnkButton_Command' does not exist in the current context. lnkButton. ... This adds an event handler for your linkbutton. ...




Search This Site:










vs 2003 crash, becomes vs 2005 lockup...

unknown server tag errors

scripting asp.net impersonation

organize my skins and styles

a couple of beta 2 questions

fxcop built into vs2005?

precompilation in vs2005

can't go design view

textbox to variable

error running asp.net 1.1 application under the subfolder or asp.net 2.0 application

removing unnecessary references etc.

strange problem

problems with developing on remote server

soursesafe 2005 beta 2

updating .sln files with relative paths at runtime or complie time (win forms 2005)

visual studio ignores my options

adding a seperate page for code

sql connection to the web host server

want to kill myself, who can help?

business objects in app_code folder not available

how to convert solution from beta 1 to beta 2?

nesting related files (besides the built-in)

how work onclick and alerts.

focus in asp.net for ppc

why the vs2005 web project compile all in one dll

iis in wd 2005

dataset replacement on build

website projects and reference paths guidance request

visual studio 2005 service pack 1

best method to copy a remote site and make a local development copy

  Privacy | Contact Us
All Times Are GMT