asp.net-mvcasp.net-mvc-4application-name

Getting ApplicationName


Can´t find a way to get my ApplicationName. Found a static method to get and set app name but I am not sure how to use it.


Solution

  • Found a very simple way to retrieve my application name:

    SqlMembershipProvider msmp = new SqlMembershipProvider();
    string appName = msmp.ApplicationName.ToString();
    

    ;O)