difference between c and c++?

Answer Posted / ks

/// <summary>
/// This function GetDetailById has been made to show
the Qualification details in grid view on the page
/// when the Admin enter any StudentId and clicks on
Submit button.
/// </summary>
/// <param name="studentid"></param>
/// <returns></returns>
public DataSet GetDetailById(int studentid)
{
con.Close();
con.Open();
cmd = new SqlCommand("sp_VIEWINFO", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@studentid",studentid);
adap = new SqlDataAdapter(cmd);
adap.Fill(ds,"TBL_STUDENTQUALIFICATION");
return ds;
}

/// <summary>
/// This function GetPersonalInfoById has been made to
show the Personal details in grid view on the page
/// when the Admin enter any StudentId and clicks on
Submit button.
/// </summary>
/// <param name="studentid"></param>
/// <returns></returns>
public DataSet GetPersonalInfoById(int studentid)
{
con.Close();
con.Open();
cmd = new SqlCommand("sp_PERSONALINFO", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@studentid",studentid);
adap = new SqlDataAdapter(cmd);
adap.Fill(ds,"TBL_STUDENTDETAIL");
return ds;
}

/// <summary>
/// This function GetCourseInfoById has been made to
show the Course details on the page when the Admin enters
/// any StudentId and clicks on Submit button.
/// </summary>
/// <param name="studentid"></param>
/// <returns></returns>
public SqlDataReader GetCourseInfoById(int studentid)
{
con.Close();
con.Open();
cmd = new SqlCommand("sp_GETCOURSEINFO", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue
("@studentid",studentid);
rd = cmd.ExecuteReader();
return rd;
}

/// <summary>
/// This function InsertPaymentDetail has been made to
insert the details of Payment into the Database.
/// </summary>
/// <param name="studentid">Unique Id of the
student</param>
/// <param name="paymode">Mode of Payment</param>
/// <param name="amount">Amount that has been
paid</param>
/// <param name="ddraftno">DD or Cheque No if payment
is not in cash</param>
/// <param name="bankname">Name of the Bank</param>
/// <returns></returns>
public int InsertPaymentDetail(int studentid,string
admitdate, string paymode,string amount,string
ddraftno,string bankname,string courseapply)
{
con.Close();
con.Open();
cmd = new SqlCommand("sp_PAYDETAIL",con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@studentid",studentid);
cmd.Parameters.AddWithValue("@admitdate",admitdate);
cmd.Parameters.AddWithValue("@paymode",paymode) ;
cmd.Parameters.AddWithValue("@amount",amount);
cmd.Parameters.AddWithValue("@ddno",ddraftno);
cmd.Parameters.AddWithValue("@bankname",bankname);
cmd.Parameters.AddWithValue
("@courseapply",courseapply);
int temp = cmd.ExecuteNonQuery();
return temp;
}

/// <summary>
/// This function ShowPaymentDetail shows the
ReceiptNo,Course name,Amount in the FeeReceipt page
/// </summary>
/// <param name="studentid">Unique Id of the
student</param>
/// <returns></returns>
public DataSet ShowPaymentDetail(int studentid)
{
con.Close();
con.Open();
cmd = new SqlCommand("sp_SHOWRECEIPTINFO",con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@studentid",studentid);
adap = new SqlDataAdapter(cmd);
adap.Fill(ds,"TBL_PAYMENT");
return ds;
}

/// <summary>
/// This function ShowPersonalPaymentDetail has been
made to display First Name,Last Name in the FeeReceipt Page
/// </summary>
/// <param name="studentid">Unique Id of student</param>
/// <returns></returns>
public DataSet ShowPersonalPaymentDetail(int studentid)
{
con.Close();
con.Open();
cmd = new SqlCommand("sp_SHOWRECEIPT", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@studentid",
studentid);
adap = new SqlDataAdapter(cmd);
adap.Fill(ds,"TBL_STUDENTDETAIL");
return ds;
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is c++ a mid-level programming language?

694


What is the difference between multiple and multilevel inheritance in c++?

718


Write a c program for binary addition of two 8 bit numbers.

3758


What is #include iomanip?

635


How can you quickly find the number of elements stored in a dynamic array?

692






Explain function overloading and operator overloading.

720


Which is the best c++ software?

706


How should runtime errors be handled in c++?

715


Can a constructor return a value?

676


Using a smart pointer can we iterate through a container?

662


How is static data member similar to a global variable?

686


What is an arraylist c++?

796


What relational operators if statements in c++?

761


How can a called function determine the number of arguments that have been passed to it?

757


Why Pointers are not used in C++?

699