Output server variables….

<%@ Page Language=”C#” AutoEventWireup=”true” %> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt; <% foreach (string var in Request.ServerVariables) { Response.Write(var + ” — ” + Request[var] + “<br>”); } %> <html xmlns=”http://www.w3.org/1999/xhtml&#8221; > <head runat=”server”> <title>Untitled Page</title> </head> <body> <form id=”form1″ runat=”server”> </form> </body> </html>

A jQuery Autocomplete (with .Net) which actually works

Use JSBeautifier to format JS: $(“[id$=’_txtCountermandedBy’]”).autocomplete({ source: function(request, response) { var param = { qry: $(“[id$=’_txtCountermandedBy’]”).val() }; $.ajax({ type: “POST”, url: “~/../MyWorkBasket.aspx/GetUserAutocomplete”, data: JSON.stringify(param), dataType: “json”, contentType: “application/json; charset=utf-8”, dataFilter: function(data) { return data; }, success: function(data) { response($.map(data.d, function(item) { return { value: item.Value, label: item.Label } })) }, error: function(XMLHttpRequest, textStatus, errorThrown) { […]

jQuery Ajax helper method

//Helper method to call page methods with AJAX function PageMethod(fn, paramArray, successFn, errorFn) { var pagePath = window.location.pathname; //Create list of parameters in the form: //{“paramName1″:”paramValue1″,”paramName2″:”paramValue2″} var paramList = ”; if (paramArray.length > 0) { for (var i = 0; i < paramArray.length; i += 2) { if (paramList.length > 0) paramList += ‘,’; paramList […]

How to unlock the Samsung Galaxy Ace GT-S5380

Perform factory reset – hold down power button and hold button simultaneously until the reset menu appears Optional: connect phone to Kies to see check Android firmware version Install Superuser app by Chainfire Install Galaxy Ace unlock Visit http://forum.xda-developers.com/showthread.php?t=1282011, download root.zip, and copy onto SD card Reset phone and apply update from SD card, then reboot phone […]