Binding data in datalist using stored procedure
-
I am using a datalist in which i want to bind some data from database on page load.. I am using the following code for doing this...throws an error saying Compiler Error Message: CS0029: Cannot implicitly convert type 'System.Data.DataSet' to 'System.Web.UI.WebControls.DataList' Source Error: Line 29: cmd.CommandType = CommandType.StoredProcedure; Line 30: SqlDataAdapter adpt = new SqlDataAdapter(cmd); Line 31: ds = new DataSet(); Line 32: adapter.Fill(ds); Line 33: conn.Close(); Please help me...?
SAJAN A PILLAI ASP.NET,C#.NET Programmer dWise Solutions and Services Pvt Ltd. BANGALORE "Winners don't do different things. They do things differently. ...
-
I am using a datalist in which i want to bind some data from database on page load.. I am using the following code for doing this...throws an error saying Compiler Error Message: CS0029: Cannot implicitly convert type 'System.Data.DataSet' to 'System.Web.UI.WebControls.DataList' Source Error: Line 29: cmd.CommandType = CommandType.StoredProcedure; Line 30: SqlDataAdapter adpt = new SqlDataAdapter(cmd); Line 31: ds = new DataSet(); Line 32: adapter.Fill(ds); Line 33: conn.Close(); Please help me...?
SAJAN A PILLAI ASP.NET,C#.NET Programmer dWise Solutions and Services Pvt Ltd. BANGALORE "Winners don't do different things. They do things differently. ...
hii show me your code where u assign dataset to datalist your connection And filling dataset from storeprocedure is right..
Jintal Patel
-
I am using a datalist in which i want to bind some data from database on page load.. I am using the following code for doing this...throws an error saying Compiler Error Message: CS0029: Cannot implicitly convert type 'System.Data.DataSet' to 'System.Web.UI.WebControls.DataList' Source Error: Line 29: cmd.CommandType = CommandType.StoredProcedure; Line 30: SqlDataAdapter adpt = new SqlDataAdapter(cmd); Line 31: ds = new DataSet(); Line 32: adapter.Fill(ds); Line 33: conn.Close(); Please help me...?
SAJAN A PILLAI ASP.NET,C#.NET Programmer dWise Solutions and Services Pvt Ltd. BANGALORE "Winners don't do different things. They do things differently. ...
Might be this is not error source code Where are you binding your dataset to datalist control ?
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
Might be this is not error source code Where are you binding your dataset to datalist control ?
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
Its working fine but i want to paginate it... is there any possibility that i want to show only 5 records in a page...
SAJAN A PILLAI ASP.NET,C#.NET Programmer dWise Solutions and Services Pvt Ltd. BANGALORE "Winners don't do different things. They do things differently. ...
-
Its working fine but i want to paginate it... is there any possibility that i want to show only 5 records in a page...
SAJAN A PILLAI ASP.NET,C#.NET Programmer dWise Solutions and Services Pvt Ltd. BANGALORE "Winners don't do different things. They do things differently. ...
Just google for pagination you will get lot of articles
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
I am using a datalist in which i want to bind some data from database on page load.. I am using the following code for doing this...throws an error saying Compiler Error Message: CS0029: Cannot implicitly convert type 'System.Data.DataSet' to 'System.Web.UI.WebControls.DataList' Source Error: Line 29: cmd.CommandType = CommandType.StoredProcedure; Line 30: SqlDataAdapter adpt = new SqlDataAdapter(cmd); Line 31: ds = new DataSet(); Line 32: adapter.Fill(ds); Line 33: conn.Close(); Please help me...?
SAJAN A PILLAI ASP.NET,C#.NET Programmer dWise Solutions and Services Pvt Ltd. BANGALORE "Winners don't do different things. They do things differently. ...
Line 29: cmd.CommandType = CommandType.StoredProcedure; Line 30: SqlDataAdapter adpt = new SqlDataAdapter(cmd); Line 31: ds = new DataSet(); Line 32: adapter.Fill(ds); And Then plz type DataList1.DataSource=ds Datalist1.DataBind() Line 33: conn.Close();
Raghvendra