Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
vb:

VB
 Protected Sub edit_content_Click(sender As Object, e As System.EventArgs) Handles edit_content.Click
    MsgBox("dasfaf")
End Sub


asp:
ASP.NET
 <asp:TemplateField HeaderText="Edit">
    <ItemTemplate> 
        <asp:LinkButton ID="LinkButton3" runat="server">LinkButton</asp:LinkButton>
       <a href="#" class="table-actions-button ic-table-edit" id="create-user"></a>
   </ItemTemplate> 
  </asp:TemplateField> 


 <div id="dialog-form" title="Edit Content" style="width:1001px;">
 <div>
    <asp:Button ID="edit_content" runat="server" Text="Edit Content" class="buttons" />
</div>
</div>


jquery:

JavaScript
$("#create-user").button().click(function () {
$("#dialog-form").dialog("open");
});


my problem is that i'm putting an asp button in the jquery form to be abel to do some code in vb when the button is clicked... but the problem is that when i click on the button it does not go to the click event... if i put the button outside the dialog everything works... but i need it in the dialog ...

so how can i manage that?

any suggestions?
Posted
Comments
Try like below...

$("a[id*='create-user']").button().click(function () {
$("#dialog-form").dialog("open");
});


Make sure there are no errors in FireBug Console window.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900