Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
hey, i have a form which i have
[Field("Member/Registration", "Details", Mandatory=true, Caption = @"MyDropDown", Type = typeof(DropDownList), Prevalues = new string[] { "test" })] public string MyDropDown { get; set; }
im trying to get MyDropDown value but it get the following string: 257538bc-d74c-4d69-a441-78fcccfb4f51
is there something i did wrong?
Getting the value in the submit method returns the guid? Or at what point are you fetching the value?
i override the submit method and in there i'm getting the guid
Ok looks like that is a bug, needs to be updated in the codefirst core but as a temp workaround you can use
using(PreValueStorage pvs = new PreValueStorage()) { var val = pvs.GetPreValue(new Guid("GUID")).Value; }
Hope that is an ok solution for now
Created the issue on our issue tracker: http://issues.umbraco.org/issue/CON-273 so it will get fixed in a future release
thank you, can you think of any workaround that i can use for now?
Yeah check my previous reply :)
using(PreValueStorage pvs =newPreValueStorage()){ var val = pvs.GetPreValue(newGuid("GUID")).Value;}
oh didn't notice it, thank you :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
getting value of DropDownList in code first
hey, i have a form which i have
im trying to get MyDropDown value but it get the following string: 257538bc-d74c-4d69-a441-78fcccfb4f51
is there something i did wrong?
Getting the value in the submit method returns the guid? Or at what point are you fetching the value?
i override the submit method and in there i'm getting the guid
Ok looks like that is a bug, needs to be updated in the codefirst core but as a temp workaround you can use
Hope that is an ok solution for now
Created the issue on our issue tracker: http://issues.umbraco.org/issue/CON-273 so it will get fixed in a future release
thank you, can you think of any workaround that i can use for now?
Yeah check my previous reply :)
Ok looks like that is a bug, needs to be updated in the codefirst core but as a temp workaround you can use
oh didn't notice it, thank you :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.