Passing more than one command Arguments in gridview in asp.net -
I have a template-field in a gridview with an image button inside it. I have two command arguments within an image button I need to use i here is my code
& asp: TemplateField ItemStyle- width = "30px" & gt; & Lt; ItemTemplate & gt; & Lt; Asp: ImageButton id = "btnAvaililabitly" runat = "server" imageUrl = "~ / cms / image / available_color page" width = "12px" height = "12px" command name = "availability" tooltip = "room availability" command agreement = '& Lt;% # Eval ("HotelID")% & gt; /> & Lt; / ItemTemplate & gt; & Lt; / ASP: TemplateField & gt; Please
You can send a different string with commas and Value can be collected on the server side
command argument = '& lt;% # string.format ("{0}, {1}", Evil ("name1"), EVAL "Name 2")%>
Comments
Post a Comment