Setting ID and Bind parameter for dinamicaly generated FCKeditors
am 01.02.2007 15:40:00 von fixerThere is Content Management System. In it on administrator's side dinamic
number of "body" (which showing in FCKeditors) elements for generating page
Code
------------------------------------------------------------ --------------------
<%
Dim bodyCounter As Integer = 1
'Ð¸Ð¼Ñ ÐºÐ¾Ð½ÑейнеÑа body
Dim bodyContainerName As String = ""
Dim bodyContainerBindingName As String = ""
Do
bodyContainerName = "bodyFCKeditor" +
bodyCounter.ToString
bodyContainerBindingName = "body" +
bodyCounter.ToString
%>
СодеÑжимое ÑÑÑаниÑÑ (body<%=bodyCounter%>):
Bind(bodyContainerBindingName) %>' Width="700px">
<%
bodyCounter += 1
Loop While (bodyCounter <= bodyNumber)
%>
------------------------------------------------------------ --------------------
Return Errors:
Error 1 '<%=bodyContainerName%>' is not a valid identifier.
Error 2 A call to Bind was not well formatted. Please refer to documentation
for the correct parameters to Bind.
---
How I can correct it?
---
I wrote function for output FCKeditors:
code:
------------------------------------------------------------ --------------------
Function getBodyContainers(ByVal bodyNumber As Integer)
Dim bodyContainers As String = ""
Dim bodyCounter As Integer = 1
Dim bodyContainerName As String = ""
Do
bodyContainerName = "bodyFCKeditor"
bodyContainers += "
"
" СодеÑжимое ÑÑÑаниÑÑ (body" +
bodyCounter.ToString + "):" + Environment.NewLine + _
"
"
"
"
"
Bind(""body"") %>' Width=""700px"">" + Environment.NewLine + _
"" + Environment.NewLine + _
"
"
bodyCounter += 1
Loop While (bodyCounter <= bodyNumber)
Return bodyContainers
End Function
------------------------------------------------------------ --------------------
But in output i got a text of tags.
What I can do to get companents but not tags of components?