View Single Post
  #1 (permalink)  
Old August 27th, 2015, 05:10 PM
Grodnik Grodnik is offline
Authorized User
Points: 91, Level: 1
Points: 91, Level: 1 Points: 91, Level: 1 Points: 91, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2015
Location: rural Minnesota
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Default Add Edit DropDown as Character

First of all, I am a Classic ASP coder trying to learn .Net.
I am using this book as a guide to create a similar website and am currently looking at Hand Coding AddEdit in Chapter 15. If, instead of an INT type for GenreID, I use a CHAR(1) type, how do I change this code:
Code:
Dim myItem As ListItem
 GenreList.Items.FindByValue(review.GenreID.ToString())
If myItem IsNot Nothing Then
    myItem.Selected = True
End If
Thank you all.