asp.net

Encrypting Connection Strings

Submitted by planetsourcecode on
If you are a ASP.NET developer then you know that all the information is stored in web.config file and its is plain file which can be easily open in any text Editor like Notepad or word pad . We store all the important information like connection strings, user names, passwords.That means we are handling sensitive information in a unsafe text file.

Guide to the HyperLinkField

Submitted by planetsourcecode on
If we use GridViewin asp.net, we see Hyperlinkfield, at first time we thought that it is very easy to use but at another second we get confuse how to use it so I am going to focus on using it in a Gridview which is populated from database the main thing of HyperLinkField is work like a regular hyperlink in our GridView. The main four properties are here concerned are: 1). DataTextField,

Replace “\n” with “<BR\>”

Submitted by planetsourcecode on
We got some problem in storing newline character in database. This will help the developers in most of the development conditions.There are lot of times we accept user input in a textarea or a multiline textbox and save it to a database. But while displaying the data from the database, you will find that the line breaks are not displayed properly, infact there will be no line breaks. We will need to convert all the new line characters (”\n” character) to “