asp.net(C#)
读取文件夹和子文件夹下所有文件,绑定åˆ?/p>
GRIDVIEW
并排åº?/p>
Asp
部分ï¼?/p>
<%
@
Page
Language
="C#"
AutoEventWireup
="true"
CodeBehind
="MyFiles_List.aspx.cs"
Inherits
="lbWeb.webAdmin.MyFiles_List"
%>
<!
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
>
无标题页
</
title
>
<
script
language
="javascript"
type
="text/javascript">
function
selectAll(obj)
{
var
theTable
=
obj.parentElement.parentElement.parentElement;
var
i;
var
j = obj.parentElement.cellIndex;
for
(i=0;i<theTable.rows.length;i++)
{
var
objCheckBox =
theTable.rows[i].cells[j].firstChild;
if
(objCheckBox.checked!=
null
)objCheckBox.checked =
obj.checked;
}
}
</
script
>
</
head
>
<
body
>
<
form
id
="form1"
runat
="server">
<
div
>
<
table
width
="100%">