asp.net code
<asp:Button ID="btnnext" runat="server" Text="Update" onclick="btnnext_Click" />
<div id= "DisplayEnteredDetails" >
<asp:GridView ID="grdDisplayEnteredDetails" runat="server" >
</asp:GridView>
</div>
calling function
<script type="Text/javascript">
$(function () {
$('#DisplayEnteredDetails').dialog({
autoOpen: false,
width: 600,
height: 500,
hide: 'Transfer',
open: function (type, data) {
$(this).parent().appendTo("form");
}
});
// Dialog button
$('#ctl00_Main_btnnext').click(function () {
$('#DisplayEnteredDetails').dialog('open');
return false;
});
});
</script>
i gave the link in master page like
<link rel="stylesheet" type="text/css" href="~/styles/StyleSheet.css" />
<link href="jquery/css/jquery.ui.all.css" rel="stylesheet" type="text/css" />
same code works in other project but not in my application