When I tried to focus on compiler in code, I made break point on code.
if (!IsPostBack)
{
using (SqlConnection Con = Connection.GetConnection())
{
if (Request.QueryString["Category_Id"] != null &&
DDlProductFamily.SelectedIndex < 0)
{
SqlCommand Com = new SqlCommand("SelectAllCtageories_Front", Con);
Com.CommandType = CommandType.StoredProcedure;
Com.Parameters.Add(Parameter.NewInt(
"@Category_Id", Request.QueryString["Category_Id"]));
SqlDataAdapter DA = new SqlDataAdapter(Com);
DA.Fill(dt);
DataList1.DataSource = dt;
DataList1.DataBind();
}
But I cannot check condition although I had the value of query string.
You can use
F10andF11to step through the code once your breakpoint is hit.If you want to see values of the variables then you can hover over them or
right-clickandadd watchoradd quick watch.If you want to check if your condition is
trueorfalsethen select the whole condition right click and select one of the options mentioned above.I don’t understand your question. But you would like Sarah Ford’s Blog.