• ,

    Save as json file error in internet explorer

    when using asp.net mvc json result return , in internet explorer , save as json file option will come. this can be resolved by // this was previous //…

  • Contains in Linq with entity

    Sometimes we require to use In or Not in operator in LINQ. below is the example var setToRemove = “Approved,Rejected”.Split(‘,’); inv.StatusList = context.BindDropDown(fieldName: “SaneInv”, pageName: “SaneInvoice”).AsEnumerable().Where(i=>setToRemove.Contains(i.dmnValue_Text)). Select(x => new…

  • New Feature in wcf 4.5

    Simplified Generated Configuration files, generated configuration file on client will only have non-default binding configuration. moreā€¦ Validating WCF Configuration is now part of v4.5. While compiling if there are…

  • ,

    Nullable Tempdata in MVC

    DateTime? FromDate = TempData[“FromDate”] as DateTime?; DateTime? ToDate = TempData[“ToDate”] as DateTime?; int? UserIdInv = TempData[“UserIdInv”] as int?;

  • Form data in jquery and json

    var formData = new FormData(); formData.append(“username”, “Groucho”); formData.append(“accountnum”, 123456); // number 123456 is immediately converted to string “123456” // HTML file input user’s choice… formData.append(“userfile”, fileInputElement.files[0]); // JavaScript file-like…

  • Wcf calling by javascript and ajax

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <title>Complex Type AJAX Service Client Page</title> <script type=”text/javascript”> // <![CDATA[ // This function creates an asynchronous call to…

  • Case when in where clause in sql server

    In below example case when used for multiple condition in sql server USE [PCCAS] GO /****** Object: StoredProcedure [dbo].[sp_rpt_Outreach_Adhoc_Report] Script Date: 05/21/2014 12:09:12 ******/ SET ANSI_NULLS ON GO SET…

  • Visible Column depent on group by SSRS

    =IIF((Fields!Audience.IsMissing) Or (Parameters!GroupBy.Value = “Audience”),true,false)