title: How to pass multiple values through command argument in Asp.net?
body: <p>I have ImageButton with CommandArgument attribute which is having multiple Eval value. When I click one of them I want to pass values to ImageButton2_Click event but it does not work because Command arguments is null.</p>
  
  <pre><code>&lt;div class="sag-re-icerik" id="icerik2" runat="server"&gt;Lorem ipsum dolor sit amet, consectetur commodo et convallis et, auctor viverra metus. Aenean pharetra, arcu nec viverra mollis, turpis neque feugiat massa, non dapibus neque nunc ac orci. &lt;/div&gt;
      &lt;div class="oy-verme"&gt;
          &lt;div class="yildiz"&gt;&lt;asp:ImageButton ID="ImageButton4" runat="server" Height="19px" ImageUrl="~/images/yildiz.png" onclick="ImageButton2_Click" Width="20px"  style="position: relative; top: 13px; left:6px; float:left;  "    commandArgument='&lt;%#Eval("sdasdas") + ","+Eval("fafasfa") %&gt;' /&gt;&lt;/div&gt;
          &lt;div class="yildiz"&gt;&lt;asp:ImageButton ID="ImageButton5" runat="server" Height="19px" ImageUrl="~/images/yildiz.png" onclick="ImageButton5_Click" Width="20px"  style="position: relative; top: 13px; left:8px; float:left;" commandArgument='&lt;%#Eval("row[0].ToString()") + ","+Eval("row[1].ToString()") %&gt;'/&gt;&lt;/div&gt;
          &lt;div class="yildiz"&gt;&lt;asp:ImageButton ID="ImageButton6" runat="server" Height="19px" ImageUrl="~/images/yildiz.png" onclick="ImageButton2_Click" Width="20px"  style="position: relative; top: 13px; left:10px ; float:left; " commandArgument='&lt;%#Eval("row[0].ToString()") + ","+Eval("row[1].ToString()") %&gt;' /&gt;&lt;/div&gt;
          &lt;div class="yildiz"&gt;&lt;asp:ImageButton ID="ImageButton3" runat="server" Height="19px"  ImageUrl="~/images/yildiz.png" onclick="ImageButton2_Click" Width="20px" style="position: relative; top:13px; left:12px ; float:left;" commandArgument='&lt;%#Eval("row[0].ToString()") + ","+Eval("row[1].ToString()") %&gt;' /&gt;&lt;/div&gt;
          &lt;div class="yildiz"&gt; &lt;asp:ImageButton ID="ImageButton2" runat="server" Height="19px" ImageUrl="~/images/yildiz.png" onclick="ImageButton2_Click" Width="20px"  style="position: relative; top: 13px; left: 14px; float:left;" commandArgument='&lt;%#Eval("row[0].ToString()") + ","+Eval("row[1].ToString()") %&gt;' /&gt;&lt;/div&gt;
          &lt;div class="oy-sil"&gt;&lt;img src="images/oy-sil.png" width="11" height="13" style="position: relative; top: 30px; " /&gt;&lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is the code-behind:</p>
  
  <pre><code>protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
  {
      ImageButton objImage = (ImageButton)sender;
  
      string[] commandArgs = objImage.CommandArgument.ToString().Split(new char[] { ',' });
      string id = commandArgs[0];
      string text = commandArgs[1];
  
  
      //  string s= Imageid.UniqueID.ToString();
      //this.baslik2.Text = s;
  }
  </code></pre>