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;