Last post Jan 15, 2009 01:08 AM by Nai-Dong Jin - MSFT
Jan 11, 2009 06:48 PM|wuz|LINK
Can somebody please tell me the correct syntac for:
<asp:Literal ID="ltInterneLeseVariableLabel" runat="server" Text="<%$ Resources:FunktionCode, InterneLeseVariable %> + some other text" />
Jan 12, 2009 08:32 AM|vivek_iit|LINK
You can set this in codebehind as:
ltInterneLeseVariableLabel. Text = ResourceManager.GetResource("xyz") + some other text;
Jan 13, 2009 06:32 AM|wuz|LINK
Thx, but the control is placed inside the template of a datepresenter control and with the binding i have all the necessary information, so it is much easier in the aspx
Jan 15, 2009 01:08 AM|Nai-Dong Jin - MSFT|LINK
Text="<%$ Resources:FunktionCode, InterneLeseVariable %> + some other text"
It's not the correct expression. And as far as i know, i can't find such string concatenation practice. But in you case, you mentioned that you are using an data presentation control, I'm not sure if you can use DataBoundField, if you can, then try to use
the DataFormatString property to concatenate other words.
Besides, you can use FindControl method after you get the Row object. (i.e. For GridView, you can get the GridViewRow objects from the GridViewRowEventArgs in the RowCreated events.) So here is the place for you to assign the value to your literal control's