0% found this document useful (0 votes)
47 views

Sample Code To Registration Page: Using Using Using Using Using Using Using Using Using Using Using Public Partial Class

This code sample shows a registration page that allows users to enter their information including name, email, mobile number, and user type. It handles form submission, validation, and data insertion into a database table. It also supports multiple languages by loading translated text based on the selected culture.

Uploaded by

Suhas Ingale
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views

Sample Code To Registration Page: Using Using Using Using Using Using Using Using Using Using Using Public Partial Class

This code sample shows a registration page that allows users to enter their information including name, email, mobile number, and user type. It handles form submission, validation, and data insertion into a database table. It also supports multiple languages by loading translated text based on the selected culture.

Uploaded by

Suhas Ingale
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Sample Code To Registration Page: using using using using using using using using using using using

System; System.Collections.Generic; System.Linq; System.Web; System.Web.U ; System.Web.U .WebControls; !"arming; System.Globali#ation; System.Resources; System.Re"lection; System.T$reading;

public partial class SignUp : System.Web.U .Page % Culture n"o ci; Resource&anager rm; protected 'oid Page(Load)ob*ect sender+ !'ent,rgs e% rm.ne/ Resource&anager)0Resources.Strings0+,ssembly.Load)0,pp(GlobalResources0--; 1 protected 'oid btn nsert(Clic2)ob*ect sender+ !'ent,rgs e% try % cls!3orming ob* . ne/ cls!3orming)-; tbl(User n"o user . ne/ tbl(User n"o)-; user.3(4ame . t5t34ame.Te5t; user.L(4ame . t5tL4ame.Te5t; user.U(4ame . t5tUser.Te5t; user.P/d . t5tPass.Te5t; user.S(6sn . t5t6sn.Te5t; user.,ns . t5t,ns.Te5t; user.S$op . t5tS$op.Te5t; user.City . t5tCity.Te5t; user.State . t5tState.Te5t; user.!(&ail . t5t!mail7.Te5t; user.&obile . t5t&obile7.Te5t; user.U(Type . rbtType.Selected tem.ToString)-; lbl&sg.Te5t . ob*.,ddUser)user-; 1 catc$ )!5ception e5% lbl&sg.Te5t . e5.&essage; 1 1 protected 'oid btnClear(Clic2)ob*ect sender+ !'ent,rgs e% lbl&sg.Te5t . t5tUser.Te5t . t5tState.Te5t . t5tS$op.Te5t . t5t6sn.Te5t . t5tPass.Te5t . t5t&obile7.Te5t . t5tL4ame.Te5t . t5t34ame.Te5t . t5t!mail7.Te5t . t5tCon"irm.Te5t . t5tCity.Te5t . t5t,ns.Te5t . 00;

rbtType.Selected nde5 . 89; 1 protected 'oid rbtType(Selected nde5C$anged)ob*ect sender+ !'ent,rgs e% i" )rbtType.Selected nde5 .. 9% t5tS$op.:isible . true; Required3ield:alidator9;.:isible . true; 1 else % t5tS$op.:isible ."alse; Required3ield:alidator9;.:isible . "alse; 1 1 protected 'oid lbtTelugu(Clic2)ob*ect sender+ !'ent,rgs e% T$read.CurrentT$read.CurrentCulture . Culture n"o.CreateSpeci"icCulture)0te8 40-; T$read.CurrentT$read.CurrentU Culture . ne/ Culture n"o)0te8 40-; GeteLang)ci-; 1 pri'ate 'oid GeteLang)Culture n"o ci% lbl,ns.Te5t . rm.GetString)0,ns/er0+ ci-; lblCity.Te5t . rm.GetString)0City0+ ci-; lblCP/d.Te5t . rm.GetString)0Con"irmP/d0+ ci-; lbl!&ail.Te5t . rm.GetString)0!&ail0+ ci-; lbl34ame.Te5t . rm.GetString)03irst4ame0+ ci-; lblL4ame.Te5t . rm.GetString)0Last4ame0+ ci-; lbl<ead.Te5t . rm.GetString)0SignUp0+ ci-; lbl&obile.Te5t . rm.GetString)0&obile0+ ci-; lblP/d.Te5t . rm.GetString)0Pass/ord0+ ci-; lbl6sn.Te5t . rm.GetString)06uestion0+ ci-; lblS$op.Te5t . rm.GetString)0S$op4ame0+ ci-; lblState.Te5t . rm.GetString)0State0+ ci-; lblType.Te5t . rm.GetString)0UserType0+ ci-; lblU4ame.Te5t . rm.GetString)0User 4ame0+ ci-; btnClear.Te5t . rm.GetString)0Clear0+ ci-; btn nsert.Te5t . rm.GetString)0Send0+ ci-; rbtType. tems.Clear)-; rbtType. tems. nsert)7+ rm.GetString)03armer0+ ci--; rbtType. tems. nsert)9+ rm.GetString)0W$olesaler0+ ci--; 1 protected 'oid Lin2=utton9(Clic2)ob*ect sender+ % T$read.CurrentT$read.CurrentCulture . Culture n"o.CreateSpeci"icCulture)0$i8 40-; T$read.CurrentT$read.CurrentU Culture . ne/ GeteLang)ci-; 1 protected 'oid Lin2=utton;(Clic2)ob*ect sender+ % T$read.CurrentT$read.CurrentCulture . Culture n"o.CreateSpeci"icCulture)0en8US0-; T$read.CurrentT$read.CurrentU Culture . ne/ !'ent,rgs e-

Culture n"o)0$i8 40-; !'ent,rgs e-

Culture n"o)0en8US0-;

GeteLang)ci-; 1 1

You might also like