Click here to Skip to main content
15,899,475 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to rewrite a path Pin
Ed.Poore10-Sep-07 3:05
Ed.Poore10-Sep-07 3:05 
GeneralRe: how to rewrite a path Pin
Rmesh10-Sep-07 3:19
Rmesh10-Sep-07 3:19 
GeneralRe: how to rewrite a path Pin
Ed.Poore10-Sep-07 3:28
Ed.Poore10-Sep-07 3:28 
Questionsending SMS through c# with asp.net Pin
vidyasankar10-Sep-07 2:41
vidyasankar10-Sep-07 2:41 
QuestionResponse.TransmitFile in ASP.Net and alternative Pin
adnanrafiq10-Sep-07 2:34
adnanrafiq10-Sep-07 2:34 
QuestionCan you guys help me on this thread Pin
adnanrafiq11-Sep-07 7:46
adnanrafiq11-Sep-07 7:46 
QuestionRe: Can you guys help me on this thread Pin
adnanrafiq16-Sep-07 21:47
adnanrafiq16-Sep-07 21:47 
QuestionHow to avoid repated values in random generator using javascript..? Pin
Balagurunathan S10-Sep-07 2:31
Balagurunathan S10-Sep-07 2:31 
Hi Friends...

I use the following code to generate random numbers in javascript.Once i get the random numbers,i assign them to textboxes.But i dont need any repeated values in those text boxes.I need some help to avoid those repeated numbers in my text box..i.e to avoid generation of repated numbers in my random generation...


function selectFrom(startValue, endValue)

var ran = new Array();
var i
function selectFrom(startValue, endValue)
{
for( i=1;i<=10;i++)
{

var iChoices = endValue - startValue + 1;


var iNum = Math.floor(Math.random() * iChoices + startValue);
ran[i]=iNum;

}
document.getElementById("txt1").value=ran[1]
document.getElementById("txt2").value=ran[2]
document.getElementById("txt3").value=ran[3]
document.getElementById("txt4").value=ran[4]
document.getElementById("txt5").value=ran[5]
document.getElementById("txt6").value=ran[6]
document.getElementById("txt7").value=ran[7]
document.getElementById("txt8").value=ran[8]
document.getElementById("txt9").value=ran[9]
document.getElementById("txt10").value=ran[10]
}


someone help in this regard as early as possible..


Regards,



Balaguru

AnswerRe: How to avoid repated values in random generator using javascript..? Pin
Christian Graus10-Sep-07 2:40
protectorChristian Graus10-Sep-07 2:40 
QuestionAccess to file denied Pin
oceanexplorer10-Sep-07 2:13
oceanexplorer10-Sep-07 2:13 
AnswerRe: Access to file denied Pin
Sandeep Akhare12-Sep-07 23:17
Sandeep Akhare12-Sep-07 23:17 
QuestionCompiler Error - CS5001 Pin
pavya_Cool10-Sep-07 2:11
pavya_Cool10-Sep-07 2:11 
AnswerRe: Compiler Error - CS5001 Pin
John-ph10-Sep-07 2:19
John-ph10-Sep-07 2:19 
GeneralRe: Compiler Error - CS5001 Pin
pavya_Cool10-Sep-07 2:23
pavya_Cool10-Sep-07 2:23 
GeneralRe: Compiler Error - CS5001 Pin
John-ph10-Sep-07 2:48
John-ph10-Sep-07 2:48 
GeneralRe: Compiler Error - CS5001 Pin
pavya_Cool10-Sep-07 2:51
pavya_Cool10-Sep-07 2:51 
AnswerRe: Compiler Error - CS5001 Pin
N a v a n e e t h10-Sep-07 2:26
N a v a n e e t h10-Sep-07 2:26 
GeneralRe: Compiler Error - CS5001 Pin
pavya_Cool10-Sep-07 2:32
pavya_Cool10-Sep-07 2:32 
GeneralRe: Compiler Error - CS5001 Pin
N a v a n e e t h10-Sep-07 2:37
N a v a n e e t h10-Sep-07 2:37 
GeneralRe: Compiler Error - CS5001 Pin
pavya_Cool10-Sep-07 2:40
pavya_Cool10-Sep-07 2:40 
AnswerRe: Compiler Error - CS5001 Pin
Christian Graus10-Sep-07 2:42
protectorChristian Graus10-Sep-07 2:42 
Questionasp.net global functions Pin
abglorie10-Sep-07 1:35
abglorie10-Sep-07 1:35 
AnswerRe: asp.net global functions Pin
SHatchard10-Sep-07 1:54
SHatchard10-Sep-07 1:54 
GeneralRe: asp.net global functions Pin
N a v a n e e t h10-Sep-07 1:58
N a v a n e e t h10-Sep-07 1:58 
AnswerRe: asp.net global functions Pin
N a v a n e e t h10-Sep-07 1:56
N a v a n e e t h10-Sep-07 1:56 

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.