ASP Replace Function

web

 
  Sponsored Links


The ASP Replace() function is used to replace sub-strings found within a string.

Replace Function Arguments

String to be searched
Sub-string to be searched for
String that will replace the sub-string

ASP Coding for Replace Function

<%

sTxtString = "How is John?"
sTxtString = Replace(sTxtString,"John","Tammy")

Response.Write sTxtString

%>


Result

How is Tammy?
   
 
web

ReaLife WebDesigns / 310.371.3275
We appreciate having the opportunity to contribute to the success of your business!

© 1999-2010 ReaLife WebDesigns. All rights reserved. site map | terms of use