Click here to Skip to main content
15,898,035 members
Home / Discussions / C#
   

C#

 
QuestionRe: fingerprints of files Pin
Richard MacCutchan3-Nov-15 0:14
mveRichard MacCutchan3-Nov-15 0:14 
AnswerRe: fingerprints of files Pin
Pete O'Hanlon3-Nov-15 1:14
mvePete O'Hanlon3-Nov-15 1:14 
GeneralRe: fingerprints of files Pin
Nadeem3103-Nov-15 19:06
Nadeem3103-Nov-15 19:06 
GeneralRe: fingerprints of files Pin
Pete O'Hanlon3-Nov-15 23:35
mvePete O'Hanlon3-Nov-15 23:35 
GeneralRe: fingerprints of files Pin
Nadeem3104-Nov-15 18:59
Nadeem3104-Nov-15 18:59 
GeneralRe: fingerprints of files Pin
Pete O'Hanlon4-Nov-15 21:01
mvePete O'Hanlon4-Nov-15 21:01 
AnswerRe: fingerprints of files Pin
Nadeem3103-Nov-15 19:09
Nadeem3103-Nov-15 19:09 
QuestionArgument Exception was unhandled by user code Pin
Asif Zaffar2-Nov-15 20:37
professionalAsif Zaffar2-Nov-15 20:37 
Error Details: No mapping exists from object type System.Web.UI.WebControls.TextBox to a known managed provider native type

Following are the code

protected void btn_save_Click(object sender, EventArgs e)
{
conn.Open();
SqlCommand cmd = new SqlCommand("insert into tbl_reg(name, f_name, m_name, dob, gender, phone, address, class, roll_no, section, user_nm, pswd)", conn);
cmd.Parameters.AddWithValue("@name", txt_nm.Text);
cmd.Parameters.AddWithValue("@f_name", txt_f_nm.Text);
cmd.Parameters.AddWithValue("@m_name", txt_m_nm.Text);
cmd.Parameters.AddWithValue("@dob", txt_dob);
if (rbtn_m.Checked == true)
{
cmd.Parameters.AddWithValue("@gender", rbtn_m.Text);
}
else
{
cmd.Parameters.AddWithValue("@gender", rbtn_f.Text);
}
cmd.Parameters.AddWithValue("@phone", txt_phone.Text);
cmd.Parameters.AddWithValue("@address", txt_address.Text);
cmd.Parameters.AddWithValue("@class", drpdn_class.SelectedValue);
cmd.Parameters.AddWithValue("@roll_no", txt_rollno.Text);
cmd.Parameters.AddWithValue("@section", txt_section.Text);
cmd.Parameters.AddWithValue("@User_nm", txt_user_nm.Text);
cmd.Parameters.AddWithValue("@pswd", txt_pswd.Text);
cmd.ExecuteNonQuery();
conn.Close();
}
AnswerRe: Argument Exception was unhandled by user code Pin
OriginalGriff2-Nov-15 21:34
mveOriginalGriff2-Nov-15 21:34 
GeneralRe: Argument Exception was unhandled by user code Pin
Asif Zaffar3-Nov-15 23:24
professionalAsif Zaffar3-Nov-15 23:24 
SuggestionRe: Argument Exception was unhandled by user code Pin
Richard Deeming3-Nov-15 1:55
mveRichard Deeming3-Nov-15 1:55 
QuestionKeyup event not getting triggerd Pin
Darshan BS2-Nov-15 2:01
Darshan BS2-Nov-15 2:01 
AnswerRe: Keyup event not getting triggerd Pin
Richard Deeming2-Nov-15 2:09
mveRichard Deeming2-Nov-15 2:09 
AnswerRe: Keyup event not getting triggerd Pin
Eddy Vluggen2-Nov-15 2:22
professionalEddy Vluggen2-Nov-15 2:22 
AnswerRe: Keyup event not getting triggerd Pin
BillWoodruff2-Nov-15 4:20
professionalBillWoodruff2-Nov-15 4:20 
QuestionHOW TO MAKE FONT CENTER Pin
Nor Amyliana1-Nov-15 17:50
Nor Amyliana1-Nov-15 17:50 
AnswerRe: HOW TO MAKE FONT CENTER Pin
BillWoodruff1-Nov-15 21:21
professionalBillWoodruff1-Nov-15 21:21 
GeneralRe: HOW TO MAKE FONT CENTER Pin
Nor Amyliana2-Nov-15 5:20
Nor Amyliana2-Nov-15 5:20 
QuestionCSV Downloading and Page Transfer Pin
Renjith Kalarikkal1-Nov-15 1:24
Renjith Kalarikkal1-Nov-15 1:24 
AnswerRe: CSV Downloading and Page Transfer Pin
Richard Deeming2-Nov-15 2:07
mveRichard Deeming2-Nov-15 2:07 
QuestionSystem.Speech.Recognition Pin
Christian 9831-Oct-15 22:21
Christian 9831-Oct-15 22:21 
AnswerRe: System.Speech.Recognition Pin
BillWoodruff31-Oct-15 22:35
professionalBillWoodruff31-Oct-15 22:35 
AnswerRe: System.Speech.Recognition Pin
Sergey Kizyan1-Nov-15 1:06
professionalSergey Kizyan1-Nov-15 1:06 
Questionc # webbrowser Windows Media Player Pin
gitokc31-Oct-15 19:30
gitokc31-Oct-15 19:30 
AnswerRe: c # webbrowser Windows Media Player Pin
Pete O'Hanlon31-Oct-15 20:43
mvePete O'Hanlon31-Oct-15 20:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.