title: How to send multiple command arguments through command button ?(RowCommand Event)
body: <p>I'm Trying to send accross multiple command arguments when a rowcommand is called:</p>
  
  <pre><code>                &lt;asp:TemplateField HeaderText="Status"&gt;
                      &lt;ItemTemplate&gt;
                          &lt;asp:Button ID="btnAct" runat="server" CausesValidation="False" CommandName="Action"
                              Text='De-Activate' CommandArgument='&lt;%# Bind("isActiveYN") + ";" + Bind("employeeid") %&gt;' /&gt;                           
  
  
  
                          &lt;asp:Label ID="lblActivate" runat="server" Text='&lt;%# Bind("isActiveYN") %&gt;' Visible='False'&gt;&lt;/asp:Label&gt;
                      &lt;/ItemTemplate&gt;
                  &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p><strong>How ever when I use more than one argument it shows only the latter half, in this the <code>employeeid</code> .If I specify just a single argument,it works fine.</strong></p>
  
  <pre><code>protected void gvEmp_RowCommand(object sender, GridViewCommandEventArgs e)
      {
          string changeactive = null;
  
          if (e.CommandName == "Action")
          {
              //LinkButton lnkPortal = (LinkButton)sender;
              string isactivestatus = Convert.ToString(e.CommandArgument);
  
              string[] arg = new string[2];
  
              arg = isactivestatus.Split(';');
              //lblTest.Text = isavtivestatus.Text;
              string status = Convert.ToString(arg[0]);
              int empid = Convert.ToInt32(arg[1]);
  
              if (status.ToUpper() == "Y")
              {
                  lblTest.Text = isactivestatus + " Will Change to N  " ;
                  changeactive = "N";
              }
              else if (arg[0].ToUpper() == "N")
              {
                  lblTest.Text = isactivestatus + " Will Change to Y  " ;
                  changeactive = "Y";
              }
  
              DataSet ds = new DataSet("Employees");
  
              string query = "Update employees set isActiveYN='" + changeactive 
                              + "' where employeeid=" + empid;
  
  
              SqlConnection con = new SqlConnection("Password=admin;User ID=admin;Initial Catalog=asptest;Data Source=dbsvr");
              SqlDataAdapter da = new SqlDataAdapter(query, con);
  
              da.Fill(ds);
              BindGrid();
          }
      }
  </code></pre>
  
  <p>Please point out the mistake.I have tried debugging but couldn't gauge what's wrong.</p>