计算机网络实验4:
1)网页制作:制作一个用户注册页面,最后显示数据,及注册成功,主要考察连接数据库
2)网站配置:把网页放到IIS,进行配置,主要考察网站配置水平
课后作业:写1个实验报告,注册和显示同时实现!
实验4.docx
百度关键字:GridView如何使用,ASP.NET如何读取数据
<asp:GridView ID=GridViewNew runat=server Width=50% CellPadding=4 ForeColor=#333333
AutoGenerateColumns=False
>
<Columns>
<asp:TemplateField ItemStyle-Font-Size=9px HeaderText=序>
<ItemTemplate>
<%# Container.DataItemIndex + 1%></ItemTemplate>
<ItemStyle Font-Size=9px></ItemStyle>
</asp:TemplateField>
<asp:BoundField DataField=stid HeaderText=学号 ReadOnly=True />
<asp:BoundField DataField=stname HeaderText=姓名 ReadOnly=True />
<asp:BoundField DataField=stgrade HeaderText=年纪 ReadOnly=True />
<asp:BoundField DataField=ban HeaderText=班级 ReadOnly=True />
<asp:BoundField DataField=sex HeaderText=性别 ReadOnly=True />
<asp:BoundField DataField=PWD HeaderText=密码 ReadOnly=True />
</Columns>
<PagerSettings FirstPageText= LastPageText= NextPageText= PreviousPageText= />
<RowStyle Height=20px BackColor=#F7F6F3 ForeColor=#333333 />
<FooterStyle BackColor=#5D7B9D Font-Bold=True ForeColor=White />
<EditRowStyle BackColor=#999999 />
<SelectedRowStyle BackColor=#E2DED6 Font-Bold=True ForeColor=#333333 />
<PagerStyle BackColor=#284775 ForeColor=White HorizontalAlign=Center />
<HeaderStyle BackColor=#5D7B9D Font-Bold=True ForeColor=White />
<AlternatingRowStyle BackColor=White ForeColor=#284775 />
</asp:GridView>