Posted on: 11/24/2012 12:31:34 AM | Views : 416

Using this code I am essentially trying to allow the logged in user to log a brand new transaction but having the ability to assign different members also. For example lets say you ordered a pizza that night for your friends and they all owe you 10 bucks each. You would then login to the site, add a new transaction titled pizza order. You would then right 60 dollars for the pizza cost, and then select each member from the gridview list who was there that night. The below code gets the email address of the selected contact displayed on the Gridview1 and assigns that email to the String contactEmail
String contactEmail=""
public void GridView1_SelectedIndexChanged(object sender, EventArgs e) { GridViewRow row = GridView1.SelectedRow; contactEmail = GridView1.SelectedRow.Cells[1].Text.ToString(); }
This will then assign the email address of the contact selected from the GridView1 to the String contactEmail. Below we then ar ...

Go to the complete details ...