Posted on: 9/5/2015 11:56:13 PM | Views : 798

Hello there
the below code is working without any problem, but what i looking for before the process the reset of the code to check first if the session is equal adsusrnmlbl.text if yes show message into label adsexictlbl: " Sorry you cant send message to your self" and if the session is not equal adsusrnmlbl.text then process the rest of the code. so please could you help with this request 

protected void Sndmailtoadder_Click(object sender, ImageClickEventArgs e) { var ChikUsr = adsusrnmlbl.Text; if (Session["UsrNme"] != null) { { SqlConnection mssginfocon = new SqlConnection(cs); sendmsgpanel.Visible = true; adsdetpanel.Visible = false; mssginfocon.Open(); SqlCommand mssginfoCM = new Sq ...

Go to the complete details ...