Monday, June 4, 2012

Sending Multiple Parameters using COMMANDARGUMENTS

To send multiple parameters from CommandArguments in a grid (for ex. Button is
 '<%# String.Format("{0},{1}", Eval("FileID"), Eval("JobID")) %>'


<asp:Button ID="btnUnlinkFile" runat="server" CssClass="button gray small" CommandName="unlinkfile" CommandArgument='<%# String.Format("{0},{1}", Eval("FileID"), Eval("JobID")) %>' ToolTip="Unlink this File" Text="x" OnClientClick="return confirm('Are you certain you want to Unlink this file ?');" />

No comments: