Dynamically Populate A Label

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to populate a label on a web form



Let’s say I have the following select statement



“Select Wonum, Location, Priority, Equipment from Workorderâ€



I have the following labels on the WebForm



wonumLabel, locationLabel, priorityLabel, equipmentLabe



How do I populate the labels



wonumLabel.Text =

locationLabel.Text =

priorityLabel.Text =

equipmentLabel.Text =
 
You need to explain further. What format is your data source in when it
reaches the web page?

If it is a DataView...

wonumLabel.Text = theDataView[nRow].Row["theFieldName"]
 
As I said before ...


DataView objDV = CreateDataSource()
wonumLabel.Text = objDV[0].Row["Wonum"] // "0" is the first row in the
dataview
 
Back
Top