M
Mero
i use visual studio 2003 amd c#.net to make my web application
my site is about e-learning
in my site i want to set some setting in "create new lesson page" such as name, description , startdate, end date,...
i used textboxes,dropdownlist, radiobutton in the design of this page
the problem is in the code when i want to insert the selected data to a database
when i add parameters and the variable is a radio button , how can i wrote the command of the parameters in the right syntax?
for examples:
if the user have to choose a yes/no value in the setting
accept:
.yes
.no
in the query i wrote:
command.CommandText="insert into lesson(accept)values(@accept)";
command.Parameters.Add("@accept",RadioButton1. ?????????);
as i want when the user choose yes----> it will be saved "yes" in the database
so if anyoneone know how to mahe this. please reply to me
thanks
my site is about e-learning
in my site i want to set some setting in "create new lesson page" such as name, description , startdate, end date,...
i used textboxes,dropdownlist, radiobutton in the design of this page
the problem is in the code when i want to insert the selected data to a database
when i add parameters and the variable is a radio button , how can i wrote the command of the parameters in the right syntax?
for examples:
if the user have to choose a yes/no value in the setting
accept:
.yes
.no
in the query i wrote:
command.CommandText="insert into lesson(accept)values(@accept)";
command.Parameters.Add("@accept",RadioButton1. ?????????);
as i want when the user choose yes----> it will be saved "yes" in the database
so if anyoneone know how to mahe this. please reply to me
thanks