473,396 Members | 2,061 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,396 software developers and data experts.

Problem with repeater control

It is because of the double quotes within double quotes.
Try to replace "nID" with field number if possible.

regards,
s.ravi sankar
-----Original Message-----
Hi im trying to dynamicly showing textboxes with a
repeater control. I have set all the databinding and it
works just great when not i´m not trying to use the
asp:textbox.

I get this error (and serval others when i try edit the
error):

" Could not open in Design view. Quote values differently
inside <'%...."value"...%>' block "

The code below is the my ItemTemplate.
---------------------------------

<ItemTemplate>
<tr>
<td>
<div align="center">
<br>
<asp:TextBox ID="<%# DataBinder.Eval
(Container.DataItem,"nID")%>" Runat="server">

<%# DataBinder.Eval(Container.DataItem,"text_to_show") %>

</asp:TextBox>
</div>
</td>
</tr>
</ItemTemplate>
.

Nov 17 '05 #1
2 1297
>It is because of the double quotes within double quotes.
Try to replace "nID" with field number if possible.


Thx for your response

I have tried to correct that with:

<asp:TextBox ID='<%# DataBinder.Eval(Container.DataItem, "nid") %>'
RunAt="server">
<%# DataBinder.Eval(Container.DataItem, "start") %>
</asp:TextBox>

But now i get this runtime error:
Parser Error Message: '<%# DataBinder.Eval(Container.DataItem, "nid") %>' is
not a valid identifier.

what now?

Anders


Nov 17 '05 #2
you can't databind to a control's ID. How would the object model reference
the server control to bind the reference to?
"Flare" <dc*******@hotmail.com> wrote in message
news:e1**************@TK2MSFTNGP11.phx.gbl...
It is because of the double quotes within double quotes.
Try to replace "nID" with field number if possible.
Thx for your response

I have tried to correct that with:

<asp:TextBox ID='<%# DataBinder.Eval(Container.DataItem, "nid") %>'
RunAt="server">
<%# DataBinder.Eval(Container.DataItem, "start") %>
</asp:TextBox>

But now i get this runtime error:
Parser Error Message: '<%# DataBinder.Eval(Container.DataItem, "nid") %>'

is not a valid identifier.

what now?

Anders

Nov 17 '05 #3

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

Similar topics

2
by: Stephen Miller | last post by:
I am using the OnItemDataBound event of Repeater control to nest a DataGrid within the Repeater. When I attempt to bind to the DataGrid using the DataSource method I get the error message "Object...
8
by: I am Sam | last post by:
Hi everyone, This problem is making me old. I don't want to get any older. I have a multi-nested repeater control as follows: <asp:Repeater ID="clubRep1" Runat="server">...
1
by: olduncleamos | last post by:
Hello all, I am experimenting with the repeater control and ran into something that I wasn't expecting. I would appreciate if the experts can confirm or correct my understanding. Here is a...
8
by: fernandezr | last post by:
I would like to use a user control as a template inside a repeater. Some of the fields in the control should be hidden depending on whether or not there is data. I'm still a ASP .Net newbie so the...
5
by: Brad Baker | last post by:
I'm trying to write a simple asp.net page which updates some data in a SQL database. At the top of the page I have the following code: <%@ Page Language="C#" Debug="true" %> <%@ import...
3
by: Iain Buchanan | last post by:
Moving this code below from v1.1 to 2.0... am now getting this bug... After I bind a repeater I move the repeater inside the placeholder using controls.add(), but when I do this, all the...
4
by: Brad Baker | last post by:
I'm going a little crazy :) I'm trying to bind a repeater control to a dataset on page load using the following code: if (Request.QueryString != null) { string customerid = Request.QueryString;...
5
by: Brad Baker | last post by:
I am trying to make a "tabbed" interface by iterating through a dataset with a conditional statement. For example: ...
2
by: dm3281 | last post by:
Hi all -- I have a strange issue. I have obtained a scripted database and compiled ASP.NET 2.0 application from a sister site that I'm trying to implement locally. I have successfully...
2
by: Hong | last post by:
Hi, I have been scratching my head over this problem for hours, the repeater control I am using would only render the controls specified in HeaderTemplate and FooterTemplate, but the repeater...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.