Sometimes when an ASP.NET page loads up from the root of a directory, the page name is not revealed via HTTP headers. If it’s a webforms application, simply scroll down the Postback…
Find column in SQL
SELECT name FROM sysobjects WHERE id IN ( SELECT id FROM syscolumns WHERE name = ‘Column Name’) Technorati Tags: sql-server,t-sql
Poison Cookies
I thought I coined the term, but it exists already http://www.testingreflections.com/node/view/3701 Technorati Tags: web-development,cookies,javascript,debugging
Finding PID for IIS Application Pool
This is pretty simple. Create a batch file, call it app-pool-pid.bat for instance. Edit it and add the following lines into the file: @echo off cscript.exe c:windowssystem32iisapp.vbs pause Technorati Tags: iis,app-pools,windows,windows-server,application-pools,pid
Warning label
Generate your own: http://www.warninglabelgenerator.com/
Combining Database IDs
There was a interesting requirement recently that came up. It was to basically modify and existing BIT field and ALTER it to be an INT field. Essentially it was to really push…
Enabling ASP Errors on Vista/Windows 7 (IIS7-7.5)
Pretty tricky, the title says it all cscript %systemdrive%inetpubadminiscriptsadsutil.vbs set w3svc/AspScriptErrorSentToBrowser true (to allow error message send to client) On a x64 OS (I run Windows 7 RC x64) cscript C:Windowswinsxsamd64_microsoft-windows-iis-legacyscripts_31bf3856ad364e35_6.1.7100.0_none_4b5800ce84aa413cadsutil.vbs set…
Check-In/Out Sharepoint with Office Quickly
I feel like I should explain this really cool idea that I had. Basically to quickly check-in and check-out documents in Sharepoint. I’ll show you with MSword. First thing to do is…
Run ASP.NET Development Server without Visual Studio
Ever want to run ASP.NET development server without having to fire up Visual Studio Debugger. You can create your own scripts or commands by being able to access this. %WINDOWS PATH%Microsoft.NETFrameworkv2.0.50727WebDev.WebServer.exe Here…
Search for text in SQL database procs/functions
declare @searchString varchar(100) Set @searchString = '%word_to_find%' SELECT Distinct SO.Name FROM sysobjects SO (NOLOCK) INNER JOIN syscomments SC (NOLOCK) on SO.Id = SC.ID AND SC.Text LIKE @searchString ORDER BY SO.Name Technorati Tags:…