Solved

classic asp string search

Posted on 2012-04-03
1
277 Views
Last Modified: 2012-04-04
Let assume we have string x = "http://www.yahoo.com/hello/index.asp"

I want to try classic asp saying

1. search the string x
2. if inside of string x has "hello" then do something

How can i do that in classic asp?
0
Comment
Question by:Webboy2008
1 Comment
 
LVL 15

Accepted Solution

by:
StingRaY earned 500 total points
ID: 37804469
<%
x = "http://www.yahoo.com/hello/index.asp"
If (Instr(x, "hello") > 0) Then
    // Do something here
End If
%>

Open in new window

0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now