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!
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 3/7/2006 7:25:10 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 72 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
GremlinX
Asp.Net User
C# Code Behind Event Handler Issue3/7/2006 7:25:10 PM

0/0

I recently started using C# in visual studio 2005 so that I could take advantage of Master Pages.  The Master pages have been working perfectly, but I can't view the page in design view anymore when I nest the Master Pages because of a limitation in 2005.  No big deal, I can code it all in the source view.  But, how the heck to I create event handlers in the code behind?  So far, the only documentation I have found is to use that little lightning bolt icon in the properties window, in design view... which I can't get to.  Is there another way to create event handlers easily, like in VB where you can use the 2 drop-downs at the top?

Thanks,
Jon

Binary Fortress Software
http://www.binaryfortress.com
Mikhail Arkhipo
Asp.Net User
Re: C# Code Behind Event Handler Issue3/8/2006 2:48:30 PM

0/0

No, unfortunately, in C# there are only

1. Property window in Design view
2. Dropdowns when code is in the page

With nested master pages and C# with code separation you'll have to type event handlers manually, sorry. C# team is aware of popularity of request to use dropdowns for event generation as opposed to C++ style navigation. We also working on removing limitation on nested master pages in the Designer.

As a workaround, you may want to try have a simple scratch page with similar controls without code separation. You can then generate event handlers using dropdowns and then copy/paste code snippet from the scratch page to the real page.
Thanks

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

This posting is provided "AS IS" with no warranties, and confers no rights.
GremlinX
Asp.Net User
Re: C# Code Behind Event Handler Issue3/8/2006 7:44:15 PM

0/0

Thanks Mikhail.  I have been doing your workaround with a seperate test page that is full of controls that I use to copy/paste events from, I was just hoping there was a better way.  I'll keep my eyes open for the next VS version in hopes that this feature makes it in.  Smile [:)]

Thanks,
Jon


Binary Fortress Software
http://www.binaryfortress.com
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 2.0 with C# Authors: Chris Hart, John Kauffman, David Sussman, Chris Ullman, Pages: 735, Published: 2006
ASP.NET 2.0 All-In-One Desk Reference For Dummies: all-in-one desk reference for dummies Authors: Doug Lowe, Jeff Cogswell, Ken Cox, Pages: 910, Published: 2006
Programming ASP.NET: Building Web Applications and Services Using C and VB.NET. Authors: Jesse Liberty, Dan Hurwitz, Pages: 988, Published: 2003
Programming C#: Building .NET Applications with C# Authors: Jesse Liberty, Pages: 644, Published: 2005
Special Edition Using Visual Basic .Net Authors: Brian Siler, Jeff Spotts, Safari Tech Books Online, Pages: 830, Published: 2002
C#Builder Kick Start: Kick Start Authors: Joe Mayo, Pages: 480, Published: 2004
Debugging ASP.NET Authors: Jonathan Goodyear, Brian Peek, Brad Fox, Pages: 376, Published: 2001
Pro C# 2008 and the .NET 3.5 Platform Authors: Andrew Troelsen, Pages: 1370, Published: 2007
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Paul Mueller, Pages: 822, Published: 2005
Beginning DotNetNuke 4.0 Website Creation in C# 2005 with Visual Web Developer 2005 Express: From Novice to Professional Authors: Nick Symmonds, Pages: 391, Published: 2006

Web:
The ASP Column: Code-behind in ASPX Files It turns out that writing a Managed C++ code-behind isn't all that hard to do. ... Finally, notice the push button is wired up to an event handler named ...
C# .NET javascript function and code behind event handler javascript function and code behind event handler. Saritha B posted at 27-Jun-05 04:47. Hi, I have an imagebutton and I have defined the onclick event for ...
CodeProject: Simplify ASP.NET DataGrid by Eliminating Code-Behind ... Now, we override the OnLoad event handler so we can have a simple working DataGrid : .... Page language="c#" Codebehind="SimpleGridTest.aspx.cs" ...
Problem enabling Paging in a GridView from code behind - ASP.NET ... I am trying to enable paging in a GridView from the code behind file. .... You are trying to attach PageIndexChanging event handler to ...
Creating your first ASP.NET Web form Managed C++ ASP.NET Web forms are always made up of at least two files: ... In this example, the codebehind delegates an event handler to the Input button ...
Custom build DataGridColumn event problem - .NET ASP 2) The event handler must be in the code-behind code that uses the custom ... <% @ Page language="c#" Inherits="MasterDetail. ...
p2p.wrox.com Forums - CodeBehind: Multiple ImageButtons, One Click ... EventHandler with an ImageButton. You need to use System.Web.UI. ... Are you sure in your code behind(somewhere like InitializeComponent() ...
problem with usercontrols event handlers please help! : contain <%@ Page language="c#" Codebehind="simpleclass.cs" .... Click += new EventHandler(Control1_button_Click); again see script so control1 is loaded again in ...
Validation summary in code behind (C#) : ValidationSummary ... Validation summary in code behind (C#) : ValidationSummary « Validation by Control « ASP.Net. ... EventHandler(this.cmdOK_Click); this.Load += new System. ...
Adobe - Flex Quick Start Basics: Building components by using code ... This is used when defining inline event handlers. ... The main application file also makes use of code behind and the example also features the ...

Videos:
Web Applications and the Ubiquitous Web Google TechTalks February 1, 2006 Dave Raggett Dave Raggett is currently a W3C Fellow from Canon, and W3C Activity Lead for Multimodal Interaction....
A Googly MySQL Cluster Talk Google TechTalks April 28, 2006 Stewart Smith Stewart Smith works for MySQL AB as a software engineer working on MySQL Cluster. He is an active memb...




Search This Site:










help in making dal component

is old feature still in ide?

vs2005 style builder problem

how to connect to a web site under source safe

project startup in asp.net 2.0 beta 1

external tools listing only shows maximum of 3 tools

iss and vs2005

bug tracking and tfs?

firefox instead of ie7

vs2005 - remove all comments from source code

.refresh files and sourcesafe

unable to start debugging

how to do xml documentation on an asp.net 2.0 project done in vb?

enterprise templates

vs 2005 pro** file>>new>>web site ** no templates!!!

file issues?

design and visual studio design question

debug & release dropdown

publish error

vc++ 2005 express edition: show in textbox on button click

visual studio config: how do i set code styles?

what are the hot-keys in vs2005

vs.net 2005 and aspnet_client directory

code highlighting: is this feature available in vs2005?

can't rebuild in asp.net 2.0

making dll for aspnet

enable requiredfieldvalidator when checkbox is checked inside gridview

create setup file ?

how can i get a pivottable in the toolbox?

vs2005 solution will only add project from one location

  Privacy | Contact Us
All Times Are GMT