Format:
Recent snippets matching tags of Lock
declare @tablevar table(spid int, dbid int, objid int, indid int, [type] varchar(64), resource varchar(64), mode varchar(64), status varchar(64)) insert into @tablevar exec sp_lock select spid, dbid, ObjId, object_name( objid), IndId, [type], Resource, Mode, Status from @tablevar
57 Views
no comments
-- -- Dump object names for any locks currently waiting -- declare @tablevar table(spid int, dbid int, objid int, indid int, [type] varchar(64), resource varchar(64), mode varchar(64), status varchar(64)) insert into @tablevar exec sp_lock select object_name( objid) from @tablevar where status = 'WAIT'
46 Views
no comments
// Iphone Javascript Clock var timerID = null; var timerRunning = false; function stopclock() { if (timerRunning) clearTimeout(timerID); timerRunning = false; } function showtime() { var timeValue;
191 Views
no comments
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="jQueryBlockUi._Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript" src="http://malsup.com/jquery/block/jquery.blockUI.js?v2.28"></script> </head> <body>
1470 Views
no comments
.smallprogress,.smallprogressright { width: 16px; height: 16px; background-image: url(images/loading_small.gif); background-repeat: no-repeat; display: inline-block; xdisplay: none; } .smallprogressright { float: right }
338 Views
no comments
private static object _SyncLock = new object(); public TableInfo<TEntity> TableInfo { get { if (_TableInfo == null) { lock (_SyncLock) {
261 Views
no comments
private void RedirectToNextView(string previousView, ViewSettings viewSettings) { try { if( previousView == null ) // Fix HttpContext.Current.Request.ApplicationPath because doesn't work well whe application is in root directory // when application is under root ApplicationPath returns "/" // when application is under sub foder ApplicationPath returns "/sub folder" // so remove end "/" // see http://weblogs.asp.net/dneimke/archive/2004/05/17/133116.aspx
344 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
