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

C#

 
GeneralRe: Text break into two part Pin
OriginalGriff29-Jan-11 21:42
mveOriginalGriff29-Jan-11 21:42 
GeneralRe: Text break into two part Pin
Not Active30-Jan-11 6:43
mentorNot Active30-Jan-11 6:43 
GeneralRe: Text break into two part Pin
OriginalGriff30-Jan-11 8:19
mveOriginalGriff30-Jan-11 8:19 
GeneralRe: Text break into two part Pin
Abhinav S30-Jan-11 17:59
Abhinav S30-Jan-11 17:59 
GeneralRe: Text break into two part Pin
OriginalGriff30-Jan-11 20:23
mveOriginalGriff30-Jan-11 20:23 
AnswerRe: Text break into two part Pin
Pete O'Hanlon30-Jan-11 9:24
mvePete O'Hanlon30-Jan-11 9:24 
AnswerRe: Text break into two part Pin
Valery Possoz31-Jan-11 12:23
professionalValery Possoz31-Jan-11 12:23 
Questionget URL from Chrome Pin
moums28-Jan-11 11:45
moums28-Jan-11 11:45 
AnswerRe: get URL from Chrome Pin
Luc Pattyn28-Jan-11 15:33
sitebuilderLuc Pattyn28-Jan-11 15:33 
GeneralRe: get URL from Chrome Pin
Not Active28-Jan-11 15:45
mentorNot Active28-Jan-11 15:45 
GeneralRe: get URL from Chrome Pin
Luc Pattyn28-Jan-11 15:56
sitebuilderLuc Pattyn28-Jan-11 15:56 
GeneralRe: get URL from Chrome Pin
Dave Kreskowiak28-Jan-11 17:42
mveDave Kreskowiak28-Jan-11 17:42 
GeneralRe: get URL from Chrome Pin
Luc Pattyn28-Jan-11 18:11
sitebuilderLuc Pattyn28-Jan-11 18:11 
GeneralRe: get URL from Chrome Pin
Pete O'Hanlon28-Jan-11 22:56
mvePete O'Hanlon28-Jan-11 22:56 
GeneralRe: get URL from Chrome Pin
Luc Pattyn29-Jan-11 1:10
sitebuilderLuc Pattyn29-Jan-11 1:10 
GeneralRe: get URL from Chrome Pin
moums29-Jan-11 9:21
moums29-Jan-11 9:21 
AnswerRe: get URL from Chrome Pin
Luc Pattyn29-Jan-11 9:43
sitebuilderLuc Pattyn29-Jan-11 9:43 
GeneralRe: get URL from Chrome Pin
moums30-Jan-11 9:35
moums30-Jan-11 9:35 
GeneralRe: get URL from Chrome Pin
dan!sh 29-Jan-11 9:36
professional dan!sh 29-Jan-11 9:36 
QuestionHow to create an HTML replacement string that has multiple quotes inside of it? [modified] Pin
turbosupramk328-Jan-11 7:32
turbosupramk328-Jan-11 7:32 
I searched and found this post, but if I understand this correctly it will not work in my situation

http://www.codeproject.com/Messages/1907458/Re-Big-html-string-How-to-store-them.aspx[^]

How can I set a long string with multiple quotes inside of it to a single string variable? I want to hard code this so I can do a string replace. Thanks for reading!

An example would be


string htmltoreplace1 = @"<img src="/_layouts/images/blank.gif" class="ms-hidden" border=0 width=1 height=1 alt="Use SHIFT+ENTER to open the menu (new window)."></A><IMG SRC="/_layouts/images/blank.gif" ALT="" BORDER=0><IMG SRC="/_layouts/images/blank.gif" BORDER=0 ALT=""></TD><TD style="position:absolute;"><IMG src="/_layouts/images/blank.gif" width=13px style="visibility: hidden" alt="">"


or

string htmltoreplace2 = @"	<TABLE width="100%" cellspacing=0 cellpadding=0 border=0><SCRIPT>
ctx = new ContextInfo();
ctx.listBaseType = 0;
ctx.listTemplate = 100;
ctx.listName = "{5B7B0FEE-FE98-4066-A4FB-F48DF04D4EBA}";
ctx.view = "{79DA2D89-70D6-4497-90D9-DDE74040EF88}";
ctx.listUrlDir = "\u002fdcs\u002fotso\u002fDSUSF\u002fISSBR\u002fdeddDIB\u002fws\u002fLists";
ctx.HttpPath = "\u002fdcs\u002fotso\u002fDSUSF\u002fISSBR\u002feDIB\u002fws\u002f_vti_bin\CS=65001";
ctx.HttpRoot = "http:\u002f\u002.comb\u002fdcs\u002fotso\u002fDSUSF\u002fISSBR\u002fddeDIB\u002fws";
ctx.imagesPath = "\u002f_layouts\u002fimages\u002f";
ctx.PortalUrl = "http:\u002f\u002.com\u002fdcs\u002f";
ctx.SendToLocationName = "";
ctx.SendToLocationUrl = "";
ctx.RecycleBinEnabled = -1;
ctx.OfficialFileName = "";
ctx.WriteSecurity = "1";
ctx.SiteTitle = "Windows Support";
ctx.ListTitle = "Windows Shift Rotation";
if (ctx.PortalUrl == "") ctx.PortalUrl = null;
ctx.displayFormUrl = "\u002fdcs\u002fotso\u002fDSUSF\u002fISSBR\u002fdeddbDIB\u002fws\u002fLists\u002fDispForm.aspx";
ctx.editFormUrl = "\u002fdcs\u002fotso\u002fDSUSF\u002fISSBR\u002feDIB\u002fws\u002fEditForm.aspx";
ctx.isWebEditorPreview = 0;
ctx.ctxId = 3;
g_ViewIdToViewCounterMap[ "{79DA2D89-70D6-4497-90D9-DDE74040EF88}" ]= 3;
ctx.CurrentUserId = 9341;
 
ctx3 = ctx;
</SCRIPT>"


modified on Friday, January 28, 2011 1:39 PM

AnswerRe: How to create an HTML replacement string that has multiple quotes inside of it? Pin
TheGreatAndPowerfulOz28-Jan-11 8:30
TheGreatAndPowerfulOz28-Jan-11 8:30 
AnswerRe: How to create an HTML replacement string that has multiple quotes inside of it? Pin
OriginalGriff28-Jan-11 8:37
mveOriginalGriff28-Jan-11 8:37 
GeneralRe: How to create an HTML replacement string that has multiple quotes inside of it? Pin
turbosupramk328-Jan-11 11:13
turbosupramk328-Jan-11 11:13 
Questionhow to customize the Form class? Pin
leeoze27-Jan-11 21:07
leeoze27-Jan-11 21:07 
AnswerRe: how to customize the Form class? Pin
Pete O'Hanlon27-Jan-11 22:21
mvePete O'Hanlon27-Jan-11 22:21 

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.