ASP.NET Page /Admin/UserFavourites.aspx (C#)
Uses Code Behind Page Page /Admin/UserFavourites.aspx.cs (C#)
1: <%@ Page Language="C#" AutoEventWireup="true" Inherits="Admin_UserFavourites" Codebehind="UserFavourites.aspx.cs" %>  
2:   
3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
4:   
5: <html xmlns="http://www.w3.org/1999/xhtml" >  
6: <head runat="server">  
7:     <title>Untitled Page</title>  
8: </head>  
9: <body>  
10:     <form id="form1" runat="server">  
11:     <div>  
12:         <asp:HyperLink ID="lblHome" runat="server" NavigateUrl="~/Admin/Default.aspx">Home</asp:HyperLink><br />  
13:          <asp:DataList ID="DataList1" runat="server" DataSourceID="ObjectDataSource1">  
14:             <ItemTemplate>  
15:                 <asp:Label ID="lblUserName" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>  
16:                 <asp:Label ID="lblQuestionID" runat="server" Text='<%# Eval("QuestionID") %>'></asp:Label>  
17:             </ItemTemplate>  
18:         </asp:DataList><asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetUserFavourites"  
19:             TypeName="QuizNetOnline.Logic.UserFavourite"></asp:ObjectDataSource>  
20:       
21:     </div>  
22:     </form>  
23: </body>  
24: </html>  

.NET Documentation Tool is © 2002 - 2009 Winnersh Triangle Web Solutions Limited.