?
Solved

Replace Statements - Double quotes

Posted on 2006-06-21
2
Medium Priority
?
224 Views
Last Modified: 2012-05-05
Hey, I'm sure the answer to this is somewhere already, but my account was just suspended (haven't answered any in a while) so I can see solutions.  But I still have points to give away!  I'm wondering what the easiest way to replace two html lines of buttons are.  I'm scraping a web page (my own) to send in an email and I want everything but the buttons to go along.  But with all the double quotes and stuff in the html, a simple replace doesn't work.  How should I do this?

What doesn't work:

strOutput = Replace(strOutput, "<input type="submit" name="btnPrint" value="Print" id="btnPrint" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'" />", "")
       
strOutput = Replace(strOutput, "<input type="submit" name="btnCancel" value="Cancel" id="btnCancel" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'" />", "")


Thanks in advance for your help!    
0
Comment
Question by:brianpsmith81
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 16954371
You use two quotes together (""):

    strOutput = Replace(strOutput, "<input type=""submit"" name=""btnPrint"" value=""Print"" id=""btnPrint"" class=""btn"" onmouseover=""this.className='btn btnhov'"" onmouseout=""this.className='btn'"" />", "")
0
 
LVL 3

Author Comment

by:brianpsmith81
ID: 16954776
Oh yeah, I should've known that!  Thanks! :-)
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses
Course of the Month11 days, 9 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question