I have a dialog with an Edit control and a Property set to it. When I advance to the next dialog and it calls my custom action (from PushButton Publish), I can't access the Property that should have been created before.
I don't create/declare the property before (using <Property>, because I want the Edit control to have the text empty and if I declare the property, then I must assign something to Value which causes the text to be filled with it. If I declare, the the CA finds the property.
How can I create the property without a value in the Edit control and be able to access it from CA?
Here is the code:
<Control Id="EditHost"
Type="Edit"
X="150" Y="95"
Height="17" Width="350"
Property="SERVER_HOST" />
[CustomAction]
public static ActionResult MyCustomAction(Session session)
{
if (String.IsNullOrEmpty(session["SERVER_HOST"])
{
session.Log("Error!");
}
...
}