<code class="mix"><span class="com">// Add this code anywhere you want (after jQuery has been loaded).</span> <br /><span class="com">// Edit it to add your own expressions.</span> <br /><span class="jquery">jQuery</span>.extend(<span class="jquery">jQuery</span>.expr[<span class="string">':'</span>], { <br /> <span class="com">///////////////////////////////////////////////////////////</span> <br /> <span class="com">// form elements that are submitable based on these criteria</span> <br /> <span class="com">// element is not disabled</span> <br /> <span class="com">// element has a selected or checked attribute</span> <br /> <span class="com">// element is a textarea</span> <br /> <span class="com">// element is an input of type text or hidden</span> <br /> <span class="com">//</span> <br /> <span class="com">// @usage: $(':submitable')</span> <br /> <span class="com">// @usage: $('#myForm :submitable')</span> <br /> submitable: <span class="string">"!a.disabled&&(a.selected||a.checked||(a.nodeName.toUpperCase()=='TEXTAREA')||(a.nodeName.toUpperCase()=='INPUT'&&(a.type=='text'||a.type=='hidden'||a.type=='password')))"</span>, <br /> <br /> <span class="com">///////////////////////////////////////////////////////////</span> <br /> <span class="com">// elements that have a type attribute not equal to hidden</span> <br /> <span class="com">// use if you want to select all input elements that are not hidden</span> <br /> <span class="com">// @usage: $('input:nothidden')</span> <br /> nothidden: <span class="string">"a.type&&a.type!='hidden'"</span> <br />}) <br /></code>
showModalDialog in Dialog Windows
ASP.NET Tutorial 22: Adding Client-Side Confirmation when Deleting
Lightbox Gone Wild
lightbox can be used as modal dialog box
need prototype
from Lokesh Dhakar's Lightbox and Lightbox 2
SELECT execution_count, st.text
FROM sys.dm_exec_query_stats as qs
CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) as st
WHERE st.text like '%FETCH NEXT FROM outerCursor INTO%'
b) How to: Debug T-SQL Using the SQL Server Management Studio
still from Visual Studio (Pro/Team, not Standard or Express)
Pooling=false
to you existing connection stringa). temptable in SQL Server
TABLE variable typeb) SQL Server, Server roles:
bulkadmindbcreator
diskadminprocessadmin
publicsecurityadmin
serveradminsetupadmin
sysadmin c) store database connection string encrypted,
d) All input is evil
e) no sa
SELECT-only account for data retrieval
EXECUTE-only account for stored procedures