Hello,
I have a problem with one of my pages. I need to get the key value from my web.config file as a âprefixâ, and concatenate the one with the string. Then assign the resulting string to âmyTableâ attribute of the control. Iâve tried different approaches, but no lack. I am missing something.
This is the ORIGINAL controls' code:
Code:
<cc1:BaseRadioButtonList ID="rblUserRegisterationType" runat="server" myAutoBind="True"
myBoundField="Type" myTable="vUserRegisterationType" myFieldSet="TextField,ValueField"
myOrder="TextField" DataTextField="TextField" DataValueField="ValueField" myShowSelectFromList="True"
RepeatColumns="2" RepeatDirection="Horizontal" OnSelectedIndexChanged="rblUserRegisterationType_OnSelectedIndexChanged"
AutoPostBack="true" myFilter="" Visible="false">
</cc1:BaseRadioButtonList>
I was trying to get the key value from the web.config file like this, and concatenate the one with an existing
myTable string "vUserRegisterationType":
Code:
<%$AppSettings:LinkedServerHtmlPrefix%>
, where in the web.config line is:
Code:
<add key="LinkedServerHtmlPrefix" value="[FWC-VMSD1].[FWC_Users].[dbo]." />
I need to make my final attribute â
myTableâ looking like this:
myTable="[FWC-VMSD1].[FWC_Users].[dbo].vUserRegisterationType"
Question: how concatenate the string from the web.config and current âvUserRegisterationTypeâ?
Any help will be appreciated.
--Dmitriy