Click here to Skip to main content
15,908,115 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Tiff image and asp.net in a webpage?? Pin
Christian Graus20-Oct-06 1:01
protectorChristian Graus20-Oct-06 1:01 
GeneralRe: Tiff image and asp.net in a webpage?? Pin
Tridip Bhattacharjee26-Oct-06 18:59
professionalTridip Bhattacharjee26-Oct-06 18:59 
QuestionMissing javascript Pin
Brady Kelly19-Oct-06 23:27
Brady Kelly19-Oct-06 23:27 
AnswerRe: Missing javascript Pin
ednrgc20-Oct-06 8:17
ednrgc20-Oct-06 8:17 
QuestionHow to find text in more than one line using Regex Pin
Suman Singh19-Oct-06 23:24
professionalSuman Singh19-Oct-06 23:24 
AnswerRe: How to find text in more than one line using Regex Pin
Christian Graus20-Oct-06 1:02
protectorChristian Graus20-Oct-06 1:02 
AnswerRe: How to find text in more than one line using Regex Pin
ednrgc20-Oct-06 8:24
ednrgc20-Oct-06 8:24 
GeneralRe: How to find text in more than one line using Regex Pin
Suman Singh23-Oct-06 0:53
professionalSuman Singh23-Oct-06 0:53 
Many Thanks for your reply.

I tried your suggestion but no avail...

Here is the HTML code from a file (categories.html), I a reading in a variable st :

<br />
<TABLE width="100%" border="0" align="center" cellpadding="0" cellSpacing=0 >
<TR valign="top" >
{=BeginCatRecords=}<TD width="45%" align='center' style='border:1px #F4EED4 solid;'><Table align='center' border="0"><tr><td align='center' style="padding-top:15px;"><a href="{=CatLink=}"><IMG SRC="images/category/{=CatImg=}" border="0" width="150"></a><BR><a href="{=CatLink=}" class='catlinks'><strong>{=CatName=}</a></strong></td></tr><tr><td><table width="90%" border='0' align="center" cellpadding="0" cellSpacing=0><tr><td align='left'>{=CatDesc=}</td></tr></table></td></tr></table></td><td width='5%'>&nbsp;</td>{=EndCatRecords=}
</TR>
<TR><TD colspan='2'>&nbsp;</TD></TR>
</TABLE>

In this file, from {=BeginCatRecords=} to {=EndCatRecords=} is written in one line.. and it is working fine...

But if I split it in multiline like :

{=BeginCatRecords=}
<TD width="45%" align='center' style='border:1px #F4EED4 solid;'>
<Table align='center' border="0">
<tr><td align='center' style="padding-top:15px;"><a href="{=CatLink=}"><IMG SRC="images/category/{=CatImg=}" border="0" width="150"></a><BR><a href="{=CatLink=}" class='catlinks'><strong>{=CatName=}</a></strong></td></tr><tr><td><table width="90%" border='0' align="center" cellpadding="0" cellSpacing=0><tr><td align='left'>{=CatDesc=}</td></tr></table></td></tr></table></td><td width='5%'>&nbsp;</td>
{=EndCatRecords=}

It stops working...

Below is the code I am using to match the string :

string NavMatch = null;
pattern = @"{=BeginCatRecords=}.*?{=EndCatRecords=}";
Match MatchTop = Regex.Match(st, pattern, RegexOptions.Multiline);
NavMatch = MatchTop.ToString();


Please help..

Suman Singh
Questionvalidation controls Pin
TheEagle19-Oct-06 22:37
TheEagle19-Oct-06 22:37 
AnswerRe: validation controls Pin
ednrgc20-Oct-06 2:01
ednrgc20-Oct-06 2:01 
GeneralRe: validation controls Pin
TheEagle20-Oct-06 10:00
TheEagle20-Oct-06 10:00 
GeneralRe: validation controls Pin
ednrgc23-Oct-06 2:33
ednrgc23-Oct-06 2:33 
QuestionHow Use OutLook Activex Plugin Pin
Balavardhan19-Oct-06 22:23
Balavardhan19-Oct-06 22:23 
Questionconnection string Pin
saqib8219-Oct-06 20:41
saqib8219-Oct-06 20:41 
AnswerRe: connection string Pin
Edbert P19-Oct-06 21:14
Edbert P19-Oct-06 21:14 
GeneralRe: connection string Pin
saqib8219-Oct-06 22:59
saqib8219-Oct-06 22:59 
GeneralRe: connection string Pin
Edbert P22-Oct-06 13:01
Edbert P22-Oct-06 13:01 
AnswerRe: connection string Pin
ednrgc23-Oct-06 2:43
ednrgc23-Oct-06 2:43 
QuestionMax Connection Pool size has reached Pin
King Shez19-Oct-06 20:35
King Shez19-Oct-06 20:35 
AnswerRe: Max Connection Pool size has reached Pin
Guffa19-Oct-06 20:42
Guffa19-Oct-06 20:42 
GeneralRe: Max Connection Pool size has reached Pin
King Shez19-Oct-06 21:08
King Shez19-Oct-06 21:08 
AnswerRe: Max Connection Pool size has reached Pin
Guffa19-Oct-06 22:31
Guffa19-Oct-06 22:31 
AnswerRe: Max Connection Pool size has reached Pin
seee sharp19-Oct-06 21:29
seee sharp19-Oct-06 21:29 
Questionautomatic update database using schedule Pin
dhatchu19-Oct-06 19:51
dhatchu19-Oct-06 19:51 
AnswerRe: automatic update database using schedule Pin
Guffa19-Oct-06 20:13
Guffa19-Oct-06 20:13 

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.