Sunday, December 14, 2014

Javascript Yes / No confirm dialog

You can see this

  function Remove(ctrl) {   
    if (confirm('Pressing OK will delete this record. Do you want to continue?') == false) {   
     return false;   
    var row = $(ctrl).parent().parent().parent().children().index($(ctrl).parent().parent());   
  //  alert(row);   
    var form = $("#frmStudentDetails");   
    var serializedForm = form.serialize();   
    var url = "/Student/RemoveStudentDetails";   
    $.post(url, serializedForm, function (result) {   
    }, "html");   
    return false;   

C# print file on LAN Printer

If you want to print any file on network printer then you can try with this code block // Change Default Printer System.Ma...