Search   Articles   Dev Forums   Personalize   Favorites   Member Login   ASP.Net Hosting
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Sunday, July 20, 2008

Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 
FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home > Search > Articles & Samples > ASP.Net > Language Reference > String
Search:
What's New - What's Hot


Securing Connection Strings        
Total Hits: 19  |  Today: 0 Author: AzamSharp       Rating:  
Read Reviews | Write Review |   Your Rating: 

In one of the previous articles we saw that we can use the web.config file to save our connection string. We also talked about the advantages which comes down to easily altering the connection string if it changes in the future. What we did not talked about was encrypting connection string. When we store the connection string in the web.config file it's stored in a readable form. If anyone can open the web.config file he can read the connection string and security will be jeopardize....

Testing for empty string        
Total Hits: 12  |  Today: 0 Author: PIEBALDconsult       Rating:  
Read Reviews | Write Review |   Your Rating: 

Every once in a while someone will post a snippet with code such as.........

Passing variables between pages using QueryString        
Total Hits: 68  |  Today: 0 Author: Atilla Ozgur       Rating:  
Read Reviews | Write Review |   Your Rating: 

Often you need to pass variable content between your html pages or aspx webforms in context of Asp.Net. For example in first page you collect information about your client, her name and last name and use this information in your second page.

For passing variables content between pages ASP.NET gives us several choices. One choice is using QueryString property of Request Object. When surfing internet you should have seen weird internet address such as one below.

http://www.localhost....

ASP.NET: HtmlEncode/UrlEncode        
Total Hits: 1742  |  Today: 0       Rating:  
Read Reviews | Write Review |   Your Rating: 

The Sample Code Will show u how to encode html or url ....

ASP.NET Connection String method        
Total Hits: 279  |  Today: 0       Rating:  
Read Reviews | Write Review |   Your Rating: 

There are many ways to do connection strings in asp. ASP+ presents a new frontier to perform connection strings. Many of the quickstart demos have the connection string listed in every page. This is ok for demo purposes, BUT what if you want to change your password. The only way is touch every page, NO WAY!...

Allowing for user mischief        
Total Hits: 217  |  Today: 0       Rating:  
Read Reviews | Write Review |   Your Rating: 

you are writing an application for a web site which takes textual user input and permanently stores it for later presentation on the site, in a database for example. A simple example application might be a discussion forum....

Efficiently Searching a Sorted Array        
Total Hits: 383  |  Today: 0       Rating:  
Read Reviews | Write Review |   Your Rating: 

Pop quiz, hotshot: you have an array of strings consisting of the various IP addresses of the visitors of the last 24 hours to your Web site. You want to determine if your site has been visited by the IP address 231.34.124.3. How can you quickly figure out if the string "231.34.124.3" is in the array?...

Working with StringBuilder, StringCollection and StringDictionary objects in VB.NET        
Total Hits: 2373  |  Today: 12 Author: Aadil       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article will demonstrate how you can use StringBuilder, StringCollection and StringDictionary objects to work efficiently with Strings. Strings are the most heavily used things in software programming especially in ASP.NET web development. Because the HTML page that is rendered in the client side web browser is basically text as string type so you will need to work with strings a lot. There is an object of type String that represents a string in the .NET Framework and contains many useful m...

.NET Case-Insensitive Replace        
Total Hits: 323  |  Today: 0 Author: Brian Bilbro       Rating:  
Read Reviews | Write Review |   Your Rating: 

You may have noticed that the Replace method of the String and StringBuilder classes are case-sensitive methods. However, VB.NET supplies a Replace method which you could use in VB.NET and wrap in a class to use in other languages. That would be too easy though. :) Here are a few ways to implement case-insenstive replaces. Code #1 provides a case-insensitive replace function. Code #2 is sample ASPX page. Select the version you would like to see in the select list....

Practical Asp.Net Example        
Total Hits: 245  |  Today: 0       Rating:  
Read Reviews | Write Review |   Your Rating: 

This example was posted to a public newsgroup. I felt a strong need to publish it on the site because of how often people need to reverse strings!
...

Code Snippet: Format Phone Numbers using String.Format        
Total Hits: 410  |  Today: 0 Author: Steven Swafford       Rating:  
Read Reviews | Write Review |   Your Rating: 

The String.Format method provides a simple way to format data received from the user. Steven Swafford provides an example of using String.Format to display a telephone number in a country-specific format....

DataGrids, DataSets, and XML Strings        
Total Hits: 803  |  Today: 0       Rating:  
Read Reviews | Write Review |   Your Rating: 

Not long ago, Scott Mitchell wrote an informative article on how to populate a DataSet using an XML file (see XML, the DataSet, and a DataGrid)....

Validating ASP.NET Query Strings        
Total Hits: 0  |  Today: 0 Author: Dino Esposito       Rating:  
Read Reviews | Write Review |   Your Rating: 

For years, classic ASP developers implemented page authentication by inserting some generic code at the top of each page that would grab user credentials, attach a cookie, and redirect. All that repetitive code was swept away by the ASP.NET HTTP modules for authentication. As a result, ASP.NET applications don't have to link each and every page being secured to the authentication module of choice. Everything can be done declaratively through the web.config file and a bunch of external resources,...

Encryption of Connection Strings inside the Web.config in ASP.Net 2.0        
Total Hits: 7  |  Today: 0 Author: Manish K Gupta       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article gives you a general view of the Encryption of Connection string inside the Web.config feature and
how you can use encryption and increase the security and keep the secure connection with the database. The .NET Framework 2.0 allows you to encrypt configuration sections within the Web.config or machine.config files. Encryption support for configuration files is added to the .NET Framework 2.0. The .NET Framework libraries
support for encryption and decryption in code. In this ar...

Use encoded query string with ASP.NET        
Total Hits: 16  |  Today: 0 Author: Michael Ulmann       Rating:  
Read Reviews | Write Review |   Your Rating: 

Using query strings to send data from the browser to the server is a widespread approach. Giving the visitor of a web application the oportunity of modifying them by transmitting them in clear text, is certainly a potential security threat. Thus, I encourage developers to encode query strings, even if they do not contain confidential data. However, I am aware that it is still possible to alternate an encoded query string, but with an appropriate exception handling this is harmless....

String Format Library        
Total Hits: 6  |  Today: 0 Author: Wong Shao Voon       Rating:  
Read Reviews | Write Review |   Your Rating: 

While I was writing this article, I saw that a fellow CP'ian, Ivo Beltchev, has already posted a typesafe string format library. The method I used in my library is quite similar to his. But my library is much simpler, and uses std::basic_string and C string functions to do the job instead of rolling out my own string routines, and doesn't use the Win32 API, but it doesn't support locale....

Validating ASP.NET Query Strings        
Total Hits: 7  |  Today: 0 Author: Dino Esposito       Rating:  
Read Reviews | Write Review |   Your Rating: 

For years, classic ASP developers implemented page authentication by inserting some generic code at the top of each page that would grab user credentials, attach a cookie, and redirect. All that repetitive code was swept away by the ASP.NET HTTP modules for authentication. As a result, ASP.NET applications don't have to link each and every page being secured to the authentication module of choice. Everything can be done declaratively through the web.config file and a bunch of external resources,...

Scramble Your Query Strings        
Total Hits: 25  |  Today: 0 Author: gtamir       Rating:  
Read Reviews | Write Review |   Your Rating: 

Query strings are a very convenient way of passing information to a new window or to a following page. The problem with query strings is that the information is visible. In my experience, the wiseass users see the query strings in the browser and try to duplicate the functionality: like "Oh, when I click the button, I get 'DeleteInventory.aspx?item=123&user=george&id=99' so, if I want to delete the item #222, I just need to use 'DeleteInventory.aspx?item=222&user=george&id=99' right?" Wrong, the...

Strings in .NET        
Total Hits: 23  |  Today: 0 Author: Ernst Kuschke.       Rating:  
Read Reviews | Write Review |   Your Rating: 

Strings are a sequence of characters. There are different types of characters, but that is a topic for a different article (for a better understanding of character types, go here). I’m not covering the whole structure of the String type here, but just highlighting some of the “special” features!...

Strings UNDOCUMENTED        
Total Hits: 16  |  Today: 0 Author: Wesner Moise.       Rating:  
Read Reviews | Write Review |   Your Rating: 

This is an in-depth, behind-the-scenes look at strings in the Common Language Runtime and the .NET Framework. This study provides detailed information of the implementation of strings, describes efficient and inefficient ways of using strings.

I plan on developing a series of articles, exploring the underlying implementations of various fundamental features in C# and the framework, of which this is the first article, if The Code Project community finds this information helpful and offers ...


1  2  Next >> 

DevASP.Net - Disclaimer - Privacy
Copyright © 2008 DevASP.net