0

Hi to all,
I have a problem with ASP.NET in Visual Studio. I made a page
that is organised as a table (one part for links, one for content...). How can I select button that is nested in table (in table cell) in Visual Studio in a design view.?
Always when i try that, it select the table, not the button.
Thanks in advance

4
Contributors
7
Replies
15
Views
7 Years
Discussion Span
Last Post by JorgeM
0

>How can I select button that is nested in table (in table cell) in Visual Studio in a design view.?

You can't select that child button through design view. Open source view instead.

0

I know that I can select that element on source view, but I need
to put code behind that button and for that I have to select
button in design view...

0

>but I need to put code behind that button and for that I have to select
button in design view

Do you want to handle the event (click) of that button?

0

How about you tell us how you fixed it? Cause i'm stuck on the same problem right now.

1

@beneke200-

if you need to attach an event to a button, if you are developing in C#, simply start to type the OnClick= keyword in source view and Visual Studio will prompt you create the event.

96bb466e866d20ef9b7b8df5e1a74cf7

Otherwise, if you are developing in VB.NET, go to your code behind and manually create the procedure with the proper handle... for example..

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.