This commit is contained in:
Rick Falkvinge
2012-10-12 09:39:58 +00:00
parent 4c0373abbd
commit 5360ec8c45
4 changed files with 21 additions and 5 deletions
+12 -4
View File
@@ -40,11 +40,19 @@ namespace Activizr.Database
{
string objectOptionalDataTypeString = reader.GetString(2);
string data = reader.GetString(3);
ObjectOptionalDataType objectOptionalDataType =
(ObjectOptionalDataType)
Enum.Parse(typeof(ObjectOptionalDataType), objectOptionalDataTypeString);
initialData[objectOptionalDataType] = data;
try
{
ObjectOptionalDataType objectOptionalDataType =
(ObjectOptionalDataType)
Enum.Parse(typeof(ObjectOptionalDataType), objectOptionalDataTypeString);
initialData[objectOptionalDataType] = data;
}
catch (Exception)
{
// Ignore unknown enums at this point - too many disconnects between v4 and v5 -Rick
}
}
return new BasicObjectOptionalData(objectType, objectId, initialData);
+1 -1
View File
@@ -14,7 +14,7 @@
<SourceWebPhysicalPath>..\Site5</SourceWebPhysicalPath>
<SourceWebProject>{367F36EA-AE1C-4E15-BAF9-BA75B18B3807}|C:\Lab\Activizr\Site5</SourceWebProject>
<SourceWebVirtualPath>/Site5</SourceWebVirtualPath>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
+4
View File
@@ -61,6 +61,10 @@ public class PageV5Base : System.Web.UI.Page
protected override void OnPreInit(EventArgs e)
{
// Unlock Telerik
this.Application["Telerik.Web.UI.Key"] = "Activizr";
// Localization
// Set default culture (English, United States, but that doesn't work so fake it to GB)
+4
View File
@@ -14,6 +14,10 @@ namespace Activizr.Pages.Security
{
protected void Page_Load(object sender, EventArgs e)
{
// Unlock Telerik
this.Application["Telerik.Web.UI.Key"] = "Activizr";
this.LabelLoginFailed.Visible = false;
this.TextLogin.Focus();