#
ernesto
It will be interesting, when rendering module custom settings controls
to have the possibility to render text boxes also in multiline mode. We are developing a module that requires a large custom property (entire xml) and we had to add it in a different table.
Just a suggestion :)
public static WebControl CreateSettingControl(string name, Type settingType, string value)
{
switch (settingType.FullName)
{
case "System.String":
return CreateSettingTextBox(name, value, 300);
case "System.Int16":
case "System.Int32":
return CreateSettingTextBox(name, value, 50);
case "System.Boolean":
return CreateSettingCheckBox(name, value);
default:
return CreateCustomControl(name, settingType, value);
}
}
private static TextBox CreateSettingTextBox(string name, string value, int width)
{
TextBox tbx = new TextBox();
tbx.ID = name;
tbx.Text = value;
tbx.Width = Unit.Pixel(width);
return tbx;
}to have the possibility to render text boxes also in multiline mode. We are developing a module that requires a large custom property (entire xml) and we had to add it in a different table.
Just a suggestion :)