TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Tangara G
NA
298
93.5k
How do I update the changes of the radio button selection ?
Sep 16 2016 1:56 AM
Hi experts,
I would appreciate a basic tutorial on selected radio button, the changes will be made to the database.
Here's the html page I have written :
<%@ Page Title=
""
Language=
"C#"
MasterPageFile=
"~/StoreClerk.Master"
AutoEventWireup=
"true"
CodeBehind=
"ChangeCollectionPoint.aspx.cs"
Inherits=
"LogicUniversity.ChangeCollectionPoint"
%>
<asp:Content ID=
"Content1"
ContentPlaceHolderID=
"head"
runat=
"server"
>
</asp:Content>
<asp:Content ID=
"Content2"
ContentPlaceHolderID=
"StoreClerkContent"
runat=
"server"
>
<br />
<h3>Change Collection Point</h3>
<div
class
=
"form-group"
>
<label
class
=
"col-sm-2 control-label"
><h4>Current Collection Point:</h4></label>
<div
class
=
"col-sm-8"
>
<div
class
=
"radio"
>
<label>
<input type=
"radio"
name=
"collectionPoint"
value=
"Stationery Store (09:30am)"
checked>
Stationery Store (09:30am)
</label>
</div>
<div
class
=
"radio"
>
<label>
<input type=
"radio"
name=
"collectionPoint"
value=
"Management School (11:00am)"
>
Management School (11:00am)
</label>
</div>
<div
class
=
"radio"
>
<label>
<input type=
"radio"
name=
"collectionPoint"
value=
"Medical School (09:30am)"
>
Medical School (09:30am)
</label>
</div>
<div
class
=
"radio"
>
<label>
<input type=
"radio"
name=
"collectionPoint"
value=
"Enginnering School (11:00am)"
checked>
Enginnering School (11:00am)
</label>
</div>
<div
class
=
"radio"
>
<label>
<input type=
"radio"
name=
"collectionPoint"
value=
"Science School (09:00am)"
>
Science School (09:00am)
</label>
</div>
<div
class
=
"radio"
>
<label>
<input type=
"radio"
name=
"collectionPoint"
value=
"Uni Hospital (9:30am)"
>
Uni Hospital School (9:30am)
<br />
</label>
</div>
<asp:Button ID=
"Update_CollectionPoint"
runat=
"server"
OnClick=
"Update_CollectionPoint_Click"
Text=
"Update"
/>
</div>
</div><!-- end form-control -->
</asp:Content>
The idea is that whenever a Dept Head and Representative made the changes, the collectionPoint will be changed in the database. The Dept Head ID and Representative are tied to the RoleId and RoleName in the Role table.
I have googled but so far can't find any tutorial that is directly related to my question. I wish there is a beginner book that I can read thru to study all these basic functionality.....
Reply
Answers (
5
)
Is it possible to display selected items in dropdowncheckbox
i want create notification alert