<%@ Register TagPrefix="uc1" TagName="PollListControl" Src="UserControls/PollListControl.ascx" %>
<%@ Page language="c#" Codebehind="QuestionEditor.aspx.cs" AutoEventWireup="True" Inherits="DataIllusion.NetPolls.WebAdmin.QuestionEditor" %>
<%@ Register TagPrefix="uc1" TagName="HeaderControl" Src="UserControls/HeaderControl.ascx" %>
<%@ Register TagPrefix="uc1" TagName="FooterControl" Src="UserControls/FooterControl.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
    <title>NetPolls - The free poll engine</title>
<meta content="Microsoft Visual Studio .NET 7.1" name=GENERATOR>
<meta content=C# name=CODE_LANGUAGE>
<meta content=JavaScript name=vs_defaultClientScript>
<meta content=http://schemas.microsoft.com/intellisense/ie5 name=vs_targetSchema><LINK href="css/netpollsadmin.css" type=text/css rel=stylesheet >
  </HEAD>
<body leftMargin=0 topMargin=0 marginheight="0" 
marginwidth="0">
<form id=Form1 method=post runat="server">
<p align=center><br>
<table class=TableLayoutContainer cellSpacing=0 cellPadding=0>
  <tr>
    <td><uc1:headercontrol id=PollHeader runat="server"></uc1:headercontrol></td></tr>
  <tr>
    <td class=contentCell vAlign=top><asp:label id=MessageLabel runat="server" Visible="False" ForeColor="Green"></asp:label>
      <TABLE class=Innertext>
        <tr>
          <td colSpan=2>
            <table>
              <tr>
                <td width="99%"><font class=titleFont 
                  ><asp:literal id=SurveyInformationTitle 
                   runat="server" Text="Update question" 
                  EnableViewState="False"></asp:literal></font></td>
                <td align=right></td></tr></table><IMG src="images/linebreak.gif" > </td></tr>
        <TR>
          <TD>&nbsp;&nbsp; </TD>
          <TD>
            <TABLE class=Innertext>
              <tr>
                <td><asp:TextBox id=QuestionTextBox runat="server" Columns="60" TextMode="MultiLine" Rows="10"></asp:TextBox>
				</td>
                </tr></TABLE><asp:DropDownList id=QuestionLayoutDropDownList runat="server"></asp:DropDownList>
		</TD></TR></TABLE><BR><asp:button id=UpdateQuestionButton runat="server" Text="Update question" onclick="UpdateQuestionButton_Click"></asp:button><BR><BR 
      ><br>
      <TABLE class=Innertext>
        <TR>
          <TD colSpan=2><FONT class=Titlefont 
            >Add a new answer</FONT> <BR 
            ><IMG src="Images/Linebreak.Gif" > </TD></TR>
        <TR>
          <TD>&nbsp;&nbsp; </TD>
          <TD>
            <TABLE class=Innertext>
              <TBODY>
              <tr>
                <td><asp:TextBox id=AnswerTextBox runat="server"></asp:TextBox>&nbsp;<asp:Button id=AddAnswerButton runat="server" Text="Add answer" onclick="AddAnswerButton_Click"></asp:Button>
				
</td></tr></TBODY>
</TABLE></TD></TR></TABLE><br>
      <TABLE class=Innertext>
        <TR>
          <TD colSpan=2><FONT class=Titlefont 
            >Question's answers</FONT> <BR 
            ><IMG src="Images/Linebreak.Gif" > </TD></TR>
        <TR>
          <TD>&nbsp;&nbsp; </TD>
          <TD>
            <TABLE class=Innertext>
              <TBODY>
              <tr>
                <td><asp:DataGrid id=AnswersDataGrid runat="server" CssClass="smallText" AutoGenerateColumns="False" ShowHeader="False">
<AlternatingItemStyle BackColor="#F4F9FA">
</AlternatingItemStyle>

<Columns>
<asp:BoundColumn DataField="Text" ItemStyle-Font-Bold=True ItemStyle-Width="400px"></asp:BoundColumn>
<asp:BoundColumn DataField="VoteCount" ItemStyle-Width="30px"></asp:BoundColumn>
<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update" CancelText="Cancel" EditText="Edit"></asp:EditCommandColumn>
<asp:ButtonColumn Text="Delete" CommandName="Delete"></asp:ButtonColumn>
</Columns>
</asp:DataGrid></td></tr></TBODY>
				</TABLE>

</TD></TR>
</TABLE></td></tr><uc1:footercontrol id=Footer runat="server"></uc1:footercontrol></table></p></form>

</body>
</HTML>
