Wednesday, March 30, 2011

Where can find ASP.NET Membership database script file?

In Windows .Net Framework folder:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallMembership.sql
C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallMembership.sql

Routing in ASP.NET WebForms

http://www.west-wind.com/weblog/posts/974489.aspx

protected void Application_Start(object sender, EventArgs e)
{
    RegisterRoutes(RouteTable.Routes);
}

void RegisterRoutes(RouteCollection routes)
{
    routes.MapPageRoute("StockQuote", "StockQuote/{symbol}", "StockQuote.aspx");
");
}
public partial class StockQuote1 : System.Web.UI.Page
{
    protected StockQuote Quote = null;

    protected void Page_Load(object sender, EventArgs e)
    {
        string symbol = RouteData.Values["symbol"] as string;
    }
}