Print this page
Sunday, 27 January 2013 13:55

how to use jquery dialog to show content in asp.net

Written by 
Rate this item
(0 votes)

jquery dialog is not only best for showing only content but
also can be used to show form,buttons for postback.......
but for this jquery dialog must be appended to form as -

$(document).ready(function () {

$("#<%= Button5.ClientID %>").live('click', function (e) {
e.preventDefault();
$("#<%= Panel5.ClientID %>").dialog({
open: function (type, data) {
$(this).parent().appendTo("form");
},
autoOpen: true,
title: 'Multiple Bid',
resizable: true,
width: 'auto',
height: 'auto',
modal: true,
buttons: { OK: function () { $(this).dialog("close"); } }
});
});

});

in the above codes the panel5 holds all kinds of content including
buttons.so you can do whatever you like as you normally do in asp.net
web page.

Read 3107 times
Super User

Email This email address is being protected from spambots. You need JavaScript enabled to view it.
7