Dear all,
I try to understand how this Repeater and DatalIst works but sounds really
confusing.
Why if I do the following code I have a completly balnk page, not data gets
display and even no eror ?
OleDbDataAdapter1.Fill(ds)
Repeater1.DataSource = ds
Repeater1.DataBind()
Same things occurs if I use DataList control ..
Any idea ?
regards
serge 5 1423
2 things to try:
1) Your DataSet should (hopefully) contain a DataTable, which has a name.
Try setting this name to the Repeater1.DataMember property.
2) After "Repeater1.DataBind()" put "Page.DataBind()".
"serge calderara" wrote: Dear all,
I try to understand how this Repeater and DatalIst works but sounds really confusing.
Why if I do the following code I have a completly balnk page, not data gets display and even no eror ?
OleDbDataAdapter1.Fill(ds) Repeater1.DataSource = ds Repeater1.DataBind()
Same things occurs if I use DataList control ..
Any idea ?
regards serge
Hi serge,
Do you have ItemTemplate and something like
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "Field_Name") %>
</ItemTemplate>
inside your repeater to show data?
Elton Wang Dear all,
I try to understand how this Repeater and DatalIst works but sounds really confusing.
Why if I do the following code I have a completly balnk page, not data gets display and even no eror ?
OleDbDataAdapter1.Fill(ds) Repeater1.DataSource = ds Repeater1.DataBind()
Same things occurs if I use DataList control ..
Any idea ?
regards serge
I have try to put a label templsate but no luck...
ONe question then, what this template is all about, what do it requires it ?
"Elton W" wrote: Hi serge,
Do you have ItemTemplate and something like
<ItemTemplate> <%# DataBinder.Eval(Container.DataItem, "Field_Name") %> </ItemTemplate>
inside your repeater to show data?
Elton Wang
Dear all,
I try to understand how this Repeater and DatalIst works but sounds really confusing.
Why if I do the following code I have a completly balnk page, not data gets display and even no eror ?
OleDbDataAdapter1.Fill(ds) Repeater1.DataSource = ds Repeater1.DataBind()
Same things occurs if I use DataList control ..
Any idea ?
regards serge
Hi andy,
I try your suggestion but no luck, still the same totally blank page, and I
am suzre they are data in my table
any other tips?
"Andy Luksic" wrote: 2 things to try:
1) Your DataSet should (hopefully) contain a DataTable, which has a name. Try setting this name to the Repeater1.DataMember property.
2) After "Repeater1.DataBind()" put "Page.DataBind()". "serge calderara" wrote:
Dear all,
I try to understand how this Repeater and DatalIst works but sounds really confusing.
Why if I do the following code I have a completly balnk page, not data gets display and even no eror ?
OleDbDataAdapter1.Fill(ds) Repeater1.DataSource = ds Repeater1.DataBind()
Same things occurs if I use DataList control ..
Any idea ?
regards serge
Hi Elton,
If I open the HTML view I could not see anything related to template as you
mention
..... what it could be or how to set uit up?
"Elton W" wrote: Hi serge,
Do you have ItemTemplate and something like
<ItemTemplate> <%# DataBinder.Eval(Container.DataItem, "Field_Name") %> </ItemTemplate>
inside your repeater to show data?
Elton Wang
Dear all,
I try to understand how this Repeater and DatalIst works but sounds really confusing.
Why if I do the following code I have a completly balnk page, not data gets display and even no eror ?
OleDbDataAdapter1.Fill(ds) Repeater1.DataSource = ds Repeater1.DataBind()
Same things occurs if I use DataList control ..
Any idea ?
regards serge This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: pete K |
last post by:
Is it possible in asp.net to have a datalist in the itemtemplate of another
datalist?
For example:
<asp:datalist id="MyList" runat="server">
<ItemTemplate>
<table border="0" width="300">...
|
by: Bharat |
last post by:
Hi Folks,
Suppose I have two link button on a page (say lnkBtn1 and
lnkBtn2). On the click event of the lnkbtn1 I have to add a dynamically
created control. And On the click event of the lnkBtn2 I...
|
by: Patrick.O.Ige |
last post by:
I have a CheckBoxList in a DataList and i'm trying to get item Selected
after doing a postBack.
I have set my CheckBoxlist AutoPostBack="True"
Any ideas what 'm doing wrong?
It seems not to...
|
by: Paul |
last post by:
I am trying to use a DataList and the ItemTemplate.
I am binding the Datalist to a SQL query that gives me a list of Items with
a Parent Category.
I want to loop through all the items, but...
|
by: Hans Merkl |
last post by:
Hi,
I am trying to use a user control as EditItemTemplate in a DataList. It
loads fine but I can't figure out how to bind to the data of the DataList.
Here is what I have got so far:
...
|
by: Mirek Endys |
last post by:
I have DataList as part of DataList item. DataList in DataList. The parent
DataList working well including Edit command, that shows Edit template and
correctly bind the data into edit template...
|
by: Les Caudle |
last post by:
I have a menu system composed of a DataList nested inside a DataList.
The outer DataList has it's DataSource (composed of a DataSet with two tables
linked by a CategoryPagesRelation Relation) set...
|
by: AJ |
last post by:
Hi all,
With the following code in mind :
<asp:DataList ID="dlOne" DataKeyField="myField1" DataSource="<%#
GetDataSource1()" Runat="server">
<ItemTemplate>
Output Value Here!
<asp:DataList...
|
by: Crazy Cat |
last post by:
Hi all,
I am developing an asp.net 2.0 application in Visual Studio 2005. On
my page I have a simple datalist that is bound programmatically to a
collection of simple objects. On this page I...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |