Click here to Skip to main content
15,912,329 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionUrl rewrite Pin
Ramkumar_S30-Sep-09 23:38
Ramkumar_S30-Sep-09 23:38 
AnswerRe: Url rewrite Pin
Abhishek Sur30-Sep-09 23:45
professionalAbhishek Sur30-Sep-09 23:45 
GeneralRe: Url rewrite Pin
Ramkumar_S30-Sep-09 23:57
Ramkumar_S30-Sep-09 23:57 
GeneralRe: Url rewrite Pin
Abhishek Sur1-Oct-09 0:02
professionalAbhishek Sur1-Oct-09 0:02 
GeneralRe: Url rewrite Pin
Ramkumar_S1-Oct-09 0:16
Ramkumar_S1-Oct-09 0:16 
QuestionAlignment proble in firefox Pin
benams30-Sep-09 23:37
benams30-Sep-09 23:37 
AnswerRe: Alignment proble in firefox Pin
S.Dhanasekaran1-Oct-09 3:06
S.Dhanasekaran1-Oct-09 3:06 
Questionnot able to insert the values Pin
sumanmks30-Sep-09 23:35
sumanmks30-Sep-09 23:35 
hi i am very new to asp.net. It may be the simplest problem to u. but for me it is a bit difficult. I have written a code for inserting the values in the SQLEXPRESS in C#.but not able to insert it. Can Any one help me out. the code is as follows:
protected void Button1_Click1(object sender, EventArgs e)
{
SqlConnection myConnection = new SqlConnection();
myConnection.ConnectionString = @"Data Source=localhost\SQLEXPRESS;" +
"Initial Catalog=testdata;Integrated Security=SSPI";
try
{
myConnection.Open();
Label1.Text = "<b>Server Version:</b> " + myConnection.ServerVersion;
Label1.Text += "<br /><b>Connection Is:</b> " +
myConnection.State.ToString();
string insertSQL;
insertSQL = "INSERT INTO jobseekerinfo (";
insertSQL += "firstname, middlename, lastname, ";
insertSQL += "dob, address, city, state, zip, mobile, phone, engcollege, ";
insertSQL += "enguniversity, engaggergate, pucollege, puuniversity, pumarks,";
insertSQL += "school, scuniversity, scmarks, totalyears, totalmonths,";
insertSQL += "workplace, job, skills";
insertSQL += "VALUES ('";
insertSQL += TextBox1.Text + "', '";
insertSQL += TextBox2.Text + "', '";
insertSQL += TextBox3.Text + "', '";
insertSQL += TextBox29.Text + "', '";
insertSQL += TextBox5.Text + "', '";
insertSQL += TextBox11.Text + "', '";
insertSQL += TextBox12.Text + "', '";
insertSQL += TextBox14.Text + "', '";
insertSQL += TextBox6.Text + "', '";
insertSQL += TextBox15.Text + "', '";
insertSQL += TextBox4.Text + "', '";
insertSQL += TextBox8.Text + "', '";
insertSQL += TextBox9.Text + "', '";
insertSQL += TextBox10.Text + "', '";
insertSQL += TextBox30.Text + "', '";
insertSQL += TextBox31.Text + "', '";
insertSQL += TextBox32.Text + "', '";
insertSQL += TextBox33.Text + "', '";
insertSQL += TextBox34.Text + "', '";
insertSQL += TextBox35.Text + "', '";
insertSQL += TextBox36.Text + "', '";
insertSQL += TextBox18.Text + "', '";
insertSQL += TextBox19.Text + "', '";
insertSQL += TextBox20.Text + "', '";
insertSQL += "')";
SqlCommand cmd = new SqlCommand(insertSQL, myConnection);
int added = 0;
added = cmd.ExecuteNonQuery();
Label1.Text = added.ToString() + " records inserted.";
}

finally
{
myConnection.Close();
Label1.Text += "<br /><b>Connection Is:</b> " +
myConnection.State.ToString();

}
}

Thanks in advance
AnswerRe: not able to insert the values Pin
Greg Chelstowski30-Sep-09 23:48
Greg Chelstowski30-Sep-09 23:48 
AnswerRe: not able to insert the values Pin
Paramhans Dubey30-Sep-09 23:50
professionalParamhans Dubey30-Sep-09 23:50 
GeneralRe: not able to insert the values Pin
sumanmks30-Sep-09 23:59
sumanmks30-Sep-09 23:59 
GeneralRe: not able to insert the values Pin
Greg Chelstowski1-Oct-09 0:06
Greg Chelstowski1-Oct-09 0:06 
GeneralRe: not able to insert the values Pin
Paramhans Dubey1-Oct-09 0:08
professionalParamhans Dubey1-Oct-09 0:08 
GeneralRe: not able to insert the values Pin
Greg Chelstowski1-Oct-09 0:10
Greg Chelstowski1-Oct-09 0:10 
AnswerRe: not able to insert the values Pin
ksss_maheshece30-Sep-09 23:51
ksss_maheshece30-Sep-09 23:51 
AnswerRe: not able to insert the values [modified] Pin
sashidhar30-Sep-09 23:52
sashidhar30-Sep-09 23:52 
QuestionNavigating between two independent projects through ASP.NET's TreeNode Control Pin
novice developer30-Sep-09 23:27
novice developer30-Sep-09 23:27 
QuestionRefresh main page Pin
samerh30-Sep-09 23:18
samerh30-Sep-09 23:18 
AnswerRe: Refresh main page Pin
Abhishek Sur30-Sep-09 23:41
professionalAbhishek Sur30-Sep-09 23:41 
GeneralRe: Refresh main page Pin
samerh30-Sep-09 23:45
samerh30-Sep-09 23:45 
Questionhow to create a subreport in subreport of mainreport or a subreport hierarchy in crystal reports? Pin
Sandesh M Patil30-Sep-09 22:53
Sandesh M Patil30-Sep-09 22:53 
AnswerRe: how to create a subreport in subreport of mainreport or a subreport hierarchy in crystal reports? Pin
Richard MacCutchan30-Sep-09 23:27
mveRichard MacCutchan30-Sep-09 23:27 
Questionfurther login info Pin
vikas shukla30-Sep-09 22:39
vikas shukla30-Sep-09 22:39 
AnswerRe: further login info Pin
Abhishek Sur30-Sep-09 22:48
professionalAbhishek Sur30-Sep-09 22:48 
GeneralRe: further login info Pin
vikas shukla30-Sep-09 22:52
vikas shukla30-Sep-09 22:52 

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.