Posted on: 7/11/2014 11:29:40 AM | Views : 347

Hi 
In my adsdetails page i have a button to contact the advertiser the labels inside the panel will get the values from another labels inside the page so how i can do that can anyone help me with that please

if (Session["UsrNme"] != null) { SqlConnection Msgsqlcon = new SqlConnection(cs); SqlCommand Msgcmd = new SqlCommand(); string sqlstatment = "INSERT INTO mails (AdsID, Mestitle, Message, UID, From, Date) VALUES (@AdsID,@Mestitle,@Message,@UID,@From,@Date)"; Msgcmd.Connection = Msgsqlcon; Msgcmd.CommandType = CommandType.Text; Msgcmd.CommandText = sqlstatment; Msgcmd.Parameters.AddWithValue("@AdsID", adsnummsglbl.Text); Msgcmd.Parameters.AddWithValue("@Mestitle", adstitmsglbl.Text); Msgcmd.Parameters.AddWith ...

Go to the complete details ...