web 2.0

ASP/VBScript Replace()

ASP/VBScript Replace() Returns a string in which a specified substring has been replaced with another substring a specified number of times.

ShotDev Focus:
- Using Asp and Replace() function.

Example

asp_replace.asp


<% Option Explicit %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Response.write Replace("My Name is Weerachai Nukitram", "Weerachai", "Win")
%>
</body>
</html>

Create a asp file and save to path root-path/myasp/

Run
http://localhost/myasp/asp_replace.asp

Screenshot

ASP/VBScript & Replace()

.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.