_the_reverend
asked on
GridView button field handler
Hi, Im new to ASP.NET. Im bounding a DataTable to a GridView, but I also added an unbound button field.
But I dont know where can I catch the event of the button and get the selected row data ?
But I dont know where can I catch the event of the button and get the selected row data ?
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Ticket.aspx.cs" Inherits="Ticket" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="lblMessage" runat="server" Width="786px"></asp:Label><br />
<br />
<asp:Label ID="Label1" runat="server" Text="Concepto:"></asp:Label>
<asp:DropDownList ID="cboConcepto" runat="server" Width="173px">
</asp:DropDownList><br />
<asp:Label ID="Label2" runat="server" Text="Computadora:"></asp:Label>
<asp:Label ID="lblComputadora" runat="server" Text="Label" Width="212px"></asp:Label><asp:Label
ID="Label4" runat="server" Text="Usuario:"></asp:Label><asp:Label ID="lblUsuario" runat="server"
Text="Label" Width="212px"></asp:Label><asp:Label ID="Label5" runat="server" Text="ip:"></asp:Label><asp:Label
ID="lblIP" runat="server" Text="Label" Width="212px"></asp:Label><br />
<asp:Label ID="Label3" runat="server" Text="Localidad:"></asp:Label>
<asp:DropDownList ID="cboLocalidad" runat="server" Width="172px">
</asp:DropDownList>
<asp:Label ID="Label9" runat="server" Text="Departamento"></asp:Label><asp:DropDownList ID="cboDepartamento" runat="server" Width="172px">
</asp:DropDownList><br />
<asp:Label ID="Label6" runat="server" Text="Nombre:"></asp:Label>
<asp:TextBox ID="txtNombre_Solicitante" runat="server" Width="502px"></asp:TextBox>
<br />
<asp:Label ID="Label7" runat="server" Text="Telefono:"></asp:Label>
<asp:TextBox ID="txtTelefono" runat="server" Width="174px"></asp:TextBox><br />
<asp:Label ID="Label8" runat="server" Text="Prioridad"></asp:Label><asp:DropDownList ID="cboPrioridad" runat="server" Width="90px">
<asp:ListItem>Normal</asp:ListItem>
<asp:ListItem>Urgente</asp:ListItem>
</asp:DropDownList><br />
<asp:Label ID="Label10" runat="server" Text="Solicitud:"></asp:Label><asp:TextBox
ID="txtDescrip_Solicitud" runat="server" Height="125px" Width="578px"></asp:TextBox><br />
<asp:Button ID="btnAgregar" runat="server" OnClick="btnAgregar_Click" Text="Agregar" />
</div>
</form>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.