I've created the survey form but I don't know how to continue doing the database... Can someone each me? Anyway, Here's my code:
<tr>
<td class="auto-style2">5) Would you share our website to your friends?</td>
<td>
<asp:RadioButtonList ID="rbl5" runat="server" AutoPostBack="True" RepeatDirection="Horizontal" RepeatLayout="Flow">
<asp:ListItem>Yes</asp:ListItem>
<asp:ListItem>No</asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
<tr>
<td class="auto-style2">6) Any comments or suggestions?</td>
<td>
<asp:TextBox ID="tbComment" runat="server" Height="182px" TextMode="MultiLine" Width="271px"></asp:TextBox>
<br />
<br />
<br />
<input type="button" onclick="btnSubmit_Click()" value="Submit" />
<asp:Button ID="btnReset" runat="server" OnClick="btnReset_Click" Text="Reset" />
</td>
</tr>
</table>
</div>
</form>
As you noticed, I used radiobuttonlist and comment box. These are the reasons why I'm having problem to create the database... Please teach me...I only know how to create tables for database...
And the database might be something like this...
This is the QUESTION Table:
CREATE TABLE [dbo].[Question]
(
[Id] INT NOT NULL PRIMARY KEY,
[Question] NCHAR(10) NULL,
[Options] NCHAR(10) NULL
)
This is the ANSWERS Table:
CREATE TABLE [dbo].[Answers]
(
[Id] INT NOT NULL PRIMARY KEY,
[QuestionId] NCHAR(10) NULL,
[Answers] NCHAR(10) NULL
)
And I'm also not sure about the NCHAR(10) ... So this is how bad I am in programming. Please teach me.