Marcie: Your second approach worked! Here is the code For Each dlItem In detailsgrid.Items ' reference the TextBox Dim txtItems As TextBox = CType(dlItem.FindControl("item_received"), TextBox) ' Grab the value item_recieved = txtItems.Text ' Get the order number
from DataKeys order_num = detailsgrid.DataKeys(dlItem.ItemIndex).ToString() Dim txtComments as Textbox = Ctype(dlitem.FindControl("txtcomment"), Textbox) frmComments = txtComments.Text Dim myLabel As Label = Ctype(dlitem.FindControl("order_line_num"), Label)
order_line_num = mylabel.text Thanks again for helping out. Next time I am stuck I know who to look for! Do you have a personal forum where you anwer questions?? Yaheya.
Yaheya Quazi
Director, Admin. Comp. & Systems
University of California, Merced
Hi Yaheya, I'm glad it worked out! I do also answer questions on the Datagrid listserv at
AspAdvice.com, but this is also a good place because there are so many people that answer questions here. I generally discourage questions by private email for 2 reasons: 1) I don't have time to answer all the ones that
come in, and here you'll have the benefit of many other people seeing your question who can also answer it. 2) In a public setting like this, thousands of people can benefit from the Q/A, by searching when they have similar questions. Take care! Marcie
Thanks Marcie! I promise not to send you person emails with questions :) Anyway, since you are around today, I would like to take the advantage if I may. I have a strange problem that many people in here couldn't answer. Do you want to give it a try? Here is
my Datalist code Line Qty Description Price Ln Amt. Qty. Recieved Recieved Today Comments and the output it produces...
I think that the DataList automatically surrounds your content with 's because of the RepeatLayout property, which defaults to "Table". Try adding this property in your declaration, and set it to "Flow": Marcie
yaheya
Participant
1635 Points
340 Posts
Re: Simple question
Aug 04, 2003 10:19 PM|LINK
Director, Admin. Comp. & Systems
University of California, Merced
datagridgirl
Contributor
4417 Points
849 Posts
ASPInsiders
Re: Simple question
Aug 04, 2003 10:24 PM|LINK
yaheya
Participant
1635 Points
340 Posts
Re: Simple question
Aug 04, 2003 10:26 PM|LINK
Director, Admin. Comp. & Systems
University of California, Merced
datagridgirl
Contributor
4417 Points
849 Posts
ASPInsiders
Re: Simple question
Aug 04, 2003 10:34 PM|LINK
yaheya
Participant
1635 Points
340 Posts
Re: Simple question
Aug 04, 2003 10:42 PM|LINK
Director, Admin. Comp. & Systems
University of California, Merced
datagridgirl
Contributor
4417 Points
849 Posts
ASPInsiders
Re: Simple question
Aug 04, 2003 10:53 PM|LINK
yaheya
Participant
1635 Points
340 Posts
Re: Simple question
Aug 04, 2003 11:14 PM|LINK
Director, Admin. Comp. & Systems
University of California, Merced
yaheya
Participant
1635 Points
340 Posts
Re: Simple question
Aug 04, 2003 11:34 PM|LINK
after each tag... how can I get rid of the SPAN tags?
Director, Admin. Comp. & Systems
University of California, Merced
datagridgirl
Contributor
4417 Points
849 Posts
ASPInsiders
Re: Simple question
Aug 05, 2003 02:20 PM|LINK
yaheya
Participant
1635 Points
340 Posts
Re: Simple question
Aug 05, 2003 04:10 PM|LINK
Director, Admin. Comp. & Systems
University of California, Merced