Posts

Showing posts from April, 2016

ASP.NET: Converting Web Forms to Content Pages

This is for my own reference while we convert some old sites to shiny new stuff. But, other people might find this useful. Every web page in the site was created as an ASP.NET Web Form. No Master Pages were used. To ensure a consistent look-and-feel and consolidate common pieces of code (such as the code that checks whether or not a user is logged in), the Web Forms should be converted to Content Pages. Follow the steps below to convert an existing Web Form to a new Content Page. Open the Web Form to the markup view. Add the following to the @Page directive at the top of the form: MasterPageFile="~/Site.Master" The resulting @Page directive should look something like this: <%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Logon.aspx.vb" Inherits="SGBP.Logon" %>   Remove

How to Add New Routes to ASP.NET Friendly URLs

If you haven't discovered or used Friendly URLs in your ASP.NET Web Forms applications, then you should take a look. If you're familiar with routing in ASP.NET MVS, then Friendly URLs in Web Forms will look much (if not exactly) the same. There's a handful of great overviews, how-to's, and tutorials out there. The following two were enough to jump start me: Introducing ASP.NET FriendlyUrls -- cleaner URLS, easier Routing, and Mobile Views for ASP.NET Web Forms , by Scott Hanselman Walkthrough: Using ASP.NET Routing in a Web Forms Application , from the MSDN Library You  an retrofit an older Web Forms applications to use Friendly URLs. Or, if you're creating a Web Forms application

Web Deployment Overview for Visual Studio and ASP.NET, on MSDN

https://msdn.microsoft.com/en-us/library/dd394698.aspx

How to build and run your first deep learning network, by Pete Warden

https://www.oreilly.com/learning/how-to-build-and-run-your-first-deep-learning-network

Deep Learning, an An MIT Press book by Ian Goodfellow, Yoshua Bengio and Aaron Courville

http://www.deeplearningbook.org/

How to Drop All Data from Your Database

Quick and handy script, copped from StackOverflow: -- DROP ALL ROWS IN ALL TABLES EXEC sp_MSForEachTable 'DISABLE TRIGGER ALL ON ?' GO EXEC sp_MSForEachTable 'ALTER TABLE ? NOCHECK CONSTRAINT ALL' GO EXEC sp_MSForEachTable 'DELETE FROM ?' GO EXEC sp_MSForEachTable 'ALTER TABLE ? CHECK CONSTRAINT ALL' GO EXEC sp_MSForEachTable 'ENABLE TRIGGER ALL ON ?' GO Full post on StackOverflow can be found here: http://stackoverflow.com/questions/8439650/how-to-drop-all-tables-in-a-database