Skins and themes in ASP.NET

Submitted by planetsourcecode on
Sometimes we have to design those pages which have different color schemes but it is very difficult to maintain these types of pages. We can overcome from this situation by using skins and themes. This makes these things easier. 1). First create a Master Page having the following components. * One Content Placeholder 2).Create another page (default.aspx) and select the Master Page

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;

Interfaces

Submitted by admin on

Definition:

In java programming language, an interface is an abstract, conceptual or concrete type that is used to specify an interface.

How to use an interface:

  • By using the key word interface, we can fully abstract a class interface from its implementation.

It means that, using interface, we can specify what a class must do, but not how it does it.

Regular Expression for a Strong Password

Submitted by planetsourcecode on
This snippet shows a Regular Expression for a strong password. ^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).*$ About the author: Planet Source Code is a place for all developer providing free source codes, articles, complete projects,complete application in PHP, C/C++, Javascript, Visual Basic, Cobol, Pascal, ASP/VBScript, AJAX, SQL, Perl, Python, Ruby, Mobile Development

Cookies in asp.net

Submitted by planetsourcecode on
Cookies are one of the way to store data during the time when web server and browser are not connected. common use of cookies is to remember users between visits.Cookies is a small text file sent by web server and saved by web browser on client machine Creating cookies in asp.net using system //saving cookie Response.Cookies["Cookiename"].Value="biscuit";

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.