Checking Student's Answer On Web Form Against Database Answer

Jun 3, 2010

currently im trying to implement a quiz system on my website in which system will auto mark student's ans. if the student's ans is wrong, system will prompt an incorrect answer, highlight the errors and count the number of errors.

Im using asp.net C#.

View 6 Replies


Similar Messages:

DataSource Controls :: Compare Answer From Website Against Database Answer?

Jul 4, 2010

how to count the number of incorrect words from the answer from the website when comparing with database answer?

View 10 Replies

Security :: Compare The Hashed Answer In Database To The One Typed In Textfield In Form?

Jan 15, 2011

So as the title suggested, I'm currently trying to compare the hashed answer in my database against the answer typed in the textfield by the user in the form.

I thought of hashing the answer in the textfield typed by the user first, and after that compare this newly hashed answer to the one in the database (which is already hashed). But when I typed in the SAME answer (before hashing) and hashed it to get the hashed value, by right the 2 hashes (in web form and database) should match? Somehow, it didn't. And I can't seem to get security answer right anymore (even though I typed the SAME security answer).

This is the code behind the button:

[Code]....

I tried in another way too, but still the same thing.

[Code]....

View 4 Replies

Creating A Message Box If Dropdown Answer Is Yes - VB.Net?

Mar 3, 2011

I have a working dropdown box that gives the answers yes & no. When "yes" is selected I need to create a message box that displays a simple message and allows the user to click ok, to get back to the survey.

I have been working with it, and tried several things but no luck. What would the code look like, and where exactly would I place it to fire at the right time. I am working in VB, with an aspx & aspx.vb page.

View 3 Replies

Using Visual Studio To Design Questions And Answer?

Oct 31, 2010

how to do this.or is there any template that one can use for the following-

using visual studio to design questions and answers with outcome of the grade immediately after submition and with timing.

For example, having questions 1 to 10, providing options like A, B, C,D, then let students choose from the right answer from the questions, then, after submition, an outcome of grade is displayed based on the right answer.

View 2 Replies

Web Forms :: Create A Question And Answer Website?

Jan 20, 2011

In my application i need to add a module for question and answers (like a forum or similar to stackoverflow.superuser etc). I am confused about implementing Tags, Meta tag etc.

View 3 Replies

Searched The Web A While Back And Didn't Found An Answer To Curiosity?

Feb 3, 2010

I'd searched the web a while back and I didn't found an answer to my curiosity. I am using a master page, and I have this content page, in which I have to store the entry on another content page. If I am not using a master page, then, I can simply specify on the form's action attribute the file name of the page where am I going to store my entry.

View 11 Replies

Security :: How To Turn Off The Encryption Of The Answer Of The Q And A, Or Decrypt It In A Report Or Something

Feb 19, 2010

I have these settings.. in my webconfig..

enablePasswordRetrieval="true"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"

So i dont need to use Q and A for password retrevial ( I use email password recovery), but I would like to use Q and A as and Admin, just as that higher level of secuirty.How can I turn off the encryption of the answer of the Q and A, or decrypt it in a report or something ???

View 3 Replies

Forms Data Controls :: Get Correct Checked Answer?

Sep 29, 2010

I am still studying to become a webintegrator and this is my private project to try and learn C# better.

I have a database with a table called Answers which holds AnswerID, Answer1, Answer2, Answer3 and CorrectAnswer + a table called Questions which holds QuestionID, QuestionNumber and QuestionText.

On a page i have a repeater that pulls the questions from the database and inside it i have another repeater with my 3 radiobuttons that pulls the 3 Answers from the database and are grouped so you can only check 1 of the radiobuttons as the user. See below:

<asp:Repeater ID="rptQuestions" runat="server">
<ItemTemplate>
<div>
<div>
Spørgsmål
<asp:Label ID="lblQuestionHeader" runat="server" Text='<%#Eval("QuestionNumber") %>'></asp:Label>

[Code]...

What i need to do, is somehow find each CorrectAnswer checked correctly in the repeater holding the radiobuttons and give 1 point for each CorrectAnswer chosen by the user (if theres 10 questions there will be 10 repeateritems with 3 radiobuttons in each one) and write this into aspnet_Profile. Problem is i have no idea how to do this since it already seems a bit complicated in my head and i haven't had much C# yet. So any help would do and notice i do not ask for the entire coding but simply a push in the right direction.

View 2 Replies

Create An FAQ Page / Click On The Question, The Answer Expands?

Sep 6, 2010

I want to create an FAQ page like the one on this website

http://www.microsoft.com/windows/windows-7/faq.aspx

When you click on the question, the answer expands. Click it again and it collapses.

My question, answers are stored in a database. I googled and found out there's this JavaScript code to achieve this BUT also came across something that said it can be done using Repeater Controls.

View 4 Replies

Web Forms :: Add Customized Question And Answer To PasswordRecovery Control

Aug 15, 2012

I am using password recovery control in forgotpassword.aspx page. By default the password recovery control validates the Login id and the security question of a particular user. But i want to give an alternate option. That is, If the user forgets the security answer he can give his PAN Number as identificaiton. Its should be an option like either he can provide security answer or his PAN number. Can we acheive this functionality. Because from my knowledge it looks like Security Answer is mandatory.  But i want to provide alternate option that user should give his security answer, if he forgets he can use PAN number for his identificaition. UpmMembershipProvider has default property (requiresQuestionAndAnswer) which is set as true.

View 1 Replies

SQL Server :: Try MD5 Hash For (submited Value+table Field) Get The Wrong Answer

Jul 15, 2010

I have two pages:

1) login and send username,password, machineID and a rand string to the server
2) check the machineID whether it exists in the table.

Problem is the checking machine procedure:

select MachineID from computer where MD5MachineID=@MD5MachineID2 and SUBSTRING((master.dbo.fn_varbintohexstr(HASHBYTES('MD5',MachineID+@RString))),3,32)=@MIDST

RString,MD5MachineID2,MIDST are submited by Login MD5MachineID is stored in table.

I need the check if MD5(MachineID+RString) is match the MIDST (submited).

Now the situation is :

if RString is a fixed string(not a variable).like 'abcdefg', the MD5 is correct.

if I use the RString (submited value as a variable), the MD5 is incorrect.

View 1 Replies

Membership - How To Check If Password Answer Matches What Is Provided By A User

Jan 30, 2011

I simply want to know how to manually check if the value a user has provided for the answer to their security question matches their current answer on record. I want to use the build in support of the ASP.Net membership and membershipuser objects.

I see that via the passwordrecovery control that the actual answer can be returned. However I am currently not using this control and it would take a good bit to integrate it as it does not meet our user's requirements.

In a worst case scenario, getting the actual answer (like the passwordrecovery control does) and manually checking it in our application would be acceptable.

A best case scenario is some sort of API where I can pass in the user name and the answer to their security question that was provided and simply get an indication of whether answer was correct or not.

View 1 Replies

Web Forms :: Delete Security Question And Answer In Login Control?

Jan 20, 2011

I use login control in asp.net 4.0 and i just like to delete Security question and answer and add other field EX: address,fullname....

How should i do it?

View 3 Replies

Security :: Want To Enforce Strong Passwords And Do Not Want To Use The Secret Question And Answer Features?

Sep 17, 2010

I have a website running on iis 5.1 with asp.net 2.0. Where in the windows registry can I change the requirtements for some the security features? For example, I do not want to enforce strong passwords and I do not want to use the secret question and answer features.

View 4 Replies

Security :: Creating An Admin Tool To Reset Password Without Question / Answer?

Oct 29, 2010

I'm dealing with a scenario where a legitimate user doesn't have a clue about his password, secret question or the answer. So, I was trying to create an admin tool that would help me in situations like these where the admin should be able to type in username and reset the password without having to know/enter answer to secret question. I understand that I need to make some changes to the web.config for this to work. I thought I made all the changes but my ResetPassword() requests are still not working.

Here's my web.config settings for the provider.

[Code]....

View 4 Replies

Security :: How To Remove The Username/secret Question/secret Answer From The SignUp Wizard

Jan 18, 2011

how to remove the "username","secret question","secret answer" from the signUp Wizard and at the same time use the email for loginig In

View 1 Replies

Security :: Getting Error Incase Of Incorrect Security Answer In Password Recovery Process

Jul 12, 2010

I am getting an error incase user submits incorect security question's answer. I gave text in 'QuestionFailureText'. But its not working.

Below is the error getting.
'
Security Exception Description:The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.

Source Error:

[Code]....

Source File: c:WindowsMicrosoft.NETFramework64v2.0.50727Temporary ASP.NET Filespng.webe16ed3ec284df543App_Web_rvfjstqa.5.cs Line: 0 Stack Trace:

[Code]....

View 3 Replies

Security :: How To Manually Check A User's Security Question Answer

Jan 30, 2011

I simply want to know how to manually check if the value a user has provided for the answer to their security question matches their current answer on record. I want to use the build in support of the membership and membershipuser objects.

I see that via the passwordrecovery control that the actual answer can be returned. However I am currently not using this control and it would take a good bit to integrate it as it does not meet our user's requirements.

In a worst case scenario, getting the actual answer (like the passwordrecovery control does) and manually checking it in our application would be acceptable.

A best case scenario is some sort of API where I can pass in the user name and the answer to their security question that was provided and simply get an indication of whether answer was correct or not.

View 5 Replies

Security :: PasswordRecovery Not Completing Security Answer Verification?

Jul 12, 2010

I'm using asp.net's built-in membership provider with security question-and-answer enabled for password recovery against a SQL Server 2005 db. For some users, this works fine and they're able to receive their passwords. For others, and it's not clear what separates the two groups, the security answer is never properly processed. It doesn't matter if the answer is correct or incorrect, the page merely reloads without confirming or denying the request.As for events, VerifyingAnswer is being triggered, but not AnswerLookupError (if answer is incorrect) or SendingMail (if answer is correct). I ran a SQL trace during one instance, and the aspnet_Membership_GetUserByName stored procedure is being called, but nothing else gets called after. I would expect that aspnet_Membership_GetPassword would be called, which passes the security answer as a parameter, but it isn't.

View 2 Replies

How To Code To Open A Popup Windows With Answer "yes" Or "no"

Dec 10, 2010

How to code to open a pop-up windows with answer "yes" or "no"?

If "yes" then open another page, such as order.aspx.

View 1 Replies

Web Forms :: Length Checking In The Form?

Oct 30, 2010

In my application, if I do not input the value into the textfield, it will show error message: "The value '' is invalid."

However, is it possible to check one more thing: the length of the textfield? For example, it will show the error message if I input more than 10 chars? And is it possible to change the message "The value '' is invalid." to "Missing Value"?

View 3 Replies

JQuery :: Checking If A Form Is Valid Before Running The Code Behind?

Jan 19, 2011

I've added some validation to a text box which works, only the code behind on the image button executes even if the validation shows a problem. I need some way of testing the validation and blocking the code behind from running. He's my code:

[Code]....

View 3 Replies

C# - Checking For Database Changes At Set Intervals In Page

Oct 19, 2010

I have an ASP.NET page which contains a large number of gridviews, which contain masses amount of data which take a fair while to rebind. I currently have it set so the gridviews are only bound when the account number is changed (on the page, the user searches for an account which then displays their information). I'd like it to be able to monitor a database table (hashing it maybe?) every few minutes, then if there are changes spawn a popup box informing them, and an option to have the gridviews refreshed. Firstly, is this possible in ASP.NET/C#? Secondly, what would the performance impact be on the page checking the hash/checking for changes in a large DB table?

View 2 Replies

SQL Server :: Checking Whether Or Not Column Available In Database

Aug 20, 2010

I am building next version of our Asp.net web application. for this new build one column is added in database. Now I have to make this new build backward compatible. Means build should be good for old database design (without that added column) and new design. Just wondering if there is an efficient way to know whether or not particular column exists in table you are working with?

at this time, I am getting all the columns in datatable and loop through it to make sure that new column is available in it? if yes the modified query with this column and if not then old query. Just cuious, what is the best industry practise to make any build backward compatible with old database design?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved