what is the main difference between c and c++?
Answer Posted / lalit
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[sp_VIEWQUALIFICATIONINFO]
@StdId INT
AS
SELECT * FROM Qualification
WHERE StdId=@StdId
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[sp_VIEWPERSONALINFO]
@StdId INT
AS
SELECT
FName,MName,LName,FatherName,Gender,DOB,MStatus,Email,Phone,
Mobile,CourseID,Status FROM personalinfo
WHERE StdId=@StdId\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
protected void Button1_Click(object sender, EventArgs e)
{
ds = objd1.GetDetailsById(Convert.ToInt32
(txtstudentid.Text));
ds =objd1.GetPersonalInfoById(Convert.ToInt32
(txtstudentid.Text));
grdqualificationinfo.DataSource=ds.Tables
["Qualification"];
grdqualificationinfo.DataBind();
grdpersonalinfo.DataSource=ds.Tables
["personalinfo"];
grdpersonalinfo.DataBind();
lblqualinfo.Visible = true;
lblpersonalinfo.Visible = true;
//objrd = objd1.GetDetailsById(Convert.ToInt32
(txtstudentid.Text));
//objrd.Read();
//txtcoursename.Text = objrd[0].ToString();
//txtcoursefees.Text = objrd[1].ToString();
lblcoursefees.Visible = true;
lblcoursename.Visible = true;
txtcoursename.Visible = true;
txtcoursefees.Visible = true;
}
//////////////////////////////////////////
class////////////////////////
public DataSet GetPersonalInfoById(int StdId)
{
con.Close();
con.Open();
cmd = new SqlCommand("sp_VIEWPERSONALINFO", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@StdId",StdId);
adap = new SqlDataAdapter(cmd);
adap.Fill(ds, "personalinfo");
return ds;
}
public DataSet GetDetailsById(int StdId)
{
con.Close();
con.Open();
cmd = new SqlCommand("sp_VIEWQUALIFICATIONINFO",
con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("StdId",StdId);
adap = new SqlDataAdapter(cmd);
adap.Fill(ds, "Qualification");
return ds;
}
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Please send ford technologies placement paper 2 my mail id
What does <> mean pseudocode?
What is polymorphism explain its types?
Is react oop?
Why is static class not inherited?
What is a class and object?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What does and I oop and sksksk mean?
What is inheritance and how many types of inheritance?
What does sksksk mean in text slang?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
can we make game by using c
What is overloading in oop?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
Can you explain polymorphism?