Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Binded Datalist produces no html, but output is fine.

Status
Not open for further replies.

QuantumDoja

Programmer
Jun 11, 2004
76
GB
Hi, I have a datalist to which i bind a list of customers, it shows perfectly on the screen, but when i view the html source, the only code shown is that surrounding the datalist, no datalist source is shown.....why is this....what setting have i turned off?

 
It has to be there in order for the browser to render it (it will be shown within a <table> tag with a row for each entry).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
And I promise that if it's not there the browser can't render it!


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I think ive solved it, asp.net only renders what is on the page, therefore the datalist contains no data the first time the page loads, therefore does not render it, when i click search, the datalist is populated....very strange..

 
You original post said that "it shows perfectly on the screen" yet that can't have been the case as, if the datalist contained no data, how could it show perfectly as it wouldn't have been displayed?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top