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

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -