Last post Mar 07, 2007 01:16 PM by email@example.com
Mar 05, 2007 06:41 PMfirstname.lastname@example.org|LINK
I have changed it so that the site pulls from SQL and the News List displays properly but all of the articles display the same details when clicked. Any idea how to fix this?
Mar 06, 2007 02:42 AM|Zhou|LINK
your SqlDataSource load all records from the database, but you need only one particular record. You must change the select statement and add a where clause like this:
SelectCommand="SELECT * FROM [News]
Where NewsID = @newsItemId"
Mar 07, 2007 01:16 PMemail@example.com|LINK