Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
GeneralRe: rtf files and pagebreaks Pin
Michael Schubert3-Apr-08 5:56
Michael Schubert3-Apr-08 5:56 
GeneralSynchronizing forms Pin
N a v a n e e t h3-Apr-08 2:58
N a v a n e e t h3-Apr-08 2:58 
GeneralRe: Synchronizing forms Pin
Simon P Stevens3-Apr-08 4:37
Simon P Stevens3-Apr-08 4:37 
QuestionHow to add background to asp.net websites Pin
ajaych3-Apr-08 2:47
ajaych3-Apr-08 2:47 
GeneralRe: How to add background to asp.net websites Pin
N a v a n e e t h3-Apr-08 3:06
N a v a n e e t h3-Apr-08 3:06 
GeneralUsing controls from VS2005 in VS2003 Pin
Denver Thomas3-Apr-08 1:55
Denver Thomas3-Apr-08 1:55 
GeneralRe: Using controls from VS2005 in VS2003 Pin
N a v a n e e t h3-Apr-08 3:08
N a v a n e e t h3-Apr-08 3:08 
GeneralRe: Using controls from VS2005 in VS2003 Pin
Dave Kreskowiak3-Apr-08 4:21
mveDave Kreskowiak3-Apr-08 4:21 
GeneralRe: Using controls from VS2005 in VS2003 Pin
Pete O'Hanlon4-Apr-08 10:50
mvePete O'Hanlon4-Apr-08 10:50 
GeneralWhile loop in C# Pin
oshadhi3-Apr-08 1:18
oshadhi3-Apr-08 1:18 
GeneralRe: While loop in C# [modified] Pin
rah_sin3-Apr-08 1:23
professionalrah_sin3-Apr-08 1:23 
GeneralRe: While loop in C# Pin
Colin Angus Mackay3-Apr-08 1:24
Colin Angus Mackay3-Apr-08 1:24 
GeneralRe: While loop in C# PinPopular
Luc Pattyn3-Apr-08 1:33
sitebuilderLuc Pattyn3-Apr-08 1:33 
GeneralRe: While loop in C# Pin
Paul Conrad3-Apr-08 6:06
professionalPaul Conrad3-Apr-08 6:06 
GeneralRe: While loop in C# Pin
DaveyM693-Apr-08 7:57
professionalDaveyM693-Apr-08 7:57 
GeneralRe: While loop in C# Pin
Luc Pattyn3-Apr-08 8:32
sitebuilderLuc Pattyn3-Apr-08 8:32 
GeneralRe: While loop in C# Pin
DaveyM693-Apr-08 10:05
professionalDaveyM693-Apr-08 10:05 
GeneralRe: While loop in C# Pin
Luc Pattyn3-Apr-08 10:21
sitebuilderLuc Pattyn3-Apr-08 10:21 
GeneralInteresting problem with XML nodes Pin
Krippers3-Apr-08 1:12
Krippers3-Apr-08 1:12 
Hi,
I have a little issue with some code I'm doing. Basically I have a source xml document that looks like this:

<Paragraph>This is a <Emphasis Type="Bold">test</Emphasis> line with these:<List><Entry>Keyword alpha</Entry><Entry>Keyword Bravo</Entry></List></Paragraph>

and the problem is this, if I wanted my code to tag a specific word for example replace the word alpha with
<Emphasis Type="Italic">alpha</Emphasis>

to create this new node:
<Paragraph>This is a <Emphasis Type="Bold">test</Emphasis> line with these:<List><Entry>Keyword <Emphasis Type="Italic">alpha</Emphasis></Entry><Entry>Keyword Bravo</Entry></List></Paragraph>

is there a way of identifying a specific point in the overall line to correctly replace it, given that the word alpha could conceivably appear before or after the instance to be tagged?

At the moment I am attempting to use a function that pulls the Paragraph Node to text (innertext) and clears out everything after the required word and then starts to create a new string builder by individually pulling innerxml of each node until the patterns match.

To me this is incredibly convoluted, is there a better way? Confused | :confused:
GeneralRe: Interesting problem with XML nodes Pin
panoskatws3-Apr-08 3:12
panoskatws3-Apr-08 3:12 
GeneralThanks Pin
Krippers3-Apr-08 4:05
Krippers3-Apr-08 4:05 
GeneralRe: Interesting problem with XML nodes [modified] Pin
PIEBALDconsult3-Apr-08 7:16
mvePIEBALDconsult3-Apr-08 7:16 
GeneralRe: Interesting problem with XML nodes Pin
Krippers4-Apr-08 2:28
Krippers4-Apr-08 2:28 
GeneralRe: Interesting problem with XML nodes Pin
PIEBALDconsult5-Apr-08 7:05
mvePIEBALDconsult5-Apr-08 7:05 
Generaldrop down list selected index changed event Pin
chithra.r3-Apr-08 1:10
chithra.r3-Apr-08 1:10 

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.