How to pass multiple values through command argument in Asp.net?

I checked your code and seems to be no problem at all. please make sure Image commandArgument getting value. check it first binding in label whether you are getting value. However, here is sample which I’m using in my project <asp:GridView ID=”GridViewUserScraps” ItemStyle-VerticalAlign=”Top” AutoGenerateColumns=”False” Width=”100%” runat=”server” OnRowCommand=”GridViews_RowCommand” > <Columns> <asp:TemplateField SortExpression=”SendDate”> <ItemTemplate> <asp:Button ID=”btnPost” CssClass=”submitButton” … Read more

Passing multiple argument through CommandArgument of Button in Asp.net

You can pass semicolon separated values as command argument and then split the string and use it. <asp:TemplateField ShowHeader=”false”> <ItemTemplate> <asp:LinkButton ID=”lnkCustomize” Text=”Customize” CommandName=”Customize” CommandArgument=”<%#Eval(“IdTemplate”) + “;” +Eval(“EntityId”)%>” runat=”server”> </asp:LinkButton> </ItemTemplate> </asp:TemplateField> at server side protected void gridview_RowCommand(object sender, GridViewCommandEventArgs e) { string[] arg = new string[2]; arg = e.CommandArgument.ToString().Split(‘;’); Session[“IdTemplate”] = arg[0]; Session[“IdEntity”] = … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)