Convert MonthName to MonthNo and vice versa
To convet monthname to month no. There are two approach are given below. 1) enum Months:byte { Jan = 1, Feb, March, April,
using System;
using System.Data;
Using system.IO;
We have to place these controls on the webpage (ASPX page)
Text box with ID=Textbox1
Button with ID= button1
Label with ID= label1
using System.Text.RegularExpressions;
public class IPAddressTextBox: RegExTextBox
{
public IPAddressTextBox()
{
InitializeComponent();
this.ValidationExpression = @"^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$";
Using System.net;