--this may b helpful for u
--Jquery Code
$(document).ready(function () {
LoadUserCOntrol();
});
function LoadUserCOntrol() {
var ControlName = "UserControls/Common_UC.ascx";
$.ajax({
type: "POST",
url: "CustomBooking.aspx/Result",
data: '{ "controlName":"' + ControlName + '"}',
contentType: "application/json; charset=utf-8",
dataType: "json",
async: false,
success: function (response, Control) {
$('#sortable').append(response.d);
},
error: function (msg) {
alert(msg);
$('#sortable').html(msg.d);
}
});
}
[WebMethod]
public static string Result(string controlName)
{
try
{
Page page = new Page();
UserControl userControl = (UserControl)page.LoadControl(controlName);
userControl.EnableViewState = false;
HtmlForm form = new HtmlForm();
page.Controls.Add(userControl);
StringWriter textWriter = new StringWriter();
HttpContext.Current.Server.Execute(page, textWriter, false);
return textWriter.ToString();
}
catch (Exception ex)
{
return ex.ToString();
}
}