Forms Data Controls :: With The Quiz System Using C# Vs 2008?
Nov 7, 2010
i am making a quiz system in asp.net using C# vs 2008.having one equestion per page,with previous and back button.each question have four options with only one correct answer.The options are in a radio button list.I have a database which has two columns as QuestionID,CorrectAnswer.
For viewing previous answer the user can click on previous button,so that he can see his previous marked answer and if feel he had marked the wrong option then he can mark the other one.
Some Problems:-
when clicking the previous button the option which was marked in radio button list got unchecked!!So,the user is unable to know which he had marked before.After completing the quiz how can the answers selected by the user be compared with the CorrectAnswer stored in database and can be displayed in the result page having four columns as QuestionID,CorrectAnswer,UserAnswer,Right/Wrong in a grid view.Though i am able to display the QuestionID and the CorrectAnswer in a grid view in the result page.
i am making a quiz system in asp.net using C# vs 2008.having one equestion per page,with previous and back button.each question have four options with only one correct answer.The options are in a radio button list.I have a database which has two columns as QuestionID,CorrectAnswer.
For viewing previous answer the user can click on previous button,so that he can see his previous marked answer and if feel he had marked the wrong option then he can mark the other one.
Some Problems:-when clicking the previous button the option which was marked in radio button list got unchecked!!So,the user is unable to know which he/she had marked before.I want that the option remains checked so that the user knows what he/she had marked previously.After completing the quiz how can the answers selected by the user be compared with the CorrectAnswer stored in database and can be displayed in the result page having four columns as QuestionID,CorrectAnswer,UserAnswer,Right/Wrong in a grid view. Though i am able to display the QuestionID and the CorrectAnswer in a grid view in the result page.
I need to implement simple quiz in asp.net that displays question, its options and user can answer these questions by checking options and submit the result.
I think ListView is the best control to implement in a way that each Item is question and I need to display Option of the question using check box list.
In ItemTemplate, how can I specify such condition that give me the list of options to select for the user for the particular question in the same row. Just like this:
1. Question Text goes here: (Options to select for the user)checkbox1 goes here; checkbox2 goes here
2. Question Text goes here: (Options to select for the user)checkbox1 goes here; checkbox2 goes here and so on
I want to show quiz on my website, then collect user answer and match it with the correct answer and finaly the result should be calculate and shown to the user.
I have created an application in asp.net using c#.In that i have a Quiz Module.Quiz is working fine but now clients wants a Timer in this Module.How do i add a Timer for two minutes for whole quiz which will be showing like this- > 02:00 to 00:00 ?
Basically, what I did is that: I have a table in SQL database and some of data fields allow null. I built Objectdatasource through dataset. When I built update page using dataset. It generate the following error before showing the update page correctly. It seems I have issue to retrieve the null value from the database through using objectdatasource through dataset. Any suggestions?An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code
I am making a online exam project i want to count the correct answers the questions and option are in datalist. Iam looping inside datalist but i want to know how to count the correct answers and display result...
I am trying to upload a picture into database using FormView insertItemTemplate. FormView is bounded by objectdatasource.To upload, I placed FileUpload control inside insertItemTemplate.In table the dataType is image.Error:Object of type 'System.Boolean' cannot be converted to type 'System.Byte[]'.
I want to conduct a quiz using silverlight. This quiz contains few questions and each question will have multiple choices (Radio Buttons). User should select one answer. After completing the quiz I need to display Result.
Is it better to provide the questions and options in XML Document and then retrieve it into silverlight class?
in my web project i got an error that i couldnt find any solution. the error says: System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. when i work in local there were no problem i put files to our server and i changed the database also. when i work in server in web application in Default.aspx i can connect db and get values without any problem using my DataLibrary
BUT the problem in my web service i also use my DataLibrary in webservice but when i try to run a method in web service it gives me the error which is : System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Is there an existing application for drag and drop quiz interface in asp.net. I mean, users should be able to drag and drop the answers/options into a answer section and then the answer is verrified via our code.
Was just checking out if there is already an existing interface as described above.
I have asp.net application, using LINQ to connecto to SQL Server 2008 R2 databse. My connection string: Data Source=[SqlServerIp];Initial Catalog=[databaseName]User Id=newLogin;Password=newPassword; When I deploy application on my local IIS (which is not the same machine as database server)
it works fine, but when I deploy application on other IIS (the same machine as sqlServer) it throws an exception: System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. how to fix it? Maybe it is due to some bad configuration of IIS?
I'm trying to build a chart in my application which will act as a client for an ASP.NET 3.5 web service that I created. The error I get is as follows:
Series data points do not support values of type System.Data.DataViewManagerListItemTypeDescriptor only values of these types can be used: Double, Decimal, Single, int, long, uint, ulong, String, DateTime, short, ushort.
I've tried various ways to resolve this but can't. This error points at the chtStats.DataBind() line in the code below:
I am having some issues accessing a literal in a usercontrol.
I get the following error: System.NullReferenceException: Object reference not set to an instance of an object. at page.sbPageLoad(String sTypeCD, Int32 iCategoryID, String SortExpression)
I am currently adding checkbox functionality to a system. I would like to check a group of users and add them into a db table. I currently have the administrator values flowing into the db table fine but it will not insert the empID into the table from the gridview. Here is my code:[Code]....
I want to get only the current date and not time in asp.net( visual studio 2008). But in 2008 we have the properties associated with time like System.DateTime. How to calulate only system date?
my system i am having sql server 2005 standard edition.now i installed sql server 2008 r2 express edition and i am getting error like.."the service did not respond to the start or contorl request in a timely fashion"...
is it possible to install sql server 2008 r2 express edition in a system where sql server 2005 standard edition is already installed?
Trying to explain this clearly. I have a dropdown listbox where user can select multiple names. These names are then selected/inserted into db table in a loop. Table is displayed in an editable gridview. I have a main sqldatasource1 on my aspx page with select/insert/update permissions, but because select command doesnt work with parameters of multiple values (or does it?), i resorted to using an alternative sql datasource in the codebehind in order to run the select query on the multiple values chosen from the dropdownlist to see if they were in my table.I now get this error when I go to select multiple names from the dropdown list
Unable to cast object of type 'System.Data.Common.DataRecordInternal' to type 'System.Data.DataRowView'.