Click here to Skip to main content
15,910,009 members
Home / Discussions / C#
   

C#

 
GeneralRe: sensing data passed through lan card of a pc Pin
Aisha sharma7-Jun-11 19:28
Aisha sharma7-Jun-11 19:28 
GeneralRe: sensing data passed through lan card of a pc Pin
jschell8-Jun-11 8:57
jschell8-Jun-11 8:57 
QuestionIs there any way to prioratize a task in TPL. Pin
prasadbuddhika6-Jun-11 19:43
prasadbuddhika6-Jun-11 19:43 
AnswerRe: Is there any way to prioratize a task in TPL. Pin
Dave Kreskowiak7-Jun-11 1:35
mveDave Kreskowiak7-Jun-11 1:35 
QuestionCompare decimals Pin
vanikanc6-Jun-11 10:12
vanikanc6-Jun-11 10:12 
QuestionRe: Compare decimals Pin
Mark Salsbery6-Jun-11 10:34
Mark Salsbery6-Jun-11 10:34 
AnswerRe: Compare decimals Pin
vanikanc6-Jun-11 10:37
vanikanc6-Jun-11 10:37 
AnswerRe: Compare decimals Pin
AspDotNetDev6-Jun-11 10:35
protectorAspDotNetDev6-Jun-11 10:35 
TryParse will return a boolean... the values will be stored in d1 and d2. You can do something like this:
C#
string strd1 = "5", strd2 = "6";
Decimal d1, d2;
if (Decimal.TryParse(strd1, out d1) && Decimal.TryParse(strd2, out d2))
{
    if (d1 < d2)
    {
        // Do something...
    }
}

However, if the value stored in the view state is not a string, you may only have to cast rather than parse:
C#
Decimal startVal = 55;
ViewState["myVal"] = startVal;
Decimal val = (Decimal)ViewState["myVal"];


GeneralRe: Compare decimals Pin
vanikanc10-Jun-11 10:56
vanikanc10-Jun-11 10:56 
AnswerRe: Compare decimals PinPopular
PIEBALDconsult6-Jun-11 17:18
mvePIEBALDconsult6-Jun-11 17:18 
GeneralRe: Compare decimals Pin
Roger Wright6-Jun-11 20:06
professionalRoger Wright6-Jun-11 20:06 
Question.NET Remoting DHCP Problem Pin
Member 24160216-Jun-11 6:05
Member 24160216-Jun-11 6:05 
AnswerRe: .NET Remoting DHCP Problem Pin
Dave Kreskowiak6-Jun-11 6:10
mveDave Kreskowiak6-Jun-11 6:10 
AnswerRe: .NET Remoting DHCP Problem Pin
jschell6-Jun-11 9:13
jschell6-Jun-11 9:13 
GeneralRe: .NET Remoting DHCP Problem Pin
Member 24160216-Jun-11 23:11
Member 24160216-Jun-11 23:11 
GeneralRe: .NET Remoting DHCP Problem Pin
BobJanova7-Jun-11 0:28
BobJanova7-Jun-11 0:28 
GeneralRe: .NET Remoting DHCP Problem Pin
jschell7-Jun-11 9:58
jschell7-Jun-11 9:58 
QuestionOpenFileDialog: Files of Type doesn't respond [modified] Pin
Danzy836-Jun-11 3:38
Danzy836-Jun-11 3:38 
AnswerRe: OpenFileDialog: Files of Type doesn't respond Pin
Dave Kreskowiak6-Jun-11 3:45
mveDave Kreskowiak6-Jun-11 3:45 
AnswerRe: OpenFileDialog: Files of Type doesn't respond Pin
Eddy Vluggen6-Jun-11 3:47
professionalEddy Vluggen6-Jun-11 3:47 
AnswerRe: OpenFileDialog: Files of Type doesn't respond Pin
Mario Majčica6-Jun-11 3:48
professionalMario Majčica6-Jun-11 3:48 
QuestionAdvanced Debugging Techiniques Pin
AmbiguousName6-Jun-11 1:47
AmbiguousName6-Jun-11 1:47 
JokeRe: Advanced Debugging Techiniques Pin
BobJanova6-Jun-11 3:00
BobJanova6-Jun-11 3:00 
GeneralRe: Advanced Debugging Techiniques Pin
Trollslayer6-Jun-11 12:54
mentorTrollslayer6-Jun-11 12:54 
GeneralRe: Advanced Debugging Techiniques Pin
BobJanova7-Jun-11 0:25
BobJanova7-Jun-11 0:25 

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.