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 3247
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********@dis cussions.micros oft.com> wrote in message
news:01******** *************** ***********@mic rosoft.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********@dis cussions.micros oft.com> wrote in message
news:01******** *************** ***********@mic rosoft.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********@dis cussions.micros oft.com> wrote in message
news:01******** *************** ***********@mic rosoft.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 a sample 1-page ASP.Net apllication built to run against the SQL
pubs database.
There are contents of 2 files
1. ASPX,
2. ASPX.VB
If there is anyway you can help, I'd really appreciate it.
|
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 object outside of the repeater, i can refer to it from the
code behind file. when i place the control object inside the repeater,
i get a 'need to instanciate the control object' error. if i declare
the control object inside the control behind file,...
|
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 htmlAnchor's ServerClick event
(works when not inside a repeater), and a handler for the repeater's
ItemCommand event. My html and vb source code is shown below, but what I
think I need is a simple working example in vb.net. Can anyone help?...
|
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">
<HeaderTemplate><table>
</HeaderTemplate>
<ItemTemplate>
| |
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 control in
my aspx page with two image buttons, one for an edit command, another a
delete command. Here is a cut down code fragment.
...
|
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 holder and
red cross in it in Internet Explorer. But it works fine in FireFox. Is there
any way to fix this so that in both browers I can see same ie hide
placeholder and red cross? I have tried to use alternatetext property for
image control.
...
|
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 attempting to bind a user control I've written, "ImageBox", to a
repeater.
The user control takes a custom property, "ContentID", that will execute a
database lookup and load an image.
|
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 NavigateUrl='Search.aspx?page=base&searchid=<%
Eval("sequence")%>' .....
As you can see I am trying to pass a QueryString evaluated at runtime. All
the other Evals of DataFields in the Repeater are working just fine. However
this NavigateUrl is resolving as...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |