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) {Continue reading “A jQuery Autocomplete (with .Net) which actually works”

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 phoneContinue reading “How to unlock the Samsung Galaxy Ace GT-S5380”

Find largest tables in db

from : http://stackoverflow.com/questions/2094436/how-to-find-largest-objects-in-a-sql-server-database use SELECT t.NAME AS TableName, i.name as indexName, sum(p.rows) as RowCounts, sum(a.total_pages) as TotalPages, sum(a.used_pages) as UsedPages, sum(a.data_pages) as DataPages, (sum(a.total_pages) * 8) / 1024 as TotalSpaceMB, (sum(a.used_pages) * 8) / 1024 as UsedSpaceMB, (sum(a.data_pages) * 8) / 1024 as DataSpaceMB FROM sys.tables t INNER JOIN sys.indexes i ON t.OBJECT_ID = i.object_idContinue reading “Find largest tables in db”