T
tshad
Is there a way to do something like:
UserList.DataSource=theDataSet
if ShowUserRoles.Checked then
UserList.DataTextField= "NameUserName" & " / " & "RoleDescription"
else
UserList.DataTextField= "NameUserName"
end if
UserList.DataValueField="UserID"
UserList.databind()
I could assign a variable to the Select statement that does it, but I would
prefer to do it here, if possible.
Thanks,
Tom
UserList.DataSource=theDataSet
if ShowUserRoles.Checked then
UserList.DataTextField= "NameUserName" & " / " & "RoleDescription"
else
UserList.DataTextField= "NameUserName"
end if
UserList.DataValueField="UserID"
UserList.databind()
I could assign a variable to the Select statement that does it, but I would
prefer to do it here, if possible.
Thanks,
Tom