How to dispaly only selected rows in repeater control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • billakanti
    New Member
    • Sep 2010
    • 3

    #1

    How to dispaly only selected rows in repeater control

    Hello all,

    In repeater Control how can i bind only selected row,
    i.e
    i have code like

    <%# DataBinder.Eval (Container, "DataItem.xyzna me") %>
    here am displaying all the countrynames all i want to do is display only selected countryname ,yes if we write a command "select * from xyz where id=1" then we can select that particular table,but i want to bind it in
    <%# DataBinder.Eval (Container, "DataItem.Count ryName") %>
    i need to pass country name from here please suggest me

    Thanks
    S!
  • mzmishra
    Recognized Expert Contributor
    • Aug 2007
    • 390

    #2
    You can use ItemDataBound event for the Repeater.
    Look into this link to get some idea
    Build web apps and services that run on Windows, Linux, and macOS using C#, HTML, CSS, and JavaScript. Get started for free on Windows, Linux, or macOS.

    Comment

    Working...