15,662,659 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Javascript questions
View Python questions
View C++ questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 12170781 (Top 44 by date)
Member 12170781
5-May-16 11:14am
View
didn't work..same error
Member 12170781
4-May-16 2:28am
View
Thank you so much buddy
Member 12170781
4-May-16 2:19am
View
@KARTHIK Bangalore after applying your suggestion I am getting exact output but the format of output is like this "00:00:20.9214091"..here 20 is the seconds and 9214091 is the milliseconds, am I right ?. I don't want to show the milliseconds..how do I do that?
Member 12170781
3-May-16 13:21pm
View
Thank you so much for reminding about breakpoint. Now I come to know where I am making mistake.
Member 12170781
22-Apr-16 5:50am
View
the error is same after removing it
Member 12170781
20-Apr-16 6:15am
View
I had gone through your links but I had applied my own way, the way I am used to and comfortable with it. I am just asking what mistake I am doing in above script due to which I am not getting the desired output ?
Member 12170781
19-Apr-16 2:22am
View
$(function () {
document.getElementById('form1').onsubmit = function () {
return false;
}//Avoid Reloading
$(".panelButton").click(function () {
var $thisButton = $(this); //save button into a variable
var $ansPanel = $(this).parent().find('.AnswerPanel'); //save ans panel into a variable
if ($ansPanel.is(":hidden")) {
$ansPanel.show();
}
else {
$ansPanel.hide();
}
if ($thisButton.val() == "Show Answer") {
$thisButton.val("Hide Answer");
} else {
$thisButton.val("Show Answer");
}
});
$(".optionclass").click(function () {
var $thisoption = $(this);
var $corrans = $(".correctans");
if ($thisoption.val() == $corrans.val()) {
$thisoption.css("color", "green");
}
else {
$thisoption.css("color", "red");
}
});
});
I applied above jquery but not it is working....whenever I click on any label it is turning into green color only...but I want to change correct answer turn into green
Member 12170781
18-Apr-16 4:02am
View
after debugging only I am facing this problem
Member 12170781
18-Apr-16 0:47am
View
check out these lines of code, I placed inside <head> section :-
$(function () {
//$("#Panel2").hide();
document.getElementById('form1').onsubmit = function () {
return false;
}//Avoid Reloading
$("#Button1").click(function () {
if ($('#anspanel').is(":hidden")) {
$('#anspanel').show();
}
else {
$('#anspanel').hide();
}
if ($("#Button1").val() == "Show Answer") {
$("#Button1").val("Hide Answer");
} else {
$("#Button1").val("Show Answer");
}
});
});
whenever I clicked on a button (id=Button1), it is not showing the hidden panel(id=anspanel) which is hidden when the page load. I can't find out why.Am I making any mistake in the code ?
Member 12170781
18-Apr-16 0:45am
View
Deleted
check out these lines of code, I placed inside <head> section :-
$(function () {
//$("#Panel2").hide();
document.getElementById('form1').onsubmit = function () {
return false;
}//Avoid Reloading
$("#Button1").click(function () {
if ($('#anspanel').is(":hidden")) {
$('#anspanel').show();
}
else {
$('#anspanel').hide();
}
if ($("#Button1").val() == "Show Answer") {
$("#Button1").val("Hide Answer");
} else {
$("#Button1").val("Show Answer");
}
});
});
whenever I clicked on a button (id=Button1), it is not showing the hidden panel(id=anspanel) which is hidden when the page load. I can't find out why.Am I making any mistake in the code ?
Member 12170781
17-Apr-16 23:03pm
View
I did modification in .aspx(line no. 47 to 71) then also button click is not working i.e. after clicking on a button it is not showing the hidden panel. Have a look at my edited question
Member 12170781
14-Apr-16 9:14am
View
I modify the code but the problem still exist....it is not hiding the tabs. I don't know where is the mistake I am making?
Member 12170781
14-Apr-16 8:22am
View
Now what I notice in the output is :- tab4,5 & 6 hide only for a fraction of second after that it come to its normal state. Why it is happening like that?
Member 12170781
14-Apr-16 8:05am
View
I did whatever you suggested but the problem is still same.Actually I populated the dropdownlist from database.I think this is the reason it can't find the selected list from dropdownlist.If so then what is the solution?
Member 12170781
14-Apr-16 7:34am
View
I did modification as you said but still it is not hiding tab 4,5 & 6
Member 12170781
13-Apr-16 5:28am
View
Thank you so much
Member 12170781
13-Apr-16 5:28am
View
Thank you.My problem is solved
Member 12170781
3-Apr-16 5:49am
View
yes, You were right. The problem is with the minus sign only. I corrected my mistake...but the output I am getting is something that is not expected i.e last question of every page is display below the label.This happens every time when I move next,first,last and previous page..I don't know why
Member 12170781
30-Mar-16 13:46pm
View
then what will be the another way?
Member 12170781
30-Mar-16 12:52pm
View
I know , I asked many questions together...I am talking about data controls in ASP.NET i.e. DataList, Detailsview, Gridview, etc. I want to display questions with options fetch from database (as specified in the description of question) and I think this can only possible through data controls..I think so
Member 12170781
30-Mar-16 12:37pm
View
I had search for many Online exam project but all of them are having same format of exam page i.e "one question with four options & one next, previous and submit button"......but I don't want like that... What I want is specified above....My main question is how do I display questions with options in section wise.....I hope now you are getting me....please read above description of question carefully....I just want some idea and logic to implement my thought
Member 12170781
30-Mar-16 9:29am
View
If you know the solution then please suggest
Member 12170781
29-Mar-16 11:51am
View
Thank you for the information You provided....I will definitely apply this in my website
Member 12170781
29-Mar-16 11:44am
View
but I didn't ask about it
Member 12170781
29-Mar-16 10:06am
View
basically there are 3 users:-
1) Admin----from Admin table
2) Student & 3) Teacher :- 2 and 3 are from Users table contain column 'role' which is use to specify the user is student or teacher...
I want to know the logic how can I redirect this three users to their home page through one login window
Member 12170781
28-Mar-16 19:06pm
View
thank you for the link....now I got complete understanding about many-to-many relationship...So the changes should be done are as follow:
7) Section( SectionId, SectionName )
8) Exam_Section( ExamId, SectionId )
Finally table work is done...now going to start forms designing of my project...if need any further help then definitely I will ask you...I hope you are not getting irritate with my stupid questions
Member 12170781
28-Mar-16 13:44pm
View
thank you so much...
One more question is roaming in my mind is how can I create relationship between Exam and Section table... I don't think that the linking of both the table I have done is correct(through ID).....because one exam is consist of more then one section and one section comes in more than one exam.... suppose I select a particular exam for practice test then all the sections of this exam with their questions and options should display...this will not become possible with my table design I think so...
Member 12170781
28-Mar-16 13:13pm
View
I have made changes in the tables as you said....have a look over it:
1) User( UserId, FullName, UserName, Password, Email, DOR, ContactNo, DOB, SecQuestion, SecAnswer,Role )
2) Result( ResultId, ExamId, UserId, NoOfCorrectAnswer, TimeTaken )
3) Exam( ExamId, ExamName, CourseId, TotalMarks, NegativeMark, PossitiveMark, TotalTime, NoOfQues )
4) Question( QuestionId, PassageId, Question, Option1, Option2, Option3, Option4, CorrectAns, SectionId )
5)Passage( PassageId, Passage )
6) Course( CourseId, CourseName )
7) Section( SectionId, SectionName, ExamId )
If any further changes are required then please tell.
Different exams having different marking criteria... In MCA entrance exam each correct answer will carry 4 marks. Each wrong answer will carry 1 negative mark. Unanswered questions will carry zero marks.So the positive marks is the correct answer marks.
As there is no link between Question table and Passage table so how can I insert and retrieve data from Question and Passage table ?
Member 12170781
28-Mar-16 11:40am
View
that's why I am facing problem in creating database tables. My website is based on all online exam practice....for example let's consider MCA. For the admission into MCA there where many entrance exams such as NIMCET, MHT CET MCA, JNU MCA,etc. The exam paper is consist of sections such as Reasoning, English, Mathematics and Computer Concepts .Keeping all these things in mind I have to design tables according to it.. Now have a look at the tables I designed
1) user(UserId,FullName,UserName,Password,Email,DOR,LastLoginDate,ContactNo,Dob,SecQuestion, SecAnswer,Role)
2) Result(ResultId,ExamPaperId,UserId,NoOfCorrectAnswer,TimeTaken,Rank)
3) ExamPaper(ExamPperId,ExamId,TotalMarks,NegativeMark,PossitiveMark,TotalTime,NoOfQues)
4) Question(QuestionId,PassageId,Option1,Option2,Option3,Option4,CorrectAns,SectionId)
5)Passage(PassageId,Passage)
6) Course(CourseId,CourseName)
7) Exam(ExamId,ExamName,CourseId)
8) Section(SectionId,SectionName,ExamId)
Am I going right? I am still stuck in database design
Member 12170781
28-Mar-16 9:58am
View
Sorry for the late reply... As you know, the absence of a value (a null) in the foreign key is not allowed. some question may be from mathematics or GK .so this type of questions don't contain any passage then the 'question' table as you specified above will not work . Am I right?
Member 12170781
27-Mar-16 10:27am
View
yes, U r right.I used breakpoint and find out that after clicking on submit button it is first executing this line :- "bool IsValid = DateTime.TryParse(txtDOB.Text.Trim(), out DateConverted);" . At that point the value of 'IsValid' is false but it is suppose to be true because I have entered a value in textbox of DOB i.e 01/01/2001...Now how can I sort out this?
Member 12170781
27-Mar-16 6:52am
View
I am using visual studio...please help me out
Member 12170781
23-Mar-16 13:45pm
View
I think you are not getting what I am trying to say........passage type question contain one long passage and based on that passage questions will be there with multiple choice option answers. The Question Table have only one question column...So my question is where do I store long passage and its related questions with answers? What will be the table design to store such things?. ...I am not asking any question related to datatype
Member 12170781
18-Mar-16 2:27am
View
sorry for the late reply.... I made changes as you said. I made change in objMail.To="thomastella4444@gmail.com".....and now the new error is 'The transport failed to connect to the server.'
Member 12170781
17-Mar-16 10:07am
View
I changed it to OnlineWebExamination@gmail.com....and now the new error is := "At least one recipient is required, but none were found."
Member 12170781
16-Mar-16 7:43am
View
Thank you again
Member 12170781
16-Mar-16 7:28am
View
yes, I got it.Thank you. It is accepting 'yyyy-mm-dd' format. If I want to change the format(for e.g dd-mm-yyyy) then what changes should I do ?
Member 12170781
16-Mar-16 7:13am
View
after applying your new solution I am facing some different problem. The problem is that after clicking on submit button the Password and re-enter password's textbox value get disappear and remaining textbox value remain as it is also it is not getting direct to next page
Member 12170781
16-Mar-16 6:55am
View
then instead of parse what should I use?
Member 12170781
16-Mar-16 6:44am
View
Deleted
thank you...my problem is solved.
Member 12170781
16-Mar-16 6:43am
View
thank you
Member 12170781
16-Mar-16 6:06am
View
I am passing date(for e.g :01/01/2016) in TextBox2 but it is not getting converted into date
Member 12170781
16-Mar-16 5:52am
View
have a look at my Registration table :
CREATE TABLE [dbo].[Registration]
(
[Id] INT IDENTITY (100, 1) NOT NULL,
[name] VARCHAR (50) NOT NULL,
[DOB] DATETIME NOT NULL,
[gender] VARCHAR (50) NOT NULL,
[branch] VARCHAR (50) NOT NULL,
[college] VARCHAR (50) NOT NULL,
[uid] VARCHAR (50) NOT NULL,
[pwd] VARCHAR (50) NOT NULL,
[rpwd] VARCHAR (50) NOT NULL,
[utype] VARCHAR (50) NOT NULL,
[que] VARCHAR (500) NOT NULL,
[ans] VARCHAR (5000) NOT NULL,
PRIMARY KEY CLUSTERED ([Id] ASC)
);
then also same error is coming
Member 12170781
14-Mar-16 9:45am
View
I have decided To display exam questions using datalist tool .I am having problem in generating result page which contain exam name,number of correct answers and wrong answers, total marks obtained, number of attempted and skip questions. I don't know how to calculate all this and display result. please help
Show More