i have dialog edit control , property set it. when advance next dialog , calls custom action (from pushbutton publish), can't access property should have been created before.
i don't create/declare property before (using <property>
, because want edit control have text empty , if declare property, must assign value
causes text filled it. if declare, the ca finds property.
how can create property without value in edit control , able access ca?
here 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!"); } ... }
you can declare property secure instead of values. attribute used pass values client side server side.
<property id="server_host" secure="yes"/>
Comments
Post a Comment