Click here to Skip to main content
15,908,455 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How do i use two different language class files in same project.. Pin
Arun Jacob4-Feb-08 19:57
Arun Jacob4-Feb-08 19:57 
GeneralRe: How do i use two different language class files in same project.. Pin
Amit.Amit.Amit...4-Feb-08 20:27
Amit.Amit.Amit...4-Feb-08 20:27 
QuestionHow do i use two class files in my project a is in C# and another is in VB.Net.. Pin
Amit.Amit.Amit...4-Feb-08 19:07
Amit.Amit.Amit...4-Feb-08 19:07 
GeneralRe: How do i use two class files in my project a is in C# and another is in VB.Net.. Pin
N a v a n e e t h4-Feb-08 19:29
N a v a n e e t h4-Feb-08 19:29 
QuestionJs File Problem?? Pin
Vanamaindia4-Feb-08 19:06
Vanamaindia4-Feb-08 19:06 
AnswerRe: Js File Problem?? Pin
N a v a n e e t h4-Feb-08 19:28
N a v a n e e t h4-Feb-08 19:28 
GeneralDynamically Fetch the Random records Pin
sjs4u4-Feb-08 17:50
sjs4u4-Feb-08 17:50 
GeneralRe: Dynamically Fetch the Random records Pin
Steve Echols4-Feb-08 18:31
Steve Echols4-Feb-08 18:31 
You could use the System.Random class with a constant seed value. This will guarantee that the same random number sequence will be generated everytime.

Some semi-pseudo code:
// Which question are they on
int question_number = 0;  // This could come from Request[] or a hidden field on the page or something
int.TryParse(Request["question_number"], out question_number);

int max_questions = 9;

int seed = 42;  // The seed could be set from maybe a student id or user id to ensure the questions are random across students
System.Random rand = new System.Random( seed );

int random_question_index = 0;

// Move to the appropriate random question based on which question number they're on
for(int i = 0; i < question_number; i++)
    random_question_index = rand.Next(0, max_questions);


Something like that might work. Your next and previous buttons just need to set "question_number" appropriately.


- S
50 cups of coffee and you know it's on!

GeneralRe: Dynamically Fetch the Random records Pin
love_man0014-Feb-08 22:09
love_man0014-Feb-08 22:09 
GeneralRe: Dynamically Fetch the Random records Pin
Christian Graus4-Feb-08 18:32
protectorChristian Graus4-Feb-08 18:32 
Question:^) Crystal Report [modified] Pin
sivaprakas4-Feb-08 16:34
sivaprakas4-Feb-08 16:34 
QuestionAjax Modal question with user control Pin
allenpotter4-Feb-08 8:36
allenpotter4-Feb-08 8:36 
QuestionASP.Net GridView Displaying DateTime value in the format 'dd-MM-yy' [modified] Pin
A.Redha4-Feb-08 4:10
A.Redha4-Feb-08 4:10 
GeneralRe: ASP.Net GridView Displaying DateTime value in the format 'dd-MM-yy' Pin
bokuceres4-Feb-08 17:36
bokuceres4-Feb-08 17:36 
GeneralRe: ASP.Net GridView Displaying DateTime value in the format 'dd-MM-yy' Pin
A.Redha4-Feb-08 23:20
A.Redha4-Feb-08 23:20 
GeneralRe: ASP.Net GridView Displaying DateTime value in the format 'dd-MM-yy' Pin
bokuceres5-Feb-08 17:14
bokuceres5-Feb-08 17:14 
GeneralExporting multiple GridView to multiple sheets in single excel file Pin
pradeep kumarappagari4-Feb-08 2:58
pradeep kumarappagari4-Feb-08 2:58 
GeneralRe: Exporting multiple GridView to multiple sheets in single excel file Pin
pmarfleet4-Feb-08 4:09
pmarfleet4-Feb-08 4:09 
GeneralRegular Expresion with Javascript Pin
danasegaranea4-Feb-08 2:51
danasegaranea4-Feb-08 2:51 
GeneralRe: Regular Expresion with Javascript Pin
pmarfleet4-Feb-08 4:07
pmarfleet4-Feb-08 4:07 
Questionproblem with sound functionality in ASP.NET and C# Pin
S.Dhanasekaran4-Feb-08 2:33
S.Dhanasekaran4-Feb-08 2:33 
GeneralRe: problem with sound functionality in ASP.NET and C# Pin
Christian Graus4-Feb-08 17:25
protectorChristian Graus4-Feb-08 17:25 
GeneralRe: problem with sound functionality in ASP.NET and C# Pin
Steve Echols4-Feb-08 18:41
Steve Echols4-Feb-08 18:41 
GeneralRe: problem with sound functionality in ASP.NET and C# Pin
Steve Echols4-Feb-08 18:41
Steve Echols4-Feb-08 18:41 
GeneralASP.Net/C# - Trap the button click event from html content Pin
SB 4-Feb-08 2:17
SB 4-Feb-08 2:17 

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.