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

C#

 
GeneralRe: method inheretance Pin
Deresen8-Dec-08 8:25
Deresen8-Dec-08 8:25 
GeneralRe: method inheretance Pin
Alan Balkany8-Dec-08 8:32
Alan Balkany8-Dec-08 8:32 
GeneralRe: method inheretance Pin
Deresen8-Dec-08 9:14
Deresen8-Dec-08 9:14 
GeneralRe: method inheretance Pin
Alan Balkany8-Dec-08 9:40
Alan Balkany8-Dec-08 9:40 
GeneralRe: method inheretance Pin
Ben Fair8-Dec-08 10:34
Ben Fair8-Dec-08 10:34 
GeneralRe: method inheretance Pin
Deresen8-Dec-08 10:51
Deresen8-Dec-08 10:51 
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 
Hey all. I know I've done this in the past and I'm not having much luck searching online because it should...just work. I'm trying to save some javascript in a code behind and then calling it in the ASP.NET page using <%= Java%>. It's a simple time ticker that I want to reset all the time to countdown to Friday. My problem now is the string isn't accepting the \ as the escape for my double quotes.

public string Java
  {
      get
      {
          string java = "<script language="\"JavaScript\"">;";
          java += "TargetDate =\" " + friday + "\"";
          java += "BackColor = \"palegreen\";";
          java += "ForeColor = \"navy\"; ";
          java += "CountActive = true;";
          java += "CountStepper = -1;";
          java += "LeadingZero = true;";
          java += "DisplayFormat = \"%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds.\";";
          java += "FinishMessage = \"It is finally FRIDAY!\"</script>;";
          return java;
      }
  }


* There might be a few extra "'s here and there as a result of copying and pasting out of VS *

every time I run the debugger, the string reads ect....

What's really weird is if I replace the double quote with a single quote, then the string acts the way I want it to, but not with the double quotes! (<script language="JavaScript"> ect...)

Has anyone ever seen this problem before? Is it possible something got screwed up with my VS 2008 install?

<div class="ForumSig">"You're damned if you do, and you're damned if you dont" - Bart Simpson</div>
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 
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 

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.