Posted on: 6/10/2014 1:26:31 AM | Views : 405

Hi 
I have added a like button on my product listview, and the like button suppose to get the value of the ads title and id and the userid whose clicked on this btn and stored in favorite table as it mention in the code but i have a problem as i am still biggner in c# and i dont know how fix it very well could you please help with that and aslo i will be thankfull if you add a message to user that in case if he didnt login and he click on the likebtn will recive a message " Please login to add this ads to your favorite list".
you can find this screen record that may can explain what i am meaning 
Many thanks for all of you
protected void likebtn_Click(object sender, ImageClickEventArgs e) { SqlConnection likecn = new SqlConnection(cs); SqlCommand likecmd = new SqlCommand(); string sqlstatment = "INSERT INTO favourite (AdsID, UID, AdsTit) VALUES ( ...

Go to the complete details ...