Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Bailey Evans   on May 19 In Asp.net Category.

  
Question Answered By: Milind Mishra   on May 19

I am using ASP.Net, VB2003.

I have a repeater  control.
In the ItemTemplate section of the control, my code  is:


<TD><FONT size="1"><%#getEditLink((DataBinder.Eval
(Container.dataitem, "AppID")), DataBinder.Eval
(Container.dataitem, "Relocatable"))%></FONT></TD>

<TD><FONT size="1"><%#getAddLink((DataBinder.Eval
(Container.dataitem, "AppID")), DataBinder.Eval
(Container.dataitem, "Relocatable"))%></FONT></TD>

<TD><FONT size="1"><%#getDelLink((DataBinder.Eval
(Container.dataitem, "AppID")), DataBinder.Eval
(Container.dataitem, "Relocatable"))%></FONT></TD>

In the code behind, during the page  load event, a proc
called "getData" is called.
If the query in getData returns a record, everything is ok.
If the query returns 0 records, then I need to display

<TD><FONT size="1"><%#getNoRecordsLink((DataBinder.Eval
(Container.dataitem, "AppID")), DataBinder.Eval
(Container.dataitem, "Relocatable"))%></FONT></TD>

But I dont know where to put the "If sqlreader.hasrecords" statement.

Any ideas?

Share: 

 

This Question has 15 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Repeater Control Or get search suggestion and latest updates.


Tagged: