Sunday, July 1, 2012

how to pass multiple values in commandargument

 ShowHeader="false">
    
        
          
       
 
 
 
protected void gridview_RowCommand(object sender, GridViewCommandEventArgs e)
{
      string[] arg = new string[2];
      arg = e.CommandArgument.ToString().Split(';');
      Session["IdTemplate"] = arg[0];
      Session["IdEntity"] = arg[1];
      Response.Redirect("Samplepage.aspx");
}
 

No comments:

Post a Comment