473,386 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Setting ID and Bind parameter for dinamicaly generated FCKeditors

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

"Fixer" <Fi***@discussions.microsoft.comwrote in message
news:E3**********************************@microsof t.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
Feb 1 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Paulo Pinto | last post by:
Hi, I have a package that generates classes from a set of XML files using exec. So far the classes appear in the global namespace. Is there any way to also create packages dinamicaly and...
3
by: CSDunn | last post by:
Hello, I currently have an Access 2003 ADP Report/Subreport set up in which I have 12 subreports in a single main report that are located in a group header called 'PermnumHeader' (Permnum would be...
2
by: Luke Dalessandro | last post by:
I am trying to develop a quick Shopping cart for ASP.NET 2.0. I have added a CartItems table to the AspNetDB access database, that contaings CartItems keyed off of the aspney_Users.UserId key (the...
5
by: Arjen | last post by:
Hi, How can I set the navigate URL with parameter without extra code? I have now this: NavigateUrl="~/test2.aspx?ID=" + <%# Bind("Id") %> There must be a way to do this with a string...
1
by: Frank Yamrick | last post by:
I am trying to program an application that requires a large number of screnes that are very similar in the respect that all the bottons and labels interact with each other with the same...
0
by: teclioness | last post by:
Hi, I am using gridview for the user to update rows. In a row, there sre two columns, which need to be updated. When the gridview is to be shown, the row should show the values from database....
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
2
by: =?Utf-8?B?Rml4ZXI=?= | last post by:
There is Content Management System. In it on administrator's side dinamic number of "body" (which showing in FCKeditors) elements for generating page Code...
5
by: dana1 | last post by:
Hello Experts! Does anyone know if there is a way to set the values of query parameters from VBA for a report's recordsource? (i.e., I want to set the values of the parameters and NOT have the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.