GridView不显示的问题
这样子的,我做了一个界面用GIRDVIEW读取数据库内容,可是每次编译的时候没错误。网页打开那个控件就没看见了。不知道怎么回事
源代码:
<%@ Page Language= "C# " AutoEventWireup= "true " CodeFile= "ShowDisk.aspx.cs " Inherits= "_Default " %>
<!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>
<link href= "BaseCss.css " rel= "stylesheet " type= "text/css " />
</head>
<body style= "vertical-align: top; text-align: left ">
<form id= "form1 " runat= "server ">
<div>
<table border= "0 " cellpadding= "0 " cellspacing= "0 " style= "width: 100% ">
<tr>
<td style= "font-weight: bold; font-size: x-large; width: 100px; color: red; font-family: 宋体 ">
网络硬盘 </td>
</tr>
<tr>
<td style= "width: 100px "> <hr width= "1024px " />
</td>
</tr>
<tr>
<td style= "width: 100px; height: 19px; ">
<asp:Label ID= "Label1 " runat= "server " Font-Size= "14px " Text= "当前目录: " CssClass= "Text "> </asp:Label>
<asp:DropDownList ID= "DirList " runat= "server " AutoPostBack= "True " CssClass= "SelectCss "