Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 1st, 2012  |  syntax: None  |  size: 0.53 KB  |  hits: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Bind data to the link button for onclientclick() in repeater control
  2. <asp:LinkButton ID="lnk1" runat="server" Text="more" OnClientClick='loadOtherForm(<%# Eval("EventType")%>,<%# Eval("EventID") %>);' OnClick="lnk1_click" CommandArgument = '<%# Eval("PKID") %>' PostBackUrl='<%# GetDetailPagePath(Eval("EventType"),Eval("EventID")) %>'></asp:LinkButton>
  3.        
  4. OnClientClick="loadOtherForm('<%# Eval("EventType")%>','<%# Eval("EventID") %>');"
  5.        
  6. OnClientClick='<%# Eval("EventType", "loadOtherForm("{0}", ") + Eval("EventID", ""{0}")") %>'