G
GM
I am building the text for a resume section label in databinding with 20 or
so data columns using a series of 20 or so code snippits like the following:
If e.Item.DataItem("EmployerDisplay") And e.Item.DataItem("Employer") <> ""
Then
Sections.Text += "<BR><B>Employer</B>: " & e.Item.DataItem("Employer")
End If
Is this an efficient way to build the section label's text property? Any
suggestions?
In each snippit, I call the data field twice, once to test for data and once
to add it to the control if present. Would it be better to pull the data
into a string or something?
Dim ds as String
------
ds = e.Item.DataItem("Employer")
If e.Item.DataItem("EmployerDisplay") And ds <> "" Then
Sections.Text += "<BR><B>Employer</B>: " & ds
End If
Thanks in advance for any suggestions.
Gary
so data columns using a series of 20 or so code snippits like the following:
If e.Item.DataItem("EmployerDisplay") And e.Item.DataItem("Employer") <> ""
Then
Sections.Text += "<BR><B>Employer</B>: " & e.Item.DataItem("Employer")
End If
Is this an efficient way to build the section label's text property? Any
suggestions?
In each snippit, I call the data field twice, once to test for data and once
to add it to the control if present. Would it be better to pull the data
into a string or something?
Dim ds as String
------
ds = e.Item.DataItem("Employer")
If e.Item.DataItem("EmployerDisplay") And ds <> "" Then
Sections.Text += "<BR><B>Employer</B>: " & ds
End If
Thanks in advance for any suggestions.
Gary