S
sianan
I have an ASP.NET custom control, which contains a DataGrid with
checkboxes. I am trying to figure out how to retrieve the selected
records, based on the checkbox's checked state. I want to send the
results to a list control on the containing .ASPX page.
Here is what I have in my code behind (C#):
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="WebApplication5.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta content="Microsoft Visual Studio .NET 7.1"
name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<div style="OVERFLOW: auto; WIDTH: 100%; HEIGHT: 200px">
<aspataGrid id="DataGrid1" runat="server" style="Z-INDEX: 102;
LEFT: 24px; POSITION: absolute; TOP: 32px" Height="120px">
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<INPUT type="checkbox">
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</aspataGrid></div>
</form>
</body>
</HTML>
I looked for examples via Google, Yahoo, etc. but couldn't find much in
the way of C#. Any help would be appreciated.
checkboxes. I am trying to figure out how to retrieve the selected
records, based on the checkbox's checked state. I want to send the
results to a list control on the containing .ASPX page.
Here is what I have in my code behind (C#):
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="WebApplication5.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta content="Microsoft Visual Studio .NET 7.1"
name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<div style="OVERFLOW: auto; WIDTH: 100%; HEIGHT: 200px">
<aspataGrid id="DataGrid1" runat="server" style="Z-INDEX: 102;
LEFT: 24px; POSITION: absolute; TOP: 32px" Height="120px">
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<INPUT type="checkbox">
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</aspataGrid></div>
</form>
</body>
</HTML>
I looked for examples via Google, Yahoo, etc. but couldn't find much in
the way of C#. Any help would be appreciated.