Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
QuestionHow to verify existing and Installed components via code Pin
Eitan O8-Dec-08 6:09
Eitan O8-Dec-08 6:09 
QuestionUsing double quotes in a string Pin
compninja258-Dec-08 5:51
compninja258-Dec-08 5:51 
AnswerRe: Using double quotes in a string Pin
J4amieC8-Dec-08 5:57
J4amieC8-Dec-08 5:57 
GeneralRe: Using double quotes in a string Pin
Vikram A Punathambekar8-Dec-08 19:17
Vikram A Punathambekar8-Dec-08 19:17 
AnswerRe: Using double quotes in a string Pin
Deresen8-Dec-08 6:36
Deresen8-Dec-08 6:36 
GeneralRe: Using double quotes in a string Pin
Giorgi Dalakishvili8-Dec-08 7:10
mentorGiorgi Dalakishvili8-Dec-08 7:10 
AnswerRe: Using double quotes in a string Pin
cor28798-Dec-08 7:22
cor28798-Dec-08 7:22 
GeneralRe: Using double quotes in a string Pin
compninja258-Dec-08 8:59
compninja258-Dec-08 8:59 
Thank you everyone for the replies. I apologize, I'm not as familiar with Javascript yet, which is why up until now I would do more logic and coding in the C# behind pages and then just call the strings as needed. I've setup my page behind using the code above and it appears to insert the code properly, however it's still not working correctly. What I am trying to do is have the "TargetDate dynamically change to that week's upcoming friday. If I goto my asp page and put this in, it works just fine:

<script language="JavaScript">
    TargetDate = '12/12/2008 12:00:00 AM';
    BackColor = 'palegreen';
    ForeColor = 'navy';
    CountActive = true;
    CountStepper = -1;
    LeadingZero = true;
    DisplayFormat = '%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds.';
    FinishMessage = 'It is finally FRIDAY!';
</script>
<script language="JavaScript" src="countdown.js"></script>


I then rip out the first script part and use the outlined code above. This will start the countdown timer but it can't find any of the settings I have in place. If I do a view source of the page, at the very bottom of the page I now see this:

<script language="JavaScript">
    TargetDate = '12/12/2008 12:00:00 AM';
    BackColor = 'palegreen';
    ForeColor = 'navy';
    CountActive = true;
    CountStepper = -1;
    LeadingZero = true;
    DisplayFormat = '%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds.';
    FinishMessage = 'It is finally FRIDAY!';
</script>


I'm starting to wonder now if it makes more sense to just modify the "countdown.js" and put the switch statements in there to always update the date.

Again, thank you for all of your help!

"You're damned if you do, and you're damned if you dont" - Bart Simpson

QuestionIs there any solution to run PowerShell 1.0 in C# remotely? Pin
Julia10058-Dec-08 5:38
Julia10058-Dec-08 5:38 
QuestionDataset.ReadXML Pin
ndroo8828-Dec-08 4:14
ndroo8828-Dec-08 4:14 
AnswerRe: Dataset.ReadXML Pin
ndroo8829-Dec-08 2:21
ndroo8829-Dec-08 2:21 
Questioneach button click starting a new thread Pin
lane0p28-Dec-08 4:11
lane0p28-Dec-08 4:11 
GeneralRe: each button click starting a new thread Pin
Pr@teek B@h!8-Dec-08 5:49
Pr@teek B@h!8-Dec-08 5:49 
GeneralRe: each button click starting a new thread Pin
lane0p28-Dec-08 7:35
lane0p28-Dec-08 7:35 
GeneralRe: each button click starting a new thread Pin
User 66588-Dec-08 7:56
User 66588-Dec-08 7:56 
GeneralRe: each button click starting a new thread Pin
Mark Salsbery8-Dec-08 7:56
Mark Salsbery8-Dec-08 7:56 
Questionanimation Pin
vivekduneja8-Dec-08 2:48
vivekduneja8-Dec-08 2:48 
AnswerRe: animation Pin
Pete O'Hanlon8-Dec-08 2:52
mvePete O'Hanlon8-Dec-08 2:52 
AnswerRe: animation Pin
Brij8-Dec-08 2:52
mentorBrij8-Dec-08 2:52 
AnswerRe: animation Pin
_Maxxx_8-Dec-08 17:18
professional_Maxxx_8-Dec-08 17:18 
QuestionHow to monitor user actions Pin
Fadi Yoosuf8-Dec-08 2:28
Fadi Yoosuf8-Dec-08 2:28 
AnswerRe: How to monitor user actions Pin
leppie8-Dec-08 2:30
leppie8-Dec-08 2:30 
GeneralRe: How to monitor user actions Pin
Fadi Yoosuf8-Dec-08 2:38
Fadi Yoosuf8-Dec-08 2:38 
GeneralRe: How to monitor user actions Pin
Harvey Saayman8-Dec-08 2:48
Harvey Saayman8-Dec-08 2:48 
AnswerRe: How to monitor user actions Pin
Giorgi Dalakishvili8-Dec-08 2:53
mentorGiorgi Dalakishvili8-Dec-08 2:53 

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.