vendredi 28 novembre 2014

Link button issue inside gridview in sharepoint



i have link button inside gridview. can some one help me to form proper URL for this



<asp:TemplateField HeaderText="View" >
<ItemTemplate><asp:LinkButton runat="server" ID="lnkView" OnClientClick="OpenDialog('/SitePages/View%20Booking.aspx?','','');return false;" ><%#Eval("Booking Name") %></asp:LinkButton>

</ItemTemplate>

</asp:TemplateField>


if i use above, than popup opens fine on link button click but if append parameter as shown below, it throws error on load itself.



<asp:LinkButton runat="server" ID="lnkView" OnClientClick="OpenDialog('/SitePages/View%20Booking.aspx?BID="+ Eval("ID")+"','','');return false;" ><%#Eval("Booking Name") %></asp:LinkButton>


can some one help to form proper URL?








0 commentaires:

Enregistrer un commentaire