sorry i don't know where to post my sitefinity questions? is there a sitefinity forum?
i'm developing an web application with sitefinity 5, using MVC mode. my question is, is it possible that setting default values of my widget's public properties?
I used [DefaultValue("...")], but sf throws an exception when editing this property;
I commented out the above line, and sf doesn't throw exceptions;
I set default value to that property via constructor or another field, but neither work.
i just want the below code work:
Any ideas?
i'm developing an web application with sitefinity 5, using MVC mode. my question is, is it possible that setting default values of my widget's public properties?
I used [DefaultValue("...")], but sf throws an exception when editing this property;
I commented out the above line, and sf doesn't throw exceptions;
I set default value to that property via constructor or another field, but neither work.
i just want the below code work:
[ControllerToolboxItem(Name =
"coc"
, SectionName =
"test"
, Title =
"coc"
)]
public
class
MyCocController : Controller
{
[Category(
"URLs"
)]
[DefaultValue(
"/coc/details"
)]
public
string
UrlDetails {
get
;
set
; }
public
ActionResult Index()
{
return
View();
}
}
Any ideas?