[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.mobile

problem how to assign value to object list control

chintinfong

6/12/2007 4:20:00 AM

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