W
wgraulich
Guest
I have created a webpage that has a gridview attached to a sql database with employee names and Jurisdictions the employees are in. The jurisdiction column is an integer with numbers 1 through 99. I want to convert the numbers 1 and 99 so they show in the gridview as 1 would convert to "Police" and 99 would convert to "Dispatch" within the gridview. I am new using Visual Basic and not sure how to write this. I have tried multiple different ways but nothing is converting the numbers to text. The below code is just the gridview, no code to convert int to string. I am not even sure If I am putting it in the right place within the basic code.
Public Class employeesearchform
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Protected Sub GridView1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles GridView1.SelectedIndexChanged
End Sub
End Class
Continue reading...
Public Class employeesearchform
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Protected Sub GridView1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles GridView1.SelectedIndexChanged
End Sub
End Class
Continue reading...