TOP

WinNT – manual print

cmd /c c:\Windows\system32\lpr -S psasrv1 -P 9ir3_pcl5e -ol c:\metest.prn

dim wsh
set wsh = CreateObject(“WScript.Shell”)

wsh.run “cmd /c c:\Windows\system32\lpr -S dtprt2 -P ” & strPrinter & ” -ol d:\temp\pci\pci-” & date1 & “.prn”

set wsh = nothing

Read More
TOP

dblinq – asp.net MySql

http://dblinq.codeplex.com/

Read More
TOP

ASP.net MVC Gravatar

http://hackingon.net/post/ASPNET-MVC-Gravatar-Helpers.aspx

http://gravatarnet.codeplex.com/

<img src="<%= Url.Gravatar("user@domain.com") %>" />

 

public static class UrlExtensions
{
    public static string Gravatar(this UrlHelper url, string emailAddress)
    {
        var baseUrl = "http://www.gravatar.com/avatar/{0}";
        return String.Format(baseUrl, MD5Hash(emailAddress.ToLower()));
    }

    public static string Gravatar(this UrlHelper url, string emailAddress, int size)
    {
        var baseUrl = "http://www.gravatar.com/avatar/{0}?s={1}";
        return String.Format(baseUrl, MD5Hash(emailAddress.ToLower()), size);
    }

    private static string MD5Hash(string input)
    {
        StringBuilder hash = new StringBuilder();
        MD5CryptoServiceProvider md5provider = new MD5CryptoServiceProvider();
        byte[] bytes = md5provider.ComputeHash(new UTF8Encoding().GetBytes(input));

        for (int i = 0; i < bytes.Length; i++)
        {
            hash.Append(bytes[i].ToString("x2"));
        }
        return hash.ToString();
    }
}

 

Read More
TOP

TeamLab

http://www.teamlab.com

TeamLab is a free open-source platform for business collaboration and project management. It allows you to use social networking tools such as blogs and forums, organize business tasks and milestones, as well as communicate with your team members via corporate IM.

Read More
TOP

asp.net mvc working with cookie

http://www.dotnetguy.co.uk/post/2010/03/07/ASPNET-MVC-working-smart-with-cookies-e28093-Custom-ValueProvider.aspx

Read More
TOP

asp.net mvc openid

http://visualstudiogallery.msdn.microsoft.com/en-us/81153747-70d7-477b-b85a-0374e7edabef

Read More
TOP

asp.net mvc file upload

http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/Fileuploadinaspnetmvc06292009030526AM/Fileuploadinaspnetmvc.aspx

http://www.mikesdotnetting.com/Article/125/ASP.NET-MVC-Uploading-and-Downloading-Files – good example

http://www.highoncoding.com/Articles/689_Uploading_and_Displaying_Files_Using_ASP_NET_MVC_Framework.aspx

Read More
TOP

E-Commerce software

Read More
TOP

Custom Authorization With Asp.net MVC

http://schotime.net/blog/index.php/2009/02/17/custom-authorization-with-aspnet-mvc/

http://forums.asp.net/t/1242461.aspx

http://davidhayden.com/blog/dave/archive/2007/10/17/CreateCustomRoleProviderASPNETRolePermissionsSecurity.aspx

Read More
TOP

asp.net mvc upload file into blob

http://byatool.com/mvc/asp-net-mvc-upload-image-to-database-and-show-image-dynamically-using-a-view/

Read More

Switch to our mobile site