in asp.net:showing records in div

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • latanivandikar
    New Member
    • Jul 2008
    • 1

    in asp.net:showing records in div

    In asp.net How to display records satisfying particular conditions from one table only in diff DIV
    eg. using only one table
    we have to display diff. records in diff.DIV. according to particular column value.
    eg. in one DIV show records from table1 where empno between(1-8)
    in other DIV show records from same table whee empno between(8-14) and so on.
    how I can do this?
    whether i have to write diff. query for diff DIV or what?
  • DrBunchman
    Recognized Expert Contributor
    • Jan 2008
    • 979

    #2
    You can populate two different controls based on the values you read from your database.

    If you had, say, two listboxes you could add an item to one or the other as you loop through your data depending on the result of your test (in this case whether the empno is between 1-8 or 1-14).

    Hope this helps,

    Dr B

    Comment

    Working...