Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Mobile > problem how to assign value to object list control

Reply
Thread Tools

problem how to assign value to object list control

 
 
chintinfong@gmail.com
Guest
Posts: n/a
 
      06-12-2007
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Assign values from list to list of instances Gnarlodious Python 5 11-02-2011 04:52 AM
Language specification: Why can't I assign list of string to listof object? Claudio Nieder Java 4 04-16-2007 09:30 PM
How to assign variable value as the object property name? sneill@mxlogic.com Javascript 15 07-22-2005 05:33 AM
Assign value to HTML control Grey ASP .Net 2 05-20-2004 10:32 AM



Advertisments