Setting ID and Bind parameter for dinamicaly generated FCKeditors

Setting ID and Bind parameter for dinamicaly generated FCKeditors

am 01.02.2007 15:40:00 von fixer

There 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%>):




ID="<%=bodyContainerName%>" runat="server" Height="500px" Value='<%#
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 += "" + Environment.NewLine + _
" " + Environment.NewLine + _
" Содержимое страницы (body" +
bodyCounter.ToString + "):" + Environment.NewLine + _
" " + Environment.NewLine + _
" " + Environment.NewLine + _
" " + Environment.NewLine + _
" " + Environment.NewLine + _
" bodyContainerName + """ runat=""server"" Height=""500px"" Value='<%#
Bind(""body"") %>' Width=""700px"">" + Environment.NewLine + _
"
" + Environment.NewLine + _
" " + 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?

Re: Setting ID and Bind parameter for dinamicaly generated FCKeditors

am 01.02.2007 17:10:19 von Anthony Jones

"Fixer" wrote in message
news:E32C7DE9-988C-4F39-90F0-17D5424288BD@microsoft.com...
> There 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

This group is for Classic ASP you need a group for ASP.NET