源代码如下:
IEMR emrInfo= DBMng.DALFactory.EMR.Create();
IList EmrBySex = new ArrayList(); protected void Page_Load(object sender, EventArgs e)
{
EmrBySex = emrInfo.GetEMRBySex("2");
this.GD.DataSource = EmrBySex;
}问题在哪?是什么原因?在WINFORM里面很正常
IEMR emrInfo= DBMng.DALFactory.EMR.Create();
IList EmrBySex = new ArrayList(); protected void Page_Load(object sender, EventArgs e)
{
EmrBySex = emrInfo.GetEMRBySex("2");
this.GD.DataSource = EmrBySex;
}问题在哪?是什么原因?在WINFORM里面很正常
{
ArrayList a = new ArrayList();
a.Add("aa");
a.Add("aa");
GridView1.DataSource = a;
GridView1.DataBind();
}
</script><html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>BB</title>
</head>
<body>
<form id="form1" runat="server">
<asp:GridView ID="GridView1" runat="server">
</asp:GridView> </form>
</body>
</html>