Below is the code for generate Model pop in share point or .net . I used this code in my custom share point user control
<script type="text/javascript" src="/_layouts/images/MyUserControl/jquery.min.js"></script>
<script type="text/javascript" src="/_layouts/images/MyUserControl/jquery-ui.js"></script>
<link href="/_layouts/images/MyUserControl/jquery-ui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function ShowPopup() {
$("#dialog").dialog({
title: "Associate Deatils",
width: 800,
Height: 670,
buttons: {
Close: function () {
$(this).dialog('close');
}
},
modal: true
});
}
</script>
Here is the C# call :
Page.ClientScript.RegisterStartupScript(this.GetType(), "ShowPopup", "ShowPopup();", true);
<script type="text/javascript" src="/_layouts/images/MyUserControl/jquery.min.js"></script>
<script type="text/javascript" src="/_layouts/images/MyUserControl/jquery-ui.js"></script>
<link href="/_layouts/images/MyUserControl/jquery-ui.css" rel="stylesheet" type="text/css" />
function ShowPopup() {
$("#dialog").dialog({
title: "Associate Deatils",
width: 800,
Height: 670,
buttons: {
Close: function () {
$(this).dialog('close');
}
},
modal: true
});
}
</script>
Here is the C# call :
Page.ClientScript.RegisterStartupScript(this.GetType(), "ShowPopup", "ShowPopup();", true);
Comments
Post a Comment