Click here to Skip to main content
15,879,096 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi, I need help. After login user need to select their name. after he/she select their name, automatically their employee number and department appear in space provided. I already code it. But in employee number and department space appear the user name. please anyone help me. Thank you. Below is my code:

'Requestor_Name
DataSource1.SelectCommand = "SELECT * FROM CUST_TB_Requestor"
DV = DataSource1.Select(DataSourceSelectArguments.Empty)
For Each R In DV
req_name.Items.Add(New ListItem() With {.Text = R(0)})
Next
DV.Dispose()



req_emNo.Text = req_name.SelectedValue.Split("-")(1)
reqDept.Text = req_name.SelectedValue.Split("-")(2)
Posted
Updated 1-Dec-15 13:27pm
v2
Comments
Richard MacCutchan 26-Nov-15 3:25am    
Use your debugger to find the values resulting from the call to req_name.SelectedValue.Split
Member 12077709 26-Nov-15 3:32am    
Try ready. Its Show an Error.
Richard MacCutchan 26-Nov-15 4:40am    
What error? If you want help with your problem(s) then please make an effort to provide all relevant details.
John C Rayan 26-Nov-15 5:00am    
Need more details.
Member 12077709 26-Nov-15 19:40pm    
I'm writing an approval system. The requester send request application form to manager for approve. after the manager approve the request form, Security also need to approve the request. The user login into the system. After he/she login into the system directly going to homepage. In homepage have 3 characters. They are REQUESTER, MANAGER, and SECURITY. The user need to choose which category there are. If he/she is a requester, then they need to click the requester image. After click the requester image, directly going to request form. In request form they no need key in their detail. the details automatically fill the textboxes.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900