Tips Station Asp.net Article Seo Articles
Tutorials Code Samples
›  Home
›  Mission
›  About us
›  Contact Us
›  Feedback
›  Terms & Condition
Asp Articles
IT Solutions
 
› ASP.NET

› Programming Tips

› Ajax

› Asp

› ADO.NET

› Databases

› SEO

› CSS And Designing

› Php

 
Most Viewed Articles
 
› Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

› Change theme dynamically without page refresh in ASP.NET

› Install AJAX On Machines Running Visual Studio 2005

› Creating Pretty Popups Using AJAX

› Simple ASP Image Resize Function

› SQL Server Performance Counters

› ASP.Net Interview Questions And Their Answers

› Encode Url using ASP

› Difference Between DataGrid and GridView in Asp.Net

› Select Specific Value WithIn Drop Down List Or Radio Button List

more...
 
 
Home> Programming Tips
 
Filter Certain Words in a String - Asp.net
 

 An example of how we can filter certain words in a string and mask them by replacing them with an asterisk.

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  
        ' Declarations  
        Dim arrWords As New ArrayList  
        Dim strArticle As String = "This is one sample string that three people wrote"  
      
        ' Populate the array list with the words we want to replace  
        arrWords.Add("one")  
        arrWords.Add("two")  
        arrWords.Add("three")  
     
       ' Loop through the array list and replace each found word with *'s  
       Dim IEnum As IEnumerator = arrWords.GetEnumerator  
       While IEnum.MoveNext  
           strArticle = strArticle.ToLower.Replace(IEnum.Current, New String("*", IEnum.Current.ToString.Length))  
       End While  
     
       ' Show the resulting string  
       Label1.Text = strArticle  
   End Sub 

 
 
Vrp Technologies
 
Serversea Hosting
 
 
Latest Articles
 
› Sending SMS With PHP

› MySQL Join Tutorial

› Make An RSS Feed Using PHP

› Intro To Object: Option Variables

› Design An Online Chat Room With PHP And MySQL

› Create Tell A Friend Script With HTML & PHP

› Benchmark And Optimize PHP Script Speed

› What Kind of DBA Are You?

› SQL Server Performance Counters

› SQL Server Performance Tips

more...
 
Random Articles
 
› What SEO Tricks Must I Avoid When Optimizing My Pages?

› MySQL Join Tutorial

› Sending SMS With PHP

› Search Engine Friendly Web Design - 3 Ways To Use CSS

› Understanding Transaction in ADO.NET

› Get To The Top 10 Website Search Engine Rank In 5 Easy Steps

› Your New Website Is Inside

› Filter Certain Words in a String - Asp.net

› Read and display a text file in Asp.net

› What Kind of DBA Are You?

more...
 
Home Mission About us Contact us Feedback Terms Conditions
2008 © Copyright TipsStation. All rights reserved.