Click here to Skip to main content
15,900,532 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPOST - Attach a CSV file by web service Pin
bloodyrouk27-May-09 22:28
bloodyrouk27-May-09 22:28 
AnswerRe: POST - Attach a CSV file by web service Pin
Christian Graus28-May-09 0:08
protectorChristian Graus28-May-09 0:08 
GeneralRe: POST - Attach a CSV file by web service Pin
bloodyrouk28-May-09 1:11
bloodyrouk28-May-09 1:11 
QuestionHelp regarding online examination project Pin
Sneeha27-May-09 22:11
Sneeha27-May-09 22:11 
AnswerRe: Help regarding online examination project Pin
Baran M27-May-09 22:48
Baran M27-May-09 22:48 
GeneralRe: Help regarding online examination project Pin
Sneeha29-May-09 6:21
Sneeha29-May-09 6:21 
GeneralRe: Help regarding online examination project Pin
Baran M29-May-09 20:45
Baran M29-May-09 20:45 
GeneralRe: Help regarding online examination project Pin
Sneeha31-May-09 16:41
Sneeha31-May-09 16:41 
thank you for your reply sir..
You are talking about using gridview but
instead of using grid view i am using datalist to display the question like this
Q1. Here is the first question
a) Option a
b) Option b
c) Option c
d) Option d

Q2. Second question
a) Option a
b) Option b
c) Option c
d) Option d

Next..

SubMit Button which led the result page

Here is the code through which i bind the question with the label and radiobuttonlist
<br />
<asp:DataList ID="DataList1" runat="server" DataSourceID="AccessDataSource1"><br />
            <AlternatingItemStyle BackColor="#CCCCCC" /><br />
            <ItemStyle BackColor ="#EEEEEE" /><br />
            <ItemTemplate><br />
                <p><%#Eval("QuestionNo") %>. <asp:Label ID="TextLabel" runat="server" Text='<%#Eval("QuestionText") %>'></asp:Label></p><br />
                <asp:AccessDataSource ID="AccessDataSource2" runat="server"<br />
                                      DataFile="~/App_Data/dbstudent.mdb"<br />
                                      SelectCommand='<%# Eval("QuestionNo", "SELECT OptionA,OptionB,OptionC,OptionD FROM [BankQuestionBiology] WHERE QuestionNo = {0}") %>'><br />
                </asp:AccessDataSource><br />
                <asp:RadioButtonList ID="RadioButtonList1" runat="server"<br />
                                     DataSourceID="AccessDataSource2"><br />
                </asp:RadioButtonList><br />
            </ItemTemplate><br />
        </asp:DataList><br />


But it is giving a Syntax error
Syntax error (missing operator) in query expression 'QuestionNo = QB 10001'.


Could you help with this code or hint about a better approach

Again thanks for the reply
AnswerRe: Help regarding online examination project Pin
RAKESH gaur mkcl7-Jun-09 19:23
RAKESH gaur mkcl7-Jun-09 19:23 
AnswerRe: Help regarding online examination project Pin
RAKESH gaur mkcl10-Jun-09 1:36
RAKESH gaur mkcl10-Jun-09 1:36 
QuestionRegular expression Pin
samerh27-May-09 20:50
samerh27-May-09 20:50 
AnswerRe: Regular expression Pin
ScottM127-May-09 21:15
ScottM127-May-09 21:15 
QuestionURL Rewriting Pin
Matt Cavanagh27-May-09 20:45
Matt Cavanagh27-May-09 20:45 
AnswerRe: URL Rewriting Pin
Manas Bhardwaj28-May-09 0:00
professionalManas Bhardwaj28-May-09 0:00 
GeneralRe: URL Rewriting Pin
Matt Cavanagh28-May-09 3:22
Matt Cavanagh28-May-09 3:22 
GeneralRe: URL Rewriting Pin
Manas Bhardwaj28-May-09 3:42
professionalManas Bhardwaj28-May-09 3:42 
GeneralRe: URL Rewriting Pin
Matt Cavanagh28-May-09 20:28
Matt Cavanagh28-May-09 20:28 
Question[Message Deleted] Pin
llibin27-May-09 20:14
llibin27-May-09 20:14 
AnswerRe: Give me urgent solution Pin
Vimalsoft(Pty) Ltd27-May-09 20:41
professionalVimalsoft(Pty) Ltd27-May-09 20:41 
AnswerRe: [Message Deleted] Pin
Baran M27-May-09 21:12
Baran M27-May-09 21:12 
Questionhow to use Query string in asp.net Pin
kumar Rajiv27-May-09 19:55
kumar Rajiv27-May-09 19:55 
AnswerRe: how to use Query string in asp.net Pin
Baran M27-May-09 20:10
Baran M27-May-09 20:10 
AnswerRe: how to use Query string in asp.net Pin
padmanabhan N27-May-09 20:15
padmanabhan N27-May-09 20:15 
Questionhelp meeee Pin
llibin27-May-09 19:48
llibin27-May-09 19:48 
AnswerRe: help meeee Pin
saanj28-May-09 2:43
saanj28-May-09 2:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.