0% found this document useful (0 votes)
26 views2 pages

Design A Registration Form

Designing a Registration form in asp.net

Uploaded by

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

Design A Registration Form

Designing a Registration form in asp.net

Uploaded by

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

Design A Registration Form

Coding:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

protected void Button1_Click(object sender, EventArgs e)


{
if (Page.IsValid)
{
string username = TextBox1.Text;
string password = TextBox2.Text;
string age = TextBox4.Text;
string email = TextBox6.Text;
string city = TextBox7.Text;
string SelectedGender = RadioButtonList1.SelectedValue;
RadioButtonList1.Text = "Selected Gender:" + SelectedGender;
Label8.Text = "REGISTRATION SUCCESFULL!!";
}
}
}

}
Form Design:

Output:

You might also like