problem how to assign value to object list control

Discussion in 'ASP .Net Mobile' started by chintinfong@gmail.com, Jun 12, 2007.

  1. Guest

    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
    , Jun 12, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Grey

    Assign value to HTML control

    Grey, May 20, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    2,336
    Ashish M Bhonkiya
    May 20, 2004
  2. Replies:
    0
    Views:
    821
  3. Claudio Nieder
    Replies:
    4
    Views:
    684
  4. Gnarlodious
    Replies:
    5
    Views:
    195
    Gnarlodious
    Nov 2, 2011
  5. Replies:
    15
    Views:
    213
Loading...

Share This Page