problem how to assign value to object list control

C

chintinfong

can i know how to assign value to object list control field.
let said, i got e.g select statement like select custid,custname from
table

then in the object list control, i manual set the custId,Custname
field name databind with the above statement,
later on, i add one more field custaddress, but it is not the
fieldname can get from the statement

and when page load, let said, i need to manual assign value to
custaddress field, how am i going to do tat.

if let said for the website design i can do it like below coding

public sub abc (ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs)
coding....
a new select statement to get address loop the address
assign to a variable
dim str _display as string = address (example)

Dim lab As Label = CType(e.Item.FindControl("Custaddress"), Label)
lab.Text = str_display

end
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top