Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Question on Events for web controls in C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris Davoli - 16 Sep 2007 18:34 GMT
Environment: VS 2005
Differences using VB.Net vs C#.Sharp

I've got a question about Visual Studio 2005. In VB.Net when I'm in code
view and I want to look at the events for a control (ie; like GridView
control or DropDown list
control), in code behind, when I drop down the drop down list (ie; the drop
down
list box in the upper left hand corner for the controls on a page),  when I
select a control in this drop down and in the right hand side drop down
(still
in code view) I can now see the events for that control. That works like it
should in visual studio for VB.NET, but when I go to C#.Net, the controls
don't
show up in the left hand drop down (just the pagfe name shows up), and hence
the
events don't show up in the right drop down list. Whe I try hand coding
them, I
get them wrong. Is there something I need to turn on for the web controls to
show up in the drop down left side controls for the page in code view? Or is
there another way to automatically put in an event for a control? ie; a good
example would be GridView1_RowCreated. The GridView1 web control will show
up in VB.Net but NOT show up C#.Net.  

I've even tried to copy them from vb.net, but I just get the events wrong.
Any
help would be appreciated.


Signature

Chris Davoli

Peter Bromberg [C# MVP] - 17 Sep 2007 01:26 GMT
With C#. when you highlight a control on the page in Design View, and view
the Properties window for that control, there will be a lightning bolt icon
that you can click which exposes the Event property sheet for the selected
control.
-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com

> Environment: VS 2005
> Differences using VB.Net vs C#.Sharp
[quoted text clipped - 24 lines]
> help would be appreciated.
>  

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.