Data Controls :: How To Save (insert) RadioButton Value To Database
May 7, 2015
I have created USERNAME,EMALE,PASSWORD,GENDER,(MALE,FEMALE,OTHERS as radiobutton) and COUNTRY(contry list as dropdownlist)USERNAME,EMALE,PASSWORD is geting inserted but radiobutton value is not .I dont know how to insert the radiobutton vale into databse and what will be the datatype i should choose.I am using using
in database I have House_info table that has description column and if I enter text in textbox1 it update description column now problem is when I enter text in textbox1 it didn't change text and didn't update data in database...
I put breakpoint in imagebutton2_click event and see in this code
Now I want if in Storetype column in database was="Product" then radiobutton item with text="Product" selected=true and if in store type column was="Galary" radiobutton item with text="Galary" selected="true"
I have grid view in ASP.Net 3.5. I need to add multiple blank rows in a gridview and then have to save them in database. How can I do that in most simplest way?
protected void SaveEmails(object sender, EventArgs e) { for (int i = 0; i < this.Emails.Count; i++) { string constr = ConfigurationManager.ConnectionStrings["ConString2"].ConnectionString; string sqlStatment = "INSERT INTO [Emails] ([From],[Subject],[Body],[Date]) VALUES (@From ,@Subject,@Body,@Date)"; using (SqlConnection con = new SqlConnection(constr)) { using (SqlCommand cmd = new SqlCommand(sqlStatment, con))
[Code] ....
I want to store attachments also... How to store attachments....
I am using link button in updatepanel and click on asp:linkbutton it refereshes all page. to stop _dopostback on link button click.or any alternative to use linkbutton.
protected void Button2_Click(object sender, EventArgs e) { foreach (Control ctl in Dynamic.Controls) { if (ctl is TextBox) { TextBox tb = (TextBox)ctl; using (SqlConnection con = new SqlConnection(_connStr)) {
How I insert data in database..... I want to use class member as form fileds and also use class method to insert data and on click event i want to call these insert method ...
I need assistance on how to bind Radiobutton to database, so that whatever selection made in Radiobutton will appear in the database
I want to produce an online quiz, that will have the following fuctionality
1. it contain database with , ID, Questions, Option A, B,C, and D, Student Answer.
2.After forming the griedview in connection with the database, i form additonal colum to include Radiobutton where students are to choose the correct option.
3. I was able to configure the gridview which successfully show all the above document but the problem now is how to bind the selected option by students to the database so that i can know wether they choose the right answer or not. i wat the student answer appear in the colum named student answer in the database.
i shall be very grateful , if u can just give simple example that i can perform which shall be able to show the click on radiobutton in database not autopostback in textbox.
i'm new to programming and i'm doing a project of ana e-store, i have a data gridview that brings data from a data base and it have to more templeate files one a textbox and the other one is a label. and i have a button outside the grivdview. what i need that when i press on this button it will take the values from the grid view and insert them into a new sql table.
[Code]....
and here is the VB code that i'm trying to use with no luck : [Code]....
// for stringprivate string name = ""; //for date private date = DateTime.MinValue; I am not sure, how to declare this. For my insert, is inserted the current date regardless of I chppsing any date. I am not sure why?