November Happy Hour will be moved to Thursday December 5th.

EPi Server Gadgets

Vote:
 

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 ?

#120771
Apr 24, 2015 8:09
Vote:
 

Hi, which version of CMS being used?

#120903
Apr 27, 2015 19:40
Vote:
 

Version  7.5 is used 

#120909
Apr 28, 2015 5:28
Vote:
 

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/.

#121216
May 04, 2015 23:56
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.