Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have a data set defined as follows
VB
Dim dt As DataTable
        dt = objTimeSystem.getEmpTypeEarnings(CInt(hdnEmployeeSeq.Value))


Now I have a hidden filed with ID as hdnbargainingunit. I need to assign a value to this hidden filed from one of data set column called bargaining_unit_seq. How to do this?
Posted
Updated 17-Apr-14 10:31am
v4
Comments
j snooze 17-Apr-14 17:27pm    
try this..
hdnbargainingunit.value = dt.Rows[1]["bargaining_unit_seq"].toString()

Might want to verify the dt.Rows.Count first to make sure data returned.
Member 10740414 18-Apr-14 8:23am    
when I does this I'm getting "value of type 'system.data.datarowcollection' cannot be converted to 'string'"

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