TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
albert albert
NA
524
0
How to show text , value is an integer in database
Mar 10 2014 6:40 AM
Hi everybody,
I have tree Radiobuttons. and an database field: ActionDefinitionActivityType that has three integer values: 1,2,3.
In the aspx form I get the values: 1,2,3 depending what you have selected.
But I want to have text showing for: 1 - Overig, 2-werk, 3-reizen.
I have this as code:
[code]
Sub DataToForm(ByVal dataobj As DataLayer.DataObject)
With dataobj
txtActionDefinitionDescription.Text = .GetVal("ActionDefinitionDescriptionNL")
txtActionDefinitionDescriptionDE.Text = .GetVal("ActionDefinitionDescriptionDE")
txtActionDefinitionDescriptionFR.Text = .GetVal("ActionDefinitionDescriptionFR")
txtActionDefinitionDescriptionUK.Text = .GetVal("ActionDefinitionDescriptionEN")
txtNL.Value = .GetVal("ActionDefinitionDescriptionNL")
txtDE.Value = .GetVal("ActionDefinitionDescriptionDE")
txtFR.Value = .GetVal("ActionDefinitionDescriptionFR")
txtEN.Value = .GetVal("ActionDefinitionDescriptionEN")
If .GetVal("ActionDefinitionActivityType") = 1 Then
InputRadioButton1.Checked = True
End If
If .GetVal("ActionDefinitionActivityType") = 2 Then
InputRadioButton2.Checked = True
End If
If .GetVal("ActionDefinitionActivityType") = 3 Then
InputRadioButton3.Checked = True
End If
End With
End Sub
[/code]
So if you select 1 you see in the view(aspx Form) 1, but you have to see: overig
THank you
Reply
Answers (
3
)
Prob In IIS Printer Settings
String Manipulation