Click here to Skip to main content
11,503,113 members (63,077 online)
   

ASP.NET

 
AnswerRe: column 'member_channel_name' does not belong to table Pin
Brij20-Jan-13 21:52
mentorBrij20-Jan-13 21:52 
JokeRe: column 'member_channel_name' does not belong to table Pin
jkirkerx22-Jan-13 12:32
memberjkirkerx22-Jan-13 12:32 
QuestionPost and Get process ASP.NET MVC Pin
Patrik von Frieling20-Jan-13 5:10
memberPatrik von Frieling20-Jan-13 5:10 
AnswerRe: Post and Get process ASP.NET MVC Pin
deflinek21-Jan-13 3:23
memberdeflinek21-Jan-13 3:23 
QuestionResource files show empty content Pin
Ali Al Omairi(Abu AlHassan)19-Jan-13 23:19
memberAli Al Omairi(Abu AlHassan)19-Jan-13 23:19 
AnswerRe: Resource files show empty content Pin
Sandeep Mewara20-Jan-13 1:18
mvpSandeep Mewara20-Jan-13 1:18 
GeneralRe: Resource files show empty content Pin
Ali Al Omairi(Abu AlHassan)20-Jan-13 1:51
memberAli Al Omairi(Abu AlHassan)20-Jan-13 1:51 
GeneralRe: Resource files show empty content Pin
Sandeep Mewara20-Jan-13 3:01
mvpSandeep Mewara20-Jan-13 3:01 
QuestionViewState not working in UserControl Pin
Jassim Rahma19-Jan-13 5:29
memberJassim Rahma19-Jan-13 5:29 
AnswerRe: ViewState not working in UserControl [modified] Pin
jkirkerx19-Jan-13 18:35
memberjkirkerx19-Jan-13 18:35 
AnswerRe: ViewState not working in UserControl Pin
Richard Deeming21-Jan-13 2:07
memberRichard Deeming21-Jan-13 2:07 
QuestionHow can we export data into csv format in c#.net Pin
Er Atul Sharma18-Jan-13 23:31
memberEr Atul Sharma18-Jan-13 23:31 
AnswerRe: How can we export data into csv format in c#.net Pin
Sandeep Mewara19-Jan-13 5:54
mvpSandeep Mewara19-Jan-13 5:54 
QuestionSQL Server error Pin
Pritam Sankar Roy18-Jan-13 18:31
memberPritam Sankar Roy18-Jan-13 18:31 
Hi, I am trying to insert some date to my SQL-Server using ASP.Net. But I am getting the error message like, " ExecuteNonQuery: Connection property has not been initialized." I am using store procedure to store the date. My code is

try
{
   SqlCommand cmd = new SqlCommand();
   cmd.Parameters.Clear();
   cmd.CommandType = CommandType.StoredProcedure;
   cmd.CommandText = "insertdata";
   if (rbt_Male.Checked)
   {
       cmd.Parameters.AddWithValue("@Name", txtbx_Name.Text);
       cmd.Parameters.AddWithValue("@Gender_Male", rbt_Male.Text);
       cmd.Parameters.AddWithValue("@Email", txtbx_Email.Text);
       cmd.Parameters.AddWithValue("@Dob", Convert.ToDateTime(txt_Dob.Text));
   }
   else if (rbt_Female.Checked)
   {
       cmd.Parameters.AddWithValue("@Name", txtbx_Name.Text);
       cmd.Parameters.AddWithValue("@Gender_Female", rbt_Male.Text);
       cmd.Parameters.AddWithValue("@Email", txtbx_Email.Text);
       cmd.Parameters.AddWithValue("@Dob", Convert.ToDateTime(txt_Dob.Text));
   }
   if (con.State == ConnectionState.Closed)
       con.Open();
   SqlCommand dataCommand = new SqlCommand(sql, dataConnection);
   cmd.ExecuteNonQuery();
   lbl_Errormsg.Visible = true;
   lbl_Errormsg.Text = "Record Inserted Successfully";
   con.Close();
}
catch (Exception ex)
{
   lbl_Errormsg.Visible = true;
   lbl_Errormsg.Text = ex.Message;
}

AnswerRe: SQL Server error Pin
Nandakishorerao18-Jan-13 21:39
memberNandakishorerao18-Jan-13 21:39 
AnswerRe: SQL Server error Pin
Shameel23-Jan-13 4:51
memberShameel23-Jan-13 4:51 
QuestionHow to asp:Literal with more..? Pin
Jassim Rahma18-Jan-13 3:19
memberJassim Rahma18-Jan-13 3:19 
AnswerRe: How to asp:Literal with more..? Pin
Parwej Ahamad18-Jan-13 7:13
memberParwej Ahamad18-Jan-13 7:13 
AnswerRe: How to asp:Literal with more..? Pin
Nandakishorerao18-Jan-13 21:46
memberNandakishorerao18-Jan-13 21:46 
QuestionFindControl not working in Gridview ItemTemplate of Button Pin
Member 974870717-Jan-13 19:42
memberMember 974870717-Jan-13 19:42 
AnswerRe: FindControl not working in Gridview ItemTemplate of Button Pin
chester_it2118-Jan-13 6:16
groupchester_it2118-Jan-13 6:16 
QuestionRe: FindControl not working in Gridview ItemTemplate of Button Pin
Nandakishorerao18-Jan-13 21:48
memberNandakishorerao18-Jan-13 21:48 
AnswerRe: FindControl not working in Gridview ItemTemplate of Button Pin
Kanwal Daud Gill21-Jan-13 20:23
memberKanwal Daud Gill21-Jan-13 20:23 
GeneralRe: FindControl not working in Gridview ItemTemplate of Button Pin
Nandakishorerao21-Jan-13 20:49
memberNandakishorerao21-Jan-13 20:49 
QuestionTracking Emails Pin
Jaison Joe17-Jan-13 17:49
memberJaison Joe17-Jan-13 17:49 
Questionhow to redirect in a url? Pin
Jassim Rahma17-Jan-13 9:42
memberJassim Rahma17-Jan-13 9:42 
AnswerRe: how to redirect in a url? Pin
Parwej Ahamad18-Jan-13 7:17
memberParwej Ahamad18-Jan-13 7:17 
GeneralRe: how to redirect in a url? Pin
Jassim Rahma18-Jan-13 7:36
memberJassim Rahma18-Jan-13 7:36 
GeneralRe: how to redirect in a url? Pin
Parwej Ahamad18-Jan-13 17:23
memberParwej Ahamad18-Jan-13 17:23 
AnswerRe: how to redirect in a url? Pin
Rekhash18-Jan-13 23:01
memberRekhash18-Jan-13 23:01 
QuestionHow to add KML file to google Map using javascript in asp.net Pin
Trivikramarao Vurubandi17-Jan-13 0:40
memberTrivikramarao Vurubandi17-Jan-13 0:40 
QuestionExport data in Excel(xlsx) without using Excel Object from Datatable. Pin
mca_rameshkumar16-Jan-13 22:00
membermca_rameshkumar16-Jan-13 22:00 
AnswerRe: Export data in Excel(xlsx) without using Excel Object from Datatable. Pin
chester_it2118-Jan-13 6:52
groupchester_it2118-Jan-13 6:52 
QuestionButton or ImageButton? Pin
Jassim Rahma16-Jan-13 9:40
memberJassim Rahma16-Jan-13 9:40 
AnswerRe: Button or ImageButton? Pin
jkirkerx16-Jan-13 12:40
memberjkirkerx16-Jan-13 12:40 
QuestionGoogle Translate vb.net Pin
DotNetFellow15-Jan-13 22:31
memberDotNetFellow15-Jan-13 22:31 
AnswerRe: Google Translate vb.net Pin
Sandeep Mewara16-Jan-13 2:57
mvpSandeep Mewara16-Jan-13 2:57 
Questionunzipping file in host ? Pin
jojoba201115-Jan-13 17:59
memberjojoba201115-Jan-13 17:59 
AnswerRe: unzipping file in host ? Pin
Vani Kulkarni16-Jan-13 2:44
memberVani Kulkarni16-Jan-13 2:44 
QuestionRe: unzipping file in host ? Pin
jojoba201116-Jan-13 7:41
memberjojoba201116-Jan-13 7:41 
QuestionProblem with MapPageRoute.. Pin
Jassim Rahma15-Jan-13 10:06
memberJassim Rahma15-Jan-13 10:06 
AnswerRe: Problem with MapPageRoute.. Pin
Brij15-Jan-13 17:30
mentorBrij15-Jan-13 17:30 
AnswerRe: Problem with MapPageRoute.. Pin
Richard MacCutchan15-Jan-13 23:02
mvpRichard MacCutchan15-Jan-13 23:02 
Questionhow to install downloaded nested master page template??? Pin
Member 876986514-Jan-13 3:25
memberMember 876986514-Jan-13 3:25 
AnswerRe: how to install downloaded nested master page template??? Pin
Brij15-Jan-13 18:10
mentorBrij15-Jan-13 18:10 
AnswerRe: how to install downloaded nested master page template??? Pin
Sandeep Mewara15-Jan-13 18:19
mvpSandeep Mewara15-Jan-13 18:19 
QuestionA strange problem Pin
indian14313-Jan-13 22:00
memberindian14313-Jan-13 22:00 
AnswerRe: A strange problem Pin
Abhijit Jana14-Jan-13 7:52
mentorAbhijit Jana14-Jan-13 7:52 
GeneralRe: A strange problem Pin
indian14314-Jan-13 13:15
memberindian14314-Jan-13 13:15 
Questionhow to MapPageRoute this? Pin
Jassim Rahma13-Jan-13 10:48
memberJassim Rahma13-Jan-13 10:48 

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

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


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 2 Jun 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid