Hi
I need your help with below code. The below code suppose in case the user don't have any record in the Orders table to show him the panel and label message, and if he already have then it will show to him his orders but in fact nothing is happening the user
already has order and it didn't show it as well i have tried with user that he dont have any order and even the panel and the label did not appear.
if (!IsPostBack)
{
if (Session["UsrNme"] == null)
{
using (SqlConnection UsOrderCon = new SqlConnection(sc))
{
UsOrderCon.Open();
string chksUsOrderstring = "Select count (*) from Orders where UID=@chkUID";
SqlCommand ChkUsOrderCMD = new SqlCommand(chksUsOrderstring, UsOrderCon);
ChkUsOrderCMD.Parameters.AddWithValue( ...
Go to the complete details ...