In this blog we will know how to insert RadioButton values into database.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Radio_button_values.WebForm1"
%>
<!DOCTYPE html
PUBLIC "-//W3C//DTD
XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form
id="form1"
runat="server">
<div>
<table
align="center">
<tr>
<td colspan="2">
<h3>
Registraion</h3>
</td>
</tr>
<tr>
<td>
Name:</td>
<td>
<asp:TextBox ID="txtName"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
Email</td>
<td>
<asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
Gender</td>
<td>
<asp:RadioButton ID="rb1"
Text="Male"
runat="server"
/>
<asp:RadioButton ID="rb2"
Text="Female"
runat="server"
/>
</td>
</tr>
<tr>
<td align="center"
colspan="2">
<asp:Button ID="btn_register" runat="server"
Text="Register"

Ezhumalai ProjectsPosted Jul 11, 2014, 5:49 AM
how to use login for this concept
Milan DuttaPosted Mar 2, 2013, 9:13 AM
nice one