Dear All,
I am new to programming,
I am getting the Error message on the command Text:
cmd.CommandText = "update StudentResult set '" + TxtStudentname.Text + "','" + TxtRollno.Text + "','" + TxtC.Text + "','" + TxtCplusplus.Text + "','" + TxtCsharp.Text + "','" + TxtAspdotnet.Text + "','" + Txtmarksobtained.Text + "','" + Txttotalmarks.Text + "','" + TxtPercentage.Text + "' where Rollno='" + TxtRollno.Text + "'";
Complete Error message is:
Object reference not set to an instance of an object.
This is with 2010 Express edition of ASP.NET using C#.
The SQL connection string is:
Data Source=RMM-PC-343\SQLEXPRESS1;Initial Catalog=Student_Result;Integrated Security=True;
What do I need to correct this?
Thanks,
Zaid Qureshi