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

C#

 
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? PinPopular
Pete O'Hanlon27-Jan-11 22:21
mvePete O'Hanlon27-Jan-11 22:21 
AnswerRe: how to customize the Form class? Pin
nlarson1128-Jan-11 8:36
nlarson1128-Jan-11 8:36 
QuestionFree SMS API Pin
Anil Kumar.Arvapalli27-Jan-11 20:27
Anil Kumar.Arvapalli27-Jan-11 20:27 
AnswerRe: Free SMS API Pin
Richard MacCutchan28-Jan-11 1:36
mveRichard MacCutchan28-Jan-11 1:36 
QuestionClearing IE browsing history Pin
rakeshs31227-Jan-11 20:04
rakeshs31227-Jan-11 20:04 
AnswerRe: Clearing IE browsing history Pin
Not Active27-Jan-11 20:17
mentorNot Active27-Jan-11 20:17 
AnswerReason for my vote of one: Pin
OriginalGriff27-Jan-11 20:24
mveOriginalGriff27-Jan-11 20:24 
QuestionWorking with native dll (dynamic string array and double indirection) Pin
csrss27-Jan-11 13:15
csrss27-Jan-11 13:15 
AnswerRe: Working with native dll (dynamic string array and double indirection) Pin
csrss27-Jan-11 14:39
csrss27-Jan-11 14:39 
QuestionBreaking Up Classes PinPopular
Richard Andrew x6427-Jan-11 11:40
professionalRichard Andrew x6427-Jan-11 11:40 
AnswerRe: Breaking Up Classes Pin
TheGreatAndPowerfulOz27-Jan-11 11:49
TheGreatAndPowerfulOz27-Jan-11 11:49 
GeneralRe: Breaking Up Classes Pin
Richard Andrew x6427-Jan-11 11:53
professionalRichard Andrew x6427-Jan-11 11:53 
GeneralRe: Breaking Up Classes Pin
TheGreatAndPowerfulOz27-Jan-11 12:36
TheGreatAndPowerfulOz27-Jan-11 12:36 

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.