CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets for: Stefan Sandström
SQL
SELECT DATEADD(dd, 0, DATEDIFF(dd, 0, GETDATE())) 
select convert(varchar(10),getdate(),121)
CONVERT(VARCHAR,start_dttm,111)
by Stefan Sandström   February 23, 2010 @ 12:42am
Tags: sql, date
254 Views
no comments
 
C#
catch:b*\([^)]*\):b*\{:b*\}
by Stefan Sandström   November 13, 2009 @ 5:28am
Tags: Regexp
219 Views
no comments
 
XML
<elmah>      
    <errorFilter>   
         <test>    
            <equal binding="HttpStatusCode" value="404" type="Int32" />         
   </test>      
  </errorFilter>  
  </elmah>
by Stefan Sandström   October 02, 2009 @ 4:28am
Tags: Elmah
204 Views
no comments
 
XML
<?xml version="1.0"?><configuration> 
        <system.web>    
   <httpModules>      
     
 <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/> 
           <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah"/>   
     </httpModules>   
 </system.web>    
<system.webServer>   
     <validation validateIntegratedModeConfiguration="false"/>        <modules>       
by Stefan Sandström   October 02, 2009 @ 4:26am
Tags: Elmah
216 Views
no comments
 
XML
<?xml version="1.0"?><configuration>   
<elmah>
       <security allowRemoteAccess="1" /> 
 </elmah> <location path="elmah.axd">   
     <system.web>           
 <authorization>            
    <allow roles="Admin" /> 
               <deny users="*" />    
        </authorization>     
   </system.web>          
by Stefan Sandström   October 02, 2009 @ 4:24am
Tags: Elmah
140 Views
no comments
 
C#
' ... Save user's information to the database ...
...
' Attempt to send the user a confirmation e-mail
        ' ... Send an e-mail ...
Try
Catch e As Exception
    ' Error in sending e-mail. Log it!
    ErrorSignal.FromCurrentContext().Raise(e)
End Try
by Stefan Sandström   October 02, 2009 @ 4:19am
Tags: Elmah
160 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate