Hello All,
I am testing three tier approach to display some records on asp.net page. For that i have created typed data set in visual studio and then i've created a .cs file in App_Code folder. Then am displaying the records on the .aspx page. SQL server is the database for the backend. Follwing is the code in app_code folder i.e.
using
public
{
objCommand.CommandType =
objConnection.Open();
objCountry.CountryID = (
objCountry.CountryName = (
list.Add(objCountry);
}
Now i am displaying thre records on an object data source at .aspx page. The problem is that it only displays the last row in the database repeatedly on the gridview control.
Could any buddy sort out the problem
Regards,
Ghaffar