I'm not sure if this is a good suggestion, or perhaps just my
mis-understanding, but something that seems obviously missing from the
ASP.Net Repeater control, is a "no results" template.
What I mean by this, is a template, to be used when the datasource for the
repeater does not contain any rows. At present, I am having to check the
number of rows in the table, and show or hide an additional <TR> depending on
the number of rows rendered by the repeater into the <TABLE>. This seems
foolish; surely it would be better for the repeater control to have a
template to display in the instance of the control not returning any data?
Can this be done using a cleaner/easier method than javascript? 3 3233
Yes, this could be a nice new feature for the repeater/datalist/datagrid.
Meantime I don't see anything foolish in checking the number of rows in the
table. May be you could use footer template. To make it visible only if the
table is empty.
Eliyahu
"m00nm0nkey" <m0********@discussions.microsoft.com> wrote in message
news:01**********************************@microsof t.com... I'm not sure if this is a good suggestion, or perhaps just my mis-understanding, but something that seems obviously missing from the ASP.Net Repeater control, is a "no results" template.
What I mean by this, is a template, to be used when the datasource for the repeater does not contain any rows. At present, I am having to check the number of rows in the table, and show or hide an additional <TR> depending
on the number of rows rendered by the repeater into the <TABLE>. This seems foolish; surely it would be better for the repeater control to have a template to display in the instance of the control not returning any data?
Can this be done using a cleaner/easier method than javascript?
it does in asp.net 2.0. for now any way that works is good...not one
particularly better than another imo.
Karl
--
MY ASP.Net tutorials http://www.openmymind.net/
"m00nm0nkey" <m0********@discussions.microsoft.com> wrote in message
news:01**********************************@microsof t.com... I'm not sure if this is a good suggestion, or perhaps just my mis-understanding, but something that seems obviously missing from the ASP.Net Repeater control, is a "no results" template.
What I mean by this, is a template, to be used when the datasource for the repeater does not contain any rows. At present, I am having to check the number of rows in the table, and show or hide an additional <TR> depending
on the number of rows rendered by the repeater into the <TABLE>. This seems foolish; surely it would be better for the repeater control to have a template to display in the instance of the control not returning any data?
Can this be done using a cleaner/easier method than javascript?
This feature is not there in ASP.NET 1.1, but it is coming in ASP.NET2.0 as
EmptyDataTemple. You need to wait till that..
--
Saravana http://dotnetjunkies.com/WebLog/saravana/ www.ExtremeExperts.com
"m00nm0nkey" <m0********@discussions.microsoft.com> wrote in message
news:01**********************************@microsof t.com... I'm not sure if this is a good suggestion, or perhaps just my mis-understanding, but something that seems obviously missing from the ASP.Net Repeater control, is a "no results" template.
What I mean by this, is a template, to be used when the datasource for the repeater does not contain any rows. At present, I am having to check the number of rows in the table, and show or hide an additional <TR> depending
on the number of rows rendered by the repeater into the <TABLE>. This seems foolish; surely it would be better for the repeater control to have a template to display in the instance of the control not returning any data?
Can this be done using a cleaner/easier method than javascript? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mark |
last post by:
I am trying to use a Pagable Repeater with checkboxes in ASP.Net, I cannot
seem to associate the checkbox with a particular database record so I lose
the checked state from page-to-page.
Below is...
|
by: Abhishek Srivastava |
last post by:
Hello All,
What is the syntax to bind a Repeater control to an Array of objects
I have an array of objects of type Person
Person
{
public int id;
public string name;
}
|
by: Ric |
last post by:
im new to asp.net. please help if u can.
is it possible to refer to a control(ie lable, placeholder, textbox)
that is inside a repeater object from a code behind file? when i place
the control...
|
by: Leigh Webber |
last post by:
I have an HTMLAnchor control on my aspx page. When it's not inside a
repeater, it works fine. When I put it inside a repeater control, the handler
never gets fired. I have a handler for the...
|
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">...
|
by: Timbo |
last post by:
Hi all,
This is my first message here so i'll try and include all the
information that will help you help me out, if possible.
Basically I am using C# in ASP.NET 2.0 and have a Repeater...
|
by: BB |
last post by:
Hi,
I am using repeater control.in my aspx page. one of the column of
control displays images. Filenames of images are stored in table.
Now when I run it and if display Image is blank. I see place...
|
by: |
last post by:
I have what's probably a simple page lifecycle question related to
dynamically evaluating values that are placed by a repeater and dynmically
placing user controls that use those values.
I'm...
|
by: John Kotuby |
last post by:
Hi all,
I am using a Repeater in conjunction with a SQLDatasource and SQL Server.
One of the controls in the repeater is a HyperlLink as follows:
<asp:HyperLink...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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: 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...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |