Articles

  1. Converting domain names to IP addresses

    Submitted by planetsourcecode on
    In ASP.NET, we can easily convert the Domain names to its related IP address like if a website like planetsourcecode.in has a domain name i.e planetsourcecode.com, It has also a corresponding Internet Protocol Address like 208.111.14.112. this can be easily done in ASP.NET using C# Steps for doing this: 1). First we have to include the namespace for this class Using System.net;
  2. 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.
  3. 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,
  4. 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 “