annik

annik

  • NA
  • 4
  • 0

databound listbox with text=column1 and value=column2

Jan 22 2008 10:44 AM

I can easily populate my listbox this way manually on page_load, but it creates a viewstate issue. So, i'm trying to see if I can databind the listbox with a stored proc that returns 2 columns (say name which is not unique and number which is) and have the list box display name as the text but have it's value be number)

And as always, if this is a silly way to accomplish what i'm obviously trying to do here, feel free to say so and offer a much simpler method.

Thanks