Script(s)

technology as-is

February 24, 2006
by gchandra
0 comments

View Negative Images Instantly

Some websites publish negative images to hide the actual identity. Creating negative image can be easily done using Adobe Photoshop. Open an Image and Press CTRL + I, save the image. To reveal the actual picture do the same. CTRL … Continue reading

February 15, 2006
by gchandra
2 Comments

ASP.Net : Force File Download

‘ Stream File Content to Browser Sub Download(ByVal sPath As String, ByVal iFormCode As Integer, ByVal sExt As String) Dim sFileName As String sFileName = CType(iFormCode, String) & “.” & sExt ‘Dim filename As String = sPath Response.Clear() If sExt.ToLower … Continue reading

February 15, 2006
by gchandra
0 comments

SQL2000 : Drop Database Contents from Query Analyzer

U : Table P : SP PK : Primary Key UQ : Unique Constraint F : Foreign Key FN : Functions D : Default To see the list of User Create Items — SELECT * FROM sysObjects WHERE xType in … Continue reading

February 6, 2006
by gchandra
0 comments

Submit page on pressing ENTER Key like google

Add this line to Page_Load event Page.RegisterHiddenField(“__EVENTTARGET”, “btnSearch”) replace btnSearch with your button name

February 6, 2006
by gchandra
0 comments

Set Cursor on first control in asp.net

To set the cursor at default TEXTBox / Dropdown in Asp.net Body onload=OnLoad() For HTML Controls function OnLoad() { window.document.frmLogin.txtUser.focus(); } For Server Side ASP.Net Controls function OnLoad() { document.all(‘ddlSelect’).focus(); }