o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Search String @ vb.net -

hello

i would like to ask some help in searching and getting string at vb.net..
can you show me an example?

example:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
var now=new Date,t1=t2=t3=t4=t5=t6=t7=t8=t9=t10=t11=t12=0,cc='',ylp='';t1=now.getTime();
</script>
<script type="text/javascript">var sid=2716149</script>
<script language=javascript><!--
lck='9lc4hb8d/o',sss=1213628688,ylp='p.gif?t=1213628688&_ylp=A0S00nEQgVZIB24Bgw31cSkA',_lcs='Victorias%2C%20Western%20Visayas%20PH',crumb='ffcfa0759f01aee68c1f220de11df0b2,1213628688,4CEUNSvcv5c';
--></script><script type="text/javascript">
_lcs = decodeURIComponent(_lcs);
var YAHOO=window.YAHOO||{};YAHOO.namespace=function(ns){if(!ns||!ns.length){return null;}var _2=ns.split(".");var _3=YAHOO;for(var i=(_2[0]=="YAHOO")?1:0;i<_2.length;++i){_3[_2[i]]=_3[_2[i]]||{};_3=_3[_2[i]];}return _3;};YAHOO.log=function(_5,_6,_7){var l=YAHOO.widget.Logger;if(l&&l.log){return l.log(_5,_6,_7);}else{return false;}};YAHOO.extend=function(_9,_10){var f=function(){};f.prototype=_10.prototype;_9.prototype=new f();_9.prototype.constructor=_9;_9.superclass=_10.prototype;if(_10.prototype.constructor==Object.prototype.constructor){_10.prototype.constructor=_10;}};YAHOO.namespace("util");YAHOO.namespace("widget");YAHOO.namespace("example");
YAHOO.namespace("Fd");
YAHOO.namespace("Fp");
YAHOO.Fp.nScreenWidth = (screen && typeof(screen.availWidth)=='number') ? screen.availWidth : false;
YAHOO.Fp.bNarrow = (YAHOO.Fp.nScreenWidth ? (YAHOO.Fp.nScreenWidth<1024 ? 1 : 0) : -1);
YAHOO.Fp.d = document;
YAHOO.Fp.$ = function(id){
return (typeof(id)=='string') ? YAHOO.Fp.d.getElementById(id) : false;
};
YAHOO.Fp._hostname=location.hostname;
YAHOO.Fp.beacon = function(sUrl, clearUlt, useYlh){
if(sUrl.indexOf('http')<0 && YAHOO.Fp._ylh!=''){
if(clearUlt){
YAHOO.cookie.set("D","","-1","/","yahoo.com");
}
sUrl=((clearUlt||useYlh)&&YLH)? '/'+YLH+'/'+ sUrl : sUrl;
}
var oImage = new Image();
oImage.src = sUrl+'/*-http://'+YAHOO.Fp._hostname+'/iv.gif?t=' + new Date().getTime();
setTimeout(function(){oImage = null;}, 1e4);
};
YAHOO.Fp.becon=YAHOO.Fp.beacon;
YAHOO.cookie = {
get : function(n){
var v = '',
c = ' ' + document.cookie + ';',
s = c.indexOf((' ' + n + '='));
if (s >= 0) {
s += n.length + 2;
v = unescape(c.substring(s, c.indexOf(';', s)));
}
return v;
},
set : function(n,v){
var a=arguments,al=a.length;
document.cookie = n + "=" + v +
((al>2&&a[2]!="") ? ";expires=" + (typeof(a[2])=="object" ? a[2].toGMTString() : (new Date(a[2] * 1000)).toGMTString()) : "") + ";path=" + ((al>3&&a[3]!="") ? a[3] : "/") +
";domain="  + ((al>4&&a[4]!="") ? a[4] : (YAHOO.Fp._hostname && YAHOO.Fp._hostname == "us.yahoo.com") ? "us.yahoo.com" : "www.yahoo.com");
},
checksub : function(sCookie,s){
var aParts = sCookie.split('&'),nParts = aParts.length,aKeyVal;
if (nParts==1) {
return sCookie.indexOf(s);
} else {
for(var i=0; i<nParts; i++){
aKeyVal = aParts[i].split('=');
if(aKeyVal[0]==s){
return i;
}
}
}
return -1;
},
getsub : function(n,s){
var sCookie = this.get(n);
var nExists = this.checksub(sCookie,s);
if (nExists>-1) {
return sCookie.split('&')[nExists].split('=')[1];
} else if (sCookie.indexOf(s)>0) {
return sCookie.split('=')[1];
}
return '';
},
setsub : function(n,s,v){
var sCookie = this.get(n),a=arguments,al=a.length;
var aParts = sCookie.split('&');
var nExists = this.checksub(sCookie,s);
if (sCookie=='') {
sNewVal=(s+'='+v).toString();
} else {
if(nExists==-1){nExists=aParts.length;}
aParts[nExists]=s+'='+v;
sNewVal = aParts.join('&');
}
return this.set(n,sNewVal,(a[3]||''),(a[4]||'/'),(a[5]||''));
}
}
YAHOO.Fp.changePageSize = function(bCheck){
if((location.search.indexOf('rs=')!=1 && location.pathname.indexOf('cgi')<0) || !bCheck){
if(bCheck){
var bcn=new Image;
bcn.src='http://www.yahoo.com/'+(ylp?ylp:'p.gif')+'&igpv=1';
}
location.replace('http://'+location.hostname+location.pathname+(bCheck ? '?rs=1' : ''));
}
}
YAHOO.Fp.sPhpFsCookie="dl";YAHOO.Fp.sFsCookie = YAHOO.cookie.get("FPS");
if(YAHOO.Fp.sFsCookie.indexOf("t")!=0 && YAHOO.Fp.bNarrow!=-1){
YAHOO.cookie.set("FPS",(YAHOO.Fp.bNarrow ? "ds" : "dl"),400*3600000);
if(YAHOO.Fp.bNarrow==1){
YAHOO.Fp.changePageSize(1);
}
}else if(YAHOO.Fp.sPhpFsCookie != YAHOO.Fp.sFsCookie){
YAHOO.Fp.changePageSize(1);
}
YAHOO.Fp.togglePageSize = function(sSize){
YAHOO.cookie.set("FPS",sSize,400*3600000);
YAHOO.Fp.changePageSize(0);
}
YAHOO.Fp.nPageSize = 0;
YAHOO.Fp._ie=YAHOO.Fp._ie7=YAHOO.Fp._ie55=0;
YAHOO.Fp._ff=1;
YAHOO.Fp._ffv=parseFloat("2.0.0",10);
YAHOO.Fp._ns=0;
YAHOO.Fp._nsv=parseFloat("0",10);
YAHOO.Fp._sf=0;
YAHOO.Fp._sfv=parseFloat("0",10);
YAHOO.Fp._op=0;
YAHOO.Fp._mac=0;
YAHOO.Fp._ylh = typeof(YLH)!='undefined'?YLH+'/':'';
</script>
<!--[if lt IE 6]><script type="text/javascript">YAHOO.Fp._ie55=1;</script><![endif]-->
<!--[if IE]><script type="text/javascript">YAHOO.Fp._ie=1;</script><![endif]-->
<!--[if IE 7]><script type="text/javascript">YAHOO.Fp._ie7=1;</script><![endif]-->
<script type="text/javascript">
YAHOO.Fp.Flash = function () {
var o = {installed:0, version:[]}, description, oActiveX, nMajor, nMinor;
if (navigator.plugins && typeof navigator.plugins["Shockwave Flash"] == "object") {
o.pluginType = "npapi";
description = navigator.plugins["Shockwave Flash"].description;
if (typeof description != "undefined") {
description = description.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
nMajor = parseInt(description.replace(/^(.*)\..*$/, "$1"), 10);
nMinor = /r/.test(description) ? parseInt(description.replace(/^.*r(.*)$/, "$1"), 10) : 0;
o.version = [nMajor, nMinor];
o.installed = 1;
}
}
else if (window.ActiveXObject) {
o.pluginType = "ax";
try {
oActiveX = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
}
catch (e) {
try {
oActiveX = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
o.version = [6, 0];
o.installed = 1;
oActiveX.AllowScriptAccess = "always";
}
catch (e) {
if (o.version[0] == 6) {o.installed=1; return; }
}
try {
oActiveX = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
}
catch (e) {
}
}
if (typeof oActiveX == "object") {
description = oActiveX.GetVariable("$version");
if (typeof description != "undefined") {
description = description.replace(/^\S+\s+(.*)$/, "$1").split(",");
o.version = [parseInt(description[0], 10), parseInt(description[2], 10)];
o.installed = 1;
}
}
}
return o;
}();
YAHOO.Fd.Video = {showVideo : function(){ return true;} };
if(YAHOO.Fp._op==1){
YAHOO.Fp.isVideoDisable=1;
}
</script>
<script type="text/javascript">
var b,dt,l='',n='0',r,s,y;
y=' '+document.cookie+';';
if ((b=y.indexOf(' Y=v'))>=0) {
y=y.substring(b,y.indexOf(';',b))+'&';
if ((b=y.indexOf('l='))>=0) {
l=y.substring(b+2,y.indexOf('&',b));
if((b=y.indexOf('n='))>=0)n=y.substring(b+2,y.indexOf('&',b));
}
}
dt=new Date();
s=Math.round(dt.getTime()/1000);
r=Math.round(parseInt(n,32)%1021);
if (lck!=l) {
document.write('<meta http-equiv="Expires" content="-1">');
if (location.search.indexOf('r'+r+'=')!=1) {
location.replace('http://'+location.hostname+location.pathname+'?r'+r+'='+s);
}
}
var ver="501";
var frcode="yfp-t-501";function err(a,b,c) {
var img=new Image;
img.src='http://srd.yahoo.com/hp5-v'+ver+'-err/'+escape(a)+','+escape(b)+','+escape(c)+'/*1';
return true;
}
window.onerror=err;
window.onbeforeunload=function(){
var img=new Image;
now=new Date;
t6=now.getTime();
img.src='http://www.yahoo.com/'+(ylp?ylp:'p.gif?t=0')+cc+'&tid='+ver+'&ni='+document.images.length+'&sss='+sss+'&t1='+t1+'&d1='+(t2-t1)+'&d2='+(t3-t1)+'&d3='+(t4-t1)+'&d4='+(t5-t1)+'&d5='+(t6-t1) +'&d6='+(t7-t1)+'&d7='+(t8-t1)+'&d8='+(t9-t1)+'&d9='+(t10-t1)+'&d10='+(t11-t1)+'&d11='+(t12-t1);
}

</script>
<title>Yahoo!</title>
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l r (cz 1 lz 1 nz 1 oz 1 vz 1) gen true for "http://www.yahoo.com" r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l r (n 0 s 0 v 0 l 0) gen true for "http://www.yahoo.com" r (n 0 s 0 v 0 l 0))'>
<script language=javascript>var YLH='_ylh=X3oDMTFkYTYxMXF1BF9TAzI3MTYxNDkEcGlkAzEyMTM2MjgyMjYEdGVzdAMwBHRtcGwDaW5kZXgtbA--'; var PID='1213628226'; document.write('<base href="http://www.yahoo.com/" target=_top>');</script> <noscript><base href="http://www.yahoo.com/_ylh=X3oDMTFkYTYxMXF1BF9TAzI3MTYxNDkEcGlkAzEyMTM2MjgyMjYEdGVzdAMwBHRtcGwDaW5kZXgtbA--/" target=_top></noscript>
<script type="text/javascript">
YAHOO.Fp.oFlag = {};
YAHOO.Fp.use_navbar_bt=2;
YAHOO.Fp.oFlag.use_search_bt22=1;
</script>
<style type="text/css">
body{font:13px arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}
table{font-size:inherit;font:100%;}
select,input,textarea{font:99% arial,helvetica,clean,sans-serif;}
pre,code{font:115% monospace;*font-size:100%;}
body *{line-height:1.22em;}

.btn-more-2, .hd li.on em, div.hd li.sparkle a, .hd, #mastheadbd .top, #mastheadbd, #doors li a, #today .ft li.on a, #mastheadbd .mh_footer, #mastheadft{
  background-image:url(http://l.yimg.com/a/i/ww/thm/1/grd-1px_1.4.gif);
  background-repeat:repeat-x;
}
div.minimantle, #minimantle, #sizetoggle, #trough ul, #pa{
  background-image:url(http://l.yimg.com/a/i/ww/thm/1/grd-4px_1.1.gif);
  background-repeat:repeat-x;
}
.themedborder{
  border-color: #b0bec7;
and i would like to save in my textbox the "oImage = new Image" in the above code.

tnx..

 

Search for Exact String in Target String -
Hi, I am new to VB. I want to know if a built in function exists to search for exact string in the target string. InStr works fine but it some part of search string matches in target string it gives the position of the same. However, i want to search for whole search string in ta


search question -
I have a small database, now I want to write a small seacrh for it , I don't have problem with single field search but when I want to search all fields , what is the best way to do it , I know this command "SELECT * from table where field1 like 'string' or field2 like 'st


ADO Help.... -
ok hello this is my code for a search in a prog i am creating but i keep getting a syntax error with the FROM clause.. help private sub cmdsearch_Click() Dim search As String Dim band As String Dim album As String Dim genre As String Dim cdtype As String Dim relea


[REVISITED] Search Treenode -
Hi guys, Just a simple question, I have two parent nodes and child nodes with those parents. I have a textbox (for the search string) and a command button to execute that search string. What I am looking to do is search for the search string within the nodes. If a match then to


Search within the html body of a file -
I have a folder of knowledge base items, all in HTML and placed in sub folders by category. I am trying to get code which will open each folder and then each file within the folder to search for a given string. basically I want a simple form which requests a search string and has a l


Search on XP vs. Win2000 -
I was looking at some .asp code on my XP box that runs on our web server and I suddenly got the desire to find any other file on the server that contains a particular string. So I bring up the Search box (with the cute but entirely unnecessary little dog), type in *.asp for the files t


RESOLVED:Find and Outlining -
Hello ! In Visual Studio when i search in the code and the search string is within a function that is collapsed the search will not return a result ! This is stupid ! Wouldn't it be better if the search would search also within collapsed functions ? And also what if the search string


Finding A String, Within a string.. replace & action -
Hey, i have a SET LENGTH string that i need to find. But the string that i have to find can be anything. the string is like: &#########& it will ALWAYS be 11 letters long.and always have a & at the beginning and end of the string. the ### will be replaced by letters


Building a Search engine -
I'm building a prog to extract data from a mdb file. The prog is complete but I need a better search engine. Currently I only know how to search for an exact (string) match. Q: how do you search for partial string match's? ex: I have a field in the database with the string "Cel


how open a web search -
i can easily open a google URL to search for a desired string by parsing the address. but: how can i search the web with a user's default search engine? i am trying to avoid 'terms of service' complications associated with favoring one particular search provider. for examp


ADO, SQL and Boolean -
This is my code for the search now. The problem is when i only use 1 of the 'IF' commands it works fine but when i use all of em. i think i should change the the search string after the first 'IF' so it says something like this; txtband.Text & "')" If Len(alb


[2005] Efficiently searching files containing a certain string/pattern -
I want to search through files to see whether or not they contain a certain string/pattern. I want to do this efficiently and it must be able to handle large file. So I want to read the files until I find my string then proceed to the next. the string/pattern to search for can var


Why doseint ADO support Whole word search -
anyone know? e.g. text: "this is a sample text." Search string "ample" it will record a hit... there is no way to get it to only search whole words... (where there will be no hit recoreded for the above search string) i.e. whole word search. an


search listbox for string of text. -
how would i search a listbox for a string of text? when i click on search it will search the list box for the text that i have entered into textbox1. the listbox would contain a row like this of text.. 192.168.1.1 success 12ms i want to beable to search the listbox so


Search 2 items in Listview -
As far as i know, you can find an item in the listview if you compare it with only ONE search string. I was wondering if its possible to search with TWO search strings or simply to say TWO search criterias in listview.


Searching List Box for Accented Characters -
I have a list box populated with 15,000 items. Some of them use accented characters. Is there a simple way to search these terms using unaccented characters? For example, a search on 'Tete a Tete' would match 'Tête à Tête'. I'm using the Windows API function SendMessageByString to p


How best to handle a search for character in string -
Hello gang, I still consider myself a newbie and am having a hard time trying to figure out which is the best way to search a string to see whether it may or may not have a certain character in it. Basically I have a combobox that contains a list of names. The format for the lis


keyword search listbox for string -
Hi, How can I search a listbox for a certain item, using keywords? So the user doesn't have to search for the EXACT string to get a result?


Back Button Question... -
Hello Again! I have a search that is built over a couple of pages. The first step lists the fields that are available to search, the second page allows the user to enter/select the criteria and the third page is the results with paging implemented. That all works great except for


Anyone done such before -
hi, has anyone produced a VB program (connected to a database such as MS Access .mdb file) that features a search facility?? a search facility in VB that would search specific fields ir records of text in the database and come back with results (text/string search). if so, ho


search in string -
how do u create a search function to search the textbox which is similar to how visual basic search function works?


Searching a dbgrid while typing in a search string -
I posted a message on this topic last week. I was wondering if anyone has an example of how to search a dbgrid (a particular field) while the search string is being typed in a text or a combo box. I know how to do this with a listbox but not with a dbgrid being fed by an ado data contr


Search String Length -
Please can you decrease the minimum search string length to 2. I want to search for 'windows xp' but to no avail - what am I supposed to do here.


Xml Path -
Hi I have an xml document that I need to update. Firts I need to search in XML for a particular string. At the moment I have the following path: "//EventDay[Day='" & 1 & "']/*[Zona='" & 2 & "']//Ticket/BarCode[text()='" & xpto &a


Search Back -
Hi, Is there any way to search for string backward ? I have a Richtextbox that contain a text and the user search for staring, how can i search back? Thanks


highlight search text -
Hi, I'm allowing a user to enter a search string, and from there it searches a database and then loads the info to a textbox, how can i go about highlighting the search string in the info listed in the textbox?


Search for " using Mid -
I want to search a line text for a string containing " in it using the Mid function. Here is an example of a string I want to search for: src="img My current line of code is: LCase(Mid(strTemp, intCntrl2 - 8, 8)) = "src=""img" I am sure my


[2005] Howto search through a string -
I am trying to search for a certain string inside another string. Thanks alot for any help


Search & Highlight terms in a RTF Box -
Hi, I’m fairly new at VB.Net and I’m having a few problems highlighting text in a Rich Text Box. I am working on a text editor that will have some text in the RTF Box and a regular text box where the user can enter a search term. When the find button is clicked, the first occu


Search a String For Text [HELP] -
Search a String For Text: Dim StrHTML As String StrHTML = My String Now how can a search it to find out the players name? This is what I'm looking for >You are logged in as <b>" then I wanna get this text and stop it there ->"</b> ?


Search for a String and Return It -
How can I search for a string inside a string and actually return the value of the string being searched for? For example I am looking for *THIS in sdfsdfsdfsdf*THISdfsdfsdfsdfsdfsdf where the THIS may be different but the * stays the same. I want to return the string


Simple Search for a bound HFlexGrid -
Hi: I have a combo box and a search button on my form. The user is suppossed to type something into the combo box and click on the search button to initiate the search. The search is supposed to use the InStr function. I'm using a Combo list box because the box is suppossed to r


GURU'S NEEDED! File Searching!!! -
How would I search through a certain directory, say C:\Search\, for a certain string of text? I also want it to search it's sub directories as well. API would be best but all the examples I've found are terrible. Can anyone help me out with maybe some coding that works???


Search into a string -
if my string countians this text = sdsdsdsddir and i want to search on dir how do i have to do it( whats the code for it) and if it dhont find dir i get a msgbox with not found please help me out


Linking VB browser to search engine -
I am fairly new to VB (started it this year). For a student project, I am creating a web browser for elderly novices, so everything has to be fairly simple. I want to link a search string text box and submit button on the browser to the Google search engine and 'I'm feeling lucky'


Linking browser to search engine -
I am fairly new to VB (started it this year). For a student project, I am creating a web browser for elderly novices, so everything has to be fairly simple. I want to link a search string text box and submit button on the browser to the Google search engine and 'I'm feeling lucky'


String Search similar to Mid, Left, or Right Functions -
Hi there, Is there a way to search through a string, I want to look through the value of an object, and pull off the last two letters of it? I know how to do this in VB and PHP, but am unsure if it's possible in Javascript. Could someone point me in the right direction???


Efficient search replace code..... -
Hi all I've been messing around with search and replace functions on strings and can't get efficient code. What I need to do is search a string containing for example "string 1 2 3" and replacing all the spaces in it so it looks like "string%201%202%203" (in t


[2008] Search a quantity of files for a certain string -
I'm kind of stuck on a little project i wanted to do at some point and was wondering is there a way possible that i can make it search mass folders for say the certain string "I'm hiding here" Then Return the string of the file path in a Listbox?


Search for a string -
I need to search a random access file's records for a specific string. Any ideas?