what is the main difference between c and c++?
Answer Posted / hasrs
//Populate Student data according to search criteria
protected void btnSearchStudent_Click(object sender,
EventArgs e)
{
string Minqual;
// btnSearchStudent.Attributes.Add
("OnClick","PopupOnView.aspx?namee="+
ds.Reset();
Minqual = objDAL.getMinQual
(DropDownListCourse.SelectedItem.Text);
ds = objDAL.PopulateStudent(Minqual,
DropDownListCourse.SelectedItem.Value, int.Parse
(txtMinQual.Text), int.Parse(txtMaxQual.Text));
GridView2.DataSource = ds.Tables[0];
GridView2.DataBind();
}
****************************************************
//Method will get Minimum Qualification for applied
course
public String getMinQual(string coursename)
{
conn.Close();
conn.Open();
sqlcmd = new SqlCommand("SP_ADMIN_FUNCTION", conn);
sqlcmd.CommandType = CommandType.StoredProcedure;
sqlcmd.Parameters.AddWithValue
("@CALLTYPE", "GETMIN");
sqlcmd.Parameters.AddWithValue
("@COURSE_NAME",coursename );
//DR = new SqlDataReader();
DR = sqlcmd.ExecuteReader();
if (DR.Read())
return DR.GetString(0).ToString();
else
return null;
}
//Method will filter student and populate it according
to search criteria
public DataSet PopulateStudent(string MinQual,String
COURSEAPP,int min ,int max)
{
conn.Close();
conn.Open();
sqlcmd = new SqlCommand("SP_ADMIN_FUNCTION", conn);
sqlcmd.CommandType = CommandType.StoredProcedure;
sqlcmd.Parameters.AddWithValue
("@CALLTYPE", "POPULATE");
sqlcmd.Parameters.AddWithValue("@SELECTCOURSE",
COURSEAPP);
sqlcmd.Parameters.AddWithValue("@MIN_QUAL",
MinQual);
sqlcmd.Parameters.AddWithValue("@MIN", min);
sqlcmd.Parameters.AddWithValue("@MAX", max);
sqladap = new SqlDataAdapter();
sqladap.SelectCommand = sqlcmd;
sqladap.Fill(dataset);
return dataset;
}
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
What is the point of polymorphism?
Can destructor be overloaded?
What is purpose of inheritance?
What is the oops and benefits of oops programming?
write a program that takes input in digits and display the result in words from 1 to 1000
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
What is constructor overloading in oop?
How can you overcome the diamond problem in inheritance?
How does polymorphism work?
Why interface is used?
What is difference between pop and oop?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What does and I oop mean in text?
What is ambiguity in inheritance?
What is basic concept of oop?