I'm new to ASP.NET 4.0. In my project, the data'a are displayed in the Grid View. The user selects a row to edit based on two values which are stored in the Database. My code for calling single value is given here. How can I get datas based on two values from the database. PLease help me with this.
grdViewVacationInfo_RowCommand()
{
if (e.CommandName == "ViewInfoBtn")
{
int index = int.Parse(e.CommandArgument.ToString());
string key = grdViewVacationInfo.DataKeys[index].Value.ToString();
Session["ke"] = key.ToString();
}
}
This is how ill call a single value. but how can i get the more than two values and store it in a Session or any variable.
Thanks In Advance