Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.
Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.
Change the type of the image from string to Url:
public virtual Url Image { get; set; }
Hi! Thanks. That worked.
I tried to mark your answer as "mark as answer" but got a nice little ASP.NET error page for response :)
-Marko
Hello, all!
I'm wondering what I'm doing wrong here. I have a simple page type in EpiServer 7 which is causing me headaches. Here's the code (I changed properties' names a bit).
The strange thing is that everything else works fine but not storing the Image property's value. So Foo1, Foo2, Foo3 is stored OK but not Image property.
Problem occurs when I try to publish the simplepage. Episerver doesn't give me any errors but if I close the browser and reopen the simplepage Image property is empty even though it had value before publishing. Sometimes autosave gives me "offline, can't save" error, or at least I think it's the autosave, anyway I can still publish changes to other properties but not Image.
Now if I remove Image property from the code and create it using Admin view it works fine. This implies that there must be something wrong in my code but can't figure out what...
Any help would be greatly appreciated.
-Marko