Why dont you use built in asp.net user login and registration control?
Its a control you can find it in your toolbox just drag and drop in to
your web form run the site by hitting f5 that's all.It will do the rest for you.
Insert karanna may widiyata karanna.
Console.WriteLine(e.Message);//meka use karanna epa...meka Dala thiyenne Console application ekakata
Format eka example eka diha bala la igena ganna puluwan