Thursday, July 25, 2013

mixed aspx/mvc sites

  public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.aspx/{*pathInfo}");

should be in the global asax


(i have found that it works without this - don't know why)

Wednesday, July 24, 2013

orchard mvc style addresses

adding a trailing "/" in orchard will produce a

Not found

The page you are looking for does not exist.

Friday, July 12, 2013

sql server question

select null as boris into xxxx

creates a int column


why?

Tuesday, July 2, 2013

isnullorempty for sql server

declare @s varchar(100)
set @s = null
select len(isnull(nullif(@s,''),''))

Wednesday, June 26, 2013

clear value of fileupload

$(this).replaceWith($(this).clone(true));