I have a web page where I am trying to populate the PSI # into the txtPSI depending on which customer is selected in ddlCustomers. I have written it a way it has worked on a past project and it compiles with no errors, however it doesn't work when it runs.

Protected Sub ddlCustomers_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ddlCustomers.SelectedIndexChanged  
  'Populate PSI # in txtPSI based on Customer selected  
  Dim PSINumber As String = ""
  If ddlCustomers.SelectedIndex > 0 Then
    PSINumber = OMCustomerPSI.GetPSI(ddlCustomers.SelectedItem.ToString)  
    If PSINumber = "" Then
    MessageBox.Show("There is no PSI Number available. (Please create new PSI Number in Digecenter Manage Site.)")  
    txtPSI.Text = PSINumber  
    End If
  End If
  End Sub

If anyone can help me get this working properly I would greatly appreciate it, my whole project needs to be done EOD tomorrow. I still have a lot more to go. :( HELP!


7 Years
Discussion Span
Last Post by jugosoft
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.