IIS ASP - Icollection List and Ilist

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > July 2007 > Icollection List and Ilist





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Icollection List and Ilist
Logger

2007-07-13, 1:21 pm

I have two datasets wher I populate a dropdown list on startup, depending on
radio button setting. If rbA then use ds_A, if rbB use ds_B. What is the
best way to store the datasets so I can populate the dropdown list without
having to connect to the db and repopulate the datasets every time? Below is
an example of one of my radio buton _checkedChanged event.

If rb_A.Checked Then
rb_B.Checked = False
ddlhs.Items.Clear()
ddlhs.DataSource = ds_A.Tables(0).DefaultView
ddlhs.DataTextField = "Name"
ddlhs.DataValueField = "Schoolid"
ddlhs.DataBind()
ddlhs.Items.Insert(0, New ListItem)
End If

I’m thinking that I have to use ICollection List and ILIST but I’m not sure
how that would work. With autopostback I keep re-initializing my objects.
Help!!

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com