how to Access a cell in data list after click button and Transmission to Variable…
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Below i also have 2 Label control that is going to display the ProductName and Price
protected void BuyNowButton_Click(object sender, EventArgs e) { Button BuyNowButton = (Button)sender; DataListItem item = (DataListItem)BuyNowButton.NamingContainer; Label NameLabel = (Label)item.FindControl("NameLabel"); Label ValueLabel = (Label)item.FindControl("ValueLabel"); ResultsLabel.Text += String.Format("Click: {0} - {1}", NameLabel.Text, ValueLabel.Text); }