Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 5th, 2008, 04:26 PM
Authorized User
 
Join Date: Feb 2007
Location: Binghamton, NY, USA.
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to toddw607 Send a message via Yahoo to toddw607
Default Using Regular Expressions in ASP.NET/VB.NET

Hi Everyone,
     I am trying to highlight an entire table row by using one parameter called Search_Str. Right now I can place the Search_Str within a regular expression and another program will highlight that string but I need to to highlight the entire table row that the keyword is contained in. Here are a few examples:
     1.) This will highlight only the string:
            Dim re as New RegEx (Search_Str)
     2.) This will highlight the entire table:
            Dim newTest as String
            newTest = String.Format("<[TableBody*>].*{0}.*</TableBody>", Search_Str)
            Dim re as New RegEx(newTest)

   and this is what the xml looks like that contains the table row:
Code:
             </TableBody>
      <TableBody wp:type="tablebody">
        <tr wp:type="tr_body">
        <TableCell wp:type="tablecell_body">
           <CellBodyRight wp:type="para" wp:id="1006521" wp:style="display: block; color: #000000; font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: right; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"> -1 </CellBodyRight> 
        </TableCell>
        <TableCell wp:type="tablecell_body">
           <CellBodyCaps wp:type="para" wp:id="1006523" wp:style="display: block; color: #000000; font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: uppercase; vertical-align: baseline"> </CellBodyCaps> 
        </TableCell>
        <TableCell wp:type="tablecell_body">
           <CellBodyCaps wp:type="para" wp:id="1006525" wp:style="display: block; color: #000000; font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: uppercase; vertical-align: baseline"> </CellBodyCaps> 
        </TableCell>
        <TableCell wp:type="tablecell_body">
           <dot wp:type="para" wp:id="1006527" wp:style="display: block; color: #000000; font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 7pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: -7pt; text-transform: none; vertical-align: baseline"> HOUSING, INDICATOR LIGHT </dot> 
        </TableCell>
        <TableCell wp:type="tablecell_body">
           <CellBody wp:type="para" wp:class="CellBody" wp:id="1006529" wp:style="display: block;"> 1 </CellBody> 
        </TableCell>
        <TableCell wp:type="tablecell_body">
           <CellBody wp:type="para" wp:class="CellBody" wp:id="1006531" wp:style="display: block;"> 111490001 </CellBody> 
        </TableCell>
        <TableCell wp:type="tablecell_body">
           <CellBody wp:type="para" wp:class="CellBody" wp:id="1006533" wp:style="display: block;"> LUMIN </CellBody> 
        </TableCell>
        </tr>
      </TableBody>


    Does anyone have any ideas that could get me started? TIA

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Turning a regular ASP.NET App into an AJAX ASP.Net donrafeal7 Ajax 2 August 31st, 2007 12:33 AM
Parse XML doc using VB.NET into ASP.NET page kwilliams Classic ASP XML 17 November 11th, 2005 10:42 AM
call window dialog component with asp.net/vb.net s3ng ASP.NET 1.x and 2.0 Application Design 0 June 21st, 2005 04:54 AM
.NET Regular Expressions Dave Doknjas .NET Web Services 2 August 8th, 2003 07:10 PM



All times are GMT -4. The time now is 08:25 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.