帮帮
会员姓名
会员卡号
密码
点查询直接连接GridView查出数据库个人基本资料,现在数据库做好了,让姓名和卡号绑定再连接数据库,点GridView里的编辑跳到更改新密码页,现在的思路有了,代码不知道要怎么写啊
请大家帮帮忙!!
------解决方案--------------------
51aspx.com 下载个demo看看。
里面基本都有这些功能的。慢慢就上手了。
------解决方案--------------------前台:
<asp:GridView ID="GridView_BD" runat="server" CssClass="grid" GridLines="None" CellPadding="4"
AutoGenerateColumns="False" Width="100%"
OnRowCommand="GridView_BD_RowCommand" OnRowDataBound="GridView_BD_RowDataBound">
<AlternatingRowStyle CssClass="altrow" />
<EditRowStyle CssClass="aspGridView_EditRowStyle" />
<FooterStyle CssClass="aspGridView_FooterStyle" />
<HeaderStyle CssClass="pager" Font-Bold="True" />
<SelectedRowStyle CssClass="aspGridView_SelectedRowStyle" />
<RowStyle CssClass="row" />
<Columns>
<asp:BoundField DataField="Base_ID" HeaderText="编号" />
<asp:TemplateField HeaderText="设备名称">
<ItemTemplate>
<asp:LinkButton ID="LinkButton_DeviceName" CommandName="detail" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Device_Name")%>'
Font-Underline="false">
                                                               
</asp:LinkButton></ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Brand" HeaderText="品牌" />
<asp:BoundField DataField="Launch_Date" HeaderText="上线时间" />
<asp:BoundField DataField="Working_State" HeaderText="使用状态" />
<asp:BoundField DataField="Person_Responsible" HeaderText="负责人" />
<asp:TemplateField ShowHeader="False" HeaderText="操作" Visible="true">
<ItemTemplate>
<asp:LinkButton ID="Linkbutton1" runat="server" Text="修改" CommandName="lb_modify"
CommandArgument='<%#Eval("Base_ID")%>'></asp:LinkButton>
<asp:LinkButton ID="Linkbutton2" runat="server" Text="删除" CommandName="lb_del"