Developer forum

Forum » Development » Extensibility API - Data Management

Extensibility API - Data Management


Reply
The type or namespace name 'Dictionary' could not be found (are you missing a using directive or an assembly reference?)

Whats going on here? What am I missing?

using

System;

using

System.Data;

using

System.Configuration;

using

System.Web;

using

System.Web.Security;

using

System.Web.UI;

using

System.Web.UI.HtmlControls;

using

System.Web.UI.WebControls;

using

System.Web.UI.WebControls.WebParts;

using

Dynamicweb;

using

Dynamicweb.Extensibility;

using

Dynamicweb.Modules.DataManagement;

using

System.Text;

namespace

{

[

Dynamicweb.Extensibility.

Dynamicweb.Extensibility.

]

 

Dynamicweb.Modules.DataManagement.

Dynamicweb.ExtensibilityAddInLabel("Alert user"),AddInDescription("Alerts the user")public class MyFormSaveProvider :FormSaveProvider

{

[

Dynamicweb.Extensibility.

Dynamicweb.Extensibility.

]

 

 

{

 

AddInParameter("Message"),AddInParameterEditor(typeof(Dynamicweb.Extensibility.Editors.TextParameterEditor), "")public string Message { get; set; }public override bool Save(Dynamicweb.Modules.DataManagement.FormSetting Form, Dictionary<string, object> KeysAndValues)// Check that the form field 'Name' is submitted

 

{

 

 

if (KeysAndValues.ContainsKey("Name"))string name = KeysAndValues["Name"].ToString();// Write an alert box to the user

System.Web.

}

 

HttpContext.Current.Response.Write(string.Format("<script type=\"text/javascript\">alert('Hello {0}!\\n{1}');</script>", name, Message));// Return true to tell Dynamicweb that nothing failed

 

}

}

}

return true;

Replies

 
Reply

Never mind =)

using

System.Collections.Generic;

 

You must be logged in to post in the forum