WebForm1.aspx?id={0}" //显示数据库中的Name字段 DataTextField="Name"> < HeaderStyle Width="120px"> < /HeaderStyle> < ItemStyle Font-Italic="True"> < /ItemStyle> < /asp:HyperLinkColumn> < /Columns> < /asp:DataGrid> < /td> < /tr> < /table> < /div> < /div> < /td class=lcolhead> 以上是aspx文件中要添加的代码 然后在aspx.cs文件中将数据读出邦定到datagrid1上即可用数据库中的Name字段来形成下菜单 如:<页码:[1] [2] [3] [4] [5] 第4页、共5页 |