老師能否請教一個問題;在Asp.net2.0for vb這本書中的相簿範例中,在管理相簿的後端中,如何加入一個刪除整本相簿及相片的按鈕?是要加在那裡?可以請老師說明一下嗎?程式碼如下: <body> <form id="form1" runat="server"> <div id="page"> <div id="header"> <div id="webInfo"> <asp:Label ID="lblWebName" runat="server" CssClass="webName" ></asp:Label> <br /> <asp:Label ID="lblwebDesc" runat="server" CssClass="webDesc" ></asp:Label> <br /> </div> </div> <asp:LoginView ID="LoginView1" runat="server"> <AnonymousTemplate> <div style="text-align: center; width: 760px;"> <br /> <img align="absMiddle" src="images/icon_stop.gif" /> 請您先執行 <asp:LoginStatus ID="LoginStatus1" runat="server" LogoutAction="Redirect" LogoutPageUrl="~/album.aspx" /> 動作!<br /> <br /> </div> </AnonymousTemplate> <LoggedInTemplate> <div id="sidemenu"> <h2>管理資訊</h2> <ul> <li> <asp:LoginStatus ID="LoginStatus1" runat="server" LoginText="登入管理" LogoutText="登出管理" LogoutAction="Redirect" LogoutPageUrl="album.aspx" /> </li> <li><a href="albumAdmin.aspx">編輯網站資訊</a></li></ul> <h2>管理相簿</h2> <ul> <li><a href="albumAdminCategory.aspx">相簿分類管理</a></li><li><a href="albumAdminMain.aspx">管理相簿</a></li><li><a href="albumAdminPost.aspx">新增相簿</a></li></ul> </div> <div id="content"> <h1>管理相簿</h1> <div class="postContent" id="commentform"> <asp:DropDownList ID="DropDownList1" runat="server" Width="200px" AutoPostBack="true"> </asp:DropDownList> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="510px" AllowPaging="True" DataSourceID="AccessDataSource1" PageSize="6" > <Columns> <asp:BoundField DataField="album_date" HeaderText="時間" SortExpression="albumg_date" > <ItemStyle Width="160px" /> </asp:BoundField> <asp:HyperLinkField DataNavigateUrlFields="album_id" DataNavigateUrlFormatString="albumAdminFix.aspx?album_id={0}" DataTextField="album_title" HeaderText="標題" /> </Columns> <PagerStyle CssClass="nav" HorizontalAlign="Center" /> <RowStyle CssClass="row1" /> <AlternatingRowStyle CssClass="row2" /> <PagerSettings FirstPageText="<<第一頁" LastPageText="最末頁>>" Mode="NextPreviousFirstLast" NextPageText="下一頁>" PreviousPageText="<上一頁" /> </asp:GridView> </div> </div> </LoggedInTemplate> </asp:LoginView> <div id="footer"></div> </div> <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/webData.mdb" SelectCommand="SELECT * FROM [albumMain] WHERE ([ca_id] LIKE ?) ORDER BY [album_date] DESC"> <SelectParameters> <asp:SessionParameter Name="ca_id" SessionField="Select" Type="String"/> </SelectParameters> </asp:AccessDataSource> </form> </body> |