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
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