471,122 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,122 software developers and data experts.

Accessing items in a DataList on postback...

Hi:

I have a DataList that uses an HTML table to format items in its bound
datasource. No server side control templates are used.

When form posts back from a button click (separate from datalist), I get a
reference to the data in button click event using
"DataList.Items[1].Controls[2]". This gives me a reference to a
DataBoundLiteralControl object which has as it's Text property the HTML from
DataList viewstate. Looking at it in the debugger, I see an array property
called _dataBoundLiteral that gives array access to the data. How do I get
access to this array in code? _dataBoundLiteral is not property of
DataBoundLiteralControl object.

Thanks,
Charlie
Nov 19 '05 #1
0 1106

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Scott Schluer | last post: by
1 post views Thread by bill yeager | last post: by
8 posts views Thread by MattB | last post: by
1 post views Thread by Jim Heavey | last post: by
reply views Thread by webserverpete | last post: by
4 posts views Thread by Nathan Sokalski | last post: by
1 post views Thread by Arpan | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.