Click here to Skip to main content
15,897,273 members
Home / Discussions / C#
   

C#

 
AnswerRe: PropertyGrid Pin
leppie30-Jun-08 20:55
leppie30-Jun-08 20:55 
QuestionRe: PropertyGrid [modified] Pin
KBou30-Jun-08 21:05
KBou30-Jun-08 21:05 
AnswerRe: PropertyGrid Pin
stancrm30-Jun-08 22:39
stancrm30-Jun-08 22:39 
QuestionRe: PropertyGrid Pin
KBou30-Jun-08 22:49
KBou30-Jun-08 22:49 
AnswerRe: PropertyGrid Pin
leppie1-Jul-08 1:08
leppie1-Jul-08 1:08 
GeneralRe: PropertyGrid Pin
KBou1-Jul-08 1:26
KBou1-Jul-08 1:26 
GeneralRe: PropertyGrid Pin
leppie1-Jul-08 3:35
leppie1-Jul-08 3:35 
QuestionQuery about generating random but unique keys of 6 digits? Pin
Rocky#30-Jun-08 20:47
Rocky#30-Jun-08 20:47 
hi every buddy,

I'm working in an ASP .NET project and in that I need to generate a unique key which is to be used instead of the primary key in the database of 6 digits and it should be random in nature yet it should be unique ofcourse. Actually the client doesnt want to issue numbers such as 000001, 000002... he wants it to be like 872731. The problem in my mind is that how are we gonna generate these unique but random numbers, coz whats bugging me is: WE would have to check for the keys already taken and 1) its v inefficient and 2) it could have problems with concurrency.

So I really need to guidelines from you people, I would definately appreciate this. Thank you.

Rocky

Success is a ladder which you can't climb with your hands in your pockets.

AnswerRe: Query about generating random but unique keys of 6 digits? Pin
leppie30-Jun-08 20:54
leppie30-Jun-08 20:54 
GeneralRe: Query about generating random but unique keys of 6 digits? Pin
Rocky#30-Jun-08 21:10
Rocky#30-Jun-08 21:10 
AnswerRe: Query about generating random but unique keys of 6 digits? Pin
N a v a n e e t h30-Jun-08 21:05
N a v a n e e t h30-Jun-08 21:05 
GeneralRe: Query about generating random but unique keys of 6 digits? Pin
Rocky#30-Jun-08 21:15
Rocky#30-Jun-08 21:15 
GeneralRe: Query about generating random but unique keys of 6 digits? Pin
N a v a n e e t h30-Jun-08 21:18
N a v a n e e t h30-Jun-08 21:18 
GeneralRe: Query about generating random but unique keys of 6 digits? Pin
Rocky#30-Jun-08 21:36
Rocky#30-Jun-08 21:36 
GeneralRe: Query about generating random but unique keys of 6 digits? Pin
leppie1-Jul-08 1:17
leppie1-Jul-08 1:17 
GeneralRe: Query about generating random but unique keys of 6 digits? Pin
Rocky#1-Jul-08 1:41
Rocky#1-Jul-08 1:41 
AnswerRe: Query about generating random but unique keys of 6 digits? Pin
Alan Balkany1-Jul-08 3:40
Alan Balkany1-Jul-08 3:40 
QuestionPayment gateway...In C#.Net New developer in this service help ... Pin
Niraj_Silver30-Jun-08 20:37
Niraj_Silver30-Jun-08 20:37 
AnswerRe: Payment gateway...In C#.Net New developer in this service help ... Pin
leppie30-Jun-08 20:51
leppie30-Jun-08 20:51 
AnswerRe: Payment gateway...In C#.Net New developer in this service help ... Pin
Christian Graus30-Jun-08 22:00
protectorChristian Graus30-Jun-08 22:00 
Questionread file from bottom Pin
vineeshV30-Jun-08 19:12
vineeshV30-Jun-08 19:12 
AnswerRe: read file from bottom Pin
C1AllenS30-Jun-08 19:52
C1AllenS30-Jun-08 19:52 
GeneralRe: read file from bottom Pin
Atif Ali Bhatti30-Jun-08 20:49
Atif Ali Bhatti30-Jun-08 20:49 
GeneralRe: read file from bottom Pin
vineeshV30-Jun-08 22:42
vineeshV30-Jun-08 22:42 
Questionabout tabpage and forms in tabpage!!! Pin
ibrahim yilmaz30-Jun-08 18:24
ibrahim yilmaz30-Jun-08 18:24 

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.