Click here to Skip to main content
15,906,094 members

Comments by Christophe_ (Top 3 by date)

Christophe_ 1-Dec-15 10:11am View    
Hi Maciej Los,

I want to add a List<string> (for example) as an argument to an activity (not the root activity) of my workflow. With WF4, if we use a non literal argument (ie something other than string or value types) we can't set its value, we need to use a VisualBasicValue or CSharpValue, I was wondering if we can convert a List to a VisualBasicValue programmatically because our workflows are designed by end user and I need that value to be stored in the workflow definition (not in a DynamicProperty from a DynamicActivity when running the workflow).
Christophe_ 11-May-11 3:22am View    
I tried
<asp:TextBox runat="server" ID="textbox1" Text="<%= WebApplication.Resource2.Markup1 %>" />

<asp:TextBox runat="server" ID="textbox2" Text="<%= Resource2.Markup1 %>" />

<asp:TextBox runat="server" ID="textbox3" Text="<%$ Resources:Resource2.Markup1 %>" />

<asp:TextBox runat="server" ID="textbox4" Text="<%$ Resources:Resource2, Markup1 %>" />

<asp:TextBox runat="server" ID="textbox5" Text="<%$ Resources:WebApplication.Resource2, Markup1 %>" />

<asp:TextBox runat="server" ID="textbox6" Text="<%$ Resources:WebApplication.Resource2.Markup1 %>" />

None of them worked.

PS : Here is a link to VS2010 solution if anyone sees what I am doing wrong
VS2010 Solution
Christophe_ 9-May-11 14:41pm View    
Thanks for your answer.

Yes, the modifier was already set to public. Following the page sample you provided me, I was able to localize a value in the markup but this only worked outside of asp.net controls.

An example will be clearer I think ;). Assuming I have a localized string MarkupText in a resource file Resource2 :

<div>

<!--this one worked-->
<%= Resources.Resource2.MarkupText %>

<!-- this one doesn't work -->
<asp:Label runat="server" ID="label1" Text="<%=Resources.Resource2.MarkupText%>"/>

<!-- this one doesn't work with satellite assemblies but worked with standard resx -->
<asp:Label runat="server" ID="label2" Text="<%$Resources:Resource2,MarkupText%>"/>

</div>


Why can't I use <%$... %> notation like in resx version ?