November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
If you can provide a full stack trace, that might be helpful. Also please review this document: http://world.episerver.com/documentation/items/developers-guide/episerver-cms/75/user-interface/developing-gadgets/.
I have created a EPi Server Gadget to work with Dynamic Data store. First I created the MVC Project for the Gadget and then I Moved the View files to Modules folder and I included it in my main Project. The thing is ,I need to put some values into the form and and when it submitted data should be passed into the Controller .But the problem is when I Press the submit button it says "Internal Server Error [404],Detailed error message ".
************HTML FORM******************
<% html.begingadgetform("menu"); %>%>
<%= html.acceptbutton() %>%=>
<% html.endform(); %>%>
**********************************
*********CONTROLLER***************
[HttpPost]
public ActionResult Menu(string message, FormCollection form)
{
try
{
message = form["message"];
DynamicDataStore store = DynamicDataStoreFactory.Instance.CreateStore(typeof(welcomeMessage));
welcomeMessage data = new welcomeMessage()
{
Message = message
};
store.Save(data);
return Content("Done");
}
catch (Exception ex)
{
return View("Error", ex);
}
}
********************************************************
Any suggestions to resolve this ?
Or any tips to do this in another way ?