i would like to make a popup dialog box when a user click on a button with user control in asp.net but i keep failing as the dialog box does not open at all. here is what i have in my .ascx file:
<div id="dialog" title="Basic dialog">
<p>some text here</p>
</div>
<script>
$(function () {
$("#dialog").dialog();
});
and here is what i have in my .aspx file:
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js" type="text/javascript"> </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<asp:Button ID="btnR" runat="server" Text="Requirements" CssClass="btn btn-info pull-right" />
</asp:Content>
and i have jquery 1.11.0 min in my materpage so what am i doing wrong that the dialog box does not popup? thank you in advance