Click here to Skip to main content
15,919,774 members
Home / Discussions / C#
   

C#

 
GeneralRe: DateTime in C# Pin
Tauseef A24-Mar-07 3:15
Tauseef A24-Mar-07 3:15 
AnswerRe: DateTime in C# Pin
Christian Graus24-Mar-07 4:37
protectorChristian Graus24-Mar-07 4:37 
QuestionDropdown Selected Value Pin
Muhammad Faisal Khanani24-Mar-07 0:13
Muhammad Faisal Khanani24-Mar-07 0:13 
AnswerRe: Dropdown Selected Value Pin
Sandeep Akhare24-Mar-07 0:58
Sandeep Akhare24-Mar-07 0:58 
GeneralRe: Dropdown Selected Value Pin
Muhammad Faisal Khanani24-Mar-07 3:26
Muhammad Faisal Khanani24-Mar-07 3:26 
QuestionPlaying a video mpeg stream through Media Player Pin
Ghoditsttoawn23-Mar-07 23:46
Ghoditsttoawn23-Mar-07 23:46 
QuestionHow to display a human readable GUID? Pin
davidnr23-Mar-07 23:38
davidnr23-Mar-07 23:38 
AnswerRe: How to display a human readable GUID? Pin
Mark Greenwood24-Mar-07 1:42
Mark Greenwood24-Mar-07 1:42 
Well there's probably a thousand and one things you could do - first question is the web service one you code as well? The reason I ask is that if so then it seems likely that you also have access to the database as well. If so I am curious why your company does not have some facility to create a more customer readable invoice reference in the first place. If this is something you can change can't you create a table which stores a more usable reference number against the customer and the guid (for example), then you could easily create a stored proc which would insert a new row for each new invoice for each new OR existing customer which could easily create a new invoice number again,

for example

id column, invoice Guid, Customer Id, Usable Invoice Item
1, 12345678-1234-1234-1234-1234567890AB, 123, 123-00001
2, 12345678-1234-1234-1234-1234567890BB, 123, 123-00002

Or even Mark-00001 if you wanted to use the customers Name as part of the reference.

If however you don't have access then your going to come somewhat unstuck (possibly) if you try and fiddle with the Guid for the invoice. The whole point of a guid is that it's supposed to be unique in time and place - the only way to enforce that is to use the whole Guid, otherwise there is a (slim) chance that you might end up getting the same number twice. Maybe if you laid out the code or company process we could offer better suggestions.

Mark.
GeneralRe: How to display a human readable GUID? Pin
davidnr24-Mar-07 14:14
davidnr24-Mar-07 14:14 
QuestionAccessing Parallel Port Pin
Rohit Dev23-Mar-07 22:59
Rohit Dev23-Mar-07 22:59 
AnswerRe: Accessing Parallel Port Pin
Stefan Troschuetz23-Mar-07 23:21
Stefan Troschuetz23-Mar-07 23:21 
QuestionSerilization Types Pin
Saikek23-Mar-07 22:46
Saikek23-Mar-07 22:46 
AnswerRe: Serilization Types Pin
Stefan Troschuetz23-Mar-07 23:27
Stefan Troschuetz23-Mar-07 23:27 
GeneralRe: Serilization Types Pin
Saikek24-Mar-07 3:17
Saikek24-Mar-07 3:17 
AnswerRe: Serilization Types Pin
Tauseef A24-Mar-07 3:22
Tauseef A24-Mar-07 3:22 
AnswerRe: Serilization Types Pin
malharone25-Mar-07 6:58
malharone25-Mar-07 6:58 
QuestionMSDN like help Pin
Tauseef A23-Mar-07 22:28
Tauseef A23-Mar-07 22:28 
AnswerRe: MSDN like help Pin
Stefan Troschuetz23-Mar-07 22:37
Stefan Troschuetz23-Mar-07 22:37 
QuestionIntellisence Pin
Kanjinghat23-Mar-07 20:44
Kanjinghat23-Mar-07 20:44 
AnswerRe: Intellisence Pin
Stefan Troschuetz23-Mar-07 22:42
Stefan Troschuetz23-Mar-07 22:42 
AnswerRe: Intellisence Pin
Mike Hankey23-Mar-07 23:18
mveMike Hankey23-Mar-07 23:18 
QuestionSystem.Xml Pin
thecodedemon23-Mar-07 19:43
thecodedemon23-Mar-07 19:43 
AnswerRe: System.Xml Pin
Stefan Troschuetz23-Mar-07 22:50
Stefan Troschuetz23-Mar-07 22:50 
GeneralRe: System.Xml Pin
thecodedemon24-Mar-07 4:24
thecodedemon24-Mar-07 4:24 
GeneralRe: System.Xml Pin
Stefan Troschuetz24-Mar-07 4:44
Stefan Troschuetz24-Mar-07 4:44 

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.