Thursday, 30 July 2015

Fast Query Observation


  • Sorting is not allowed
  • Fast Query does not support Functions 
  • Fast query does not search standard values
  • Fast query does not support subquery 
  • ; is seperator for multiple query

How to redirect Permanent to given Url

   private void RedirectPermanent(string url)
        {
            HttpContext current = HttpContext.Current;
            current.Response.Clear();
            current.Response.StatusCode = 301;
            current.Response.RedirectLocation = url;
            current.Response.AddHeader("X-SFUM-Redirect", "true");
            current.Response.End();
        }

Friday, 17 July 2015

How to clear all values in dropdown

var ddl = document.getElementById("ddlKey");

ddl.options.length=0;

JSON.stringify()

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify


The JSON.stringify() method converts a JavaScript value to a JSON string..