ASP.NET Page /Admin/QuestionAnswerEnquiry.aspx (C#)
Uses Code Behind Page Page /Admin/QuestionAnswerEnquiry.aspx.cs (C#)
1: <%@ Page Language="C#" AutoEventWireup="true" Inherits="QuiznetOnline.Web.UI.Admin.QuestionAnswerEnquiry" Codebehind="QuestionAnswerEnquiry.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:         <asp:HyperLink ID="lblHome" runat="server" NavigateUrl="~/Admin/Default.aspx">Home</asp:HyperLink>  
12:         <asp:Label ID="Label1" runat="server" Text="Search String : "></asp:Label><asp:TextBox runat="server" ID="txtSearchResults"></asp:TextBox>  
13:           
14:         <asp:Button runat="server" ID="cmdSearch" Text="Search" />  
15:           
16:         <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"  
17:             DataSourceID="ObjectDataSource1" EnableModelValidation="True">  
18:             <Columns>  
19:                 <asp:BoundField DataField="QuestionID" HeaderText="QuestionID" SortExpression="QuestionID" />  
20:                 <asp:BoundField DataField="Question" HeaderText="Question" SortExpression="Question" />  
21:                 <asp:BoundField DataField="Answer" HeaderText="Answer" SortExpression="Answer" />  
22:             </Columns>  
23:         </asp:GridView>  
24:         <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="FindQuestionAnswer"  
25:             TypeName="QuizNetOnline.Logic.QuestionEnquiry"  
26:             OldValuesParameterFormatString="original_{0}">  
27:             <SelectParameters>  
28:                 <asp:FormParameter FormField="txtSearchResults" Name="SearchStr" Type="String" />  
29:             </SelectParameters>  
30:         </asp:ObjectDataSource>  
31:     </form>  
32: </body>  
33: </html>  

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