How to dynamically bind ItemTempalate in dynamically.
-
Dear all, I am using asp.net, C# , Sql Server 2005. I am using datalist control and bind it like<%# "Category : " + DataBinder.Eval(Container.DataItem,"Categoryid1") %>
<%# "Category : " + DataBinder.Eval(Container.DataItem,"Categoryid2") %> Here I am binding category and image path field. Now these are static field I would like to know whether Is it possible to dynamically bind these field. That mean based on dataset filed can I be able to bind all the filed irrespective of its field defined Thanksimran khan
-
Dear all, I am using asp.net, C# , Sql Server 2005. I am using datalist control and bind it like<%# "Category : " + DataBinder.Eval(Container.DataItem,"Categoryid1") %>
<%# "Category : " + DataBinder.Eval(Container.DataItem,"Categoryid2") %> Here I am binding category and image path field. Now these are static field I would like to know whether Is it possible to dynamically bind these field. That mean based on dataset filed can I be able to bind all the filed irrespective of its field defined Thanksimran khan
Do you mean to dynamically find the fields and show whatever is there ? The GridView at least has an AutoPopulate property that will just show whatever is in the data source.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Dear all, I am using asp.net, C# , Sql Server 2005. I am using datalist control and bind it like<%# "Category : " + DataBinder.Eval(Container.DataItem,"Categoryid1") %>
<%# "Category : " + DataBinder.Eval(Container.DataItem,"Categoryid2") %> Here I am binding category and image path field. Now these are static field I would like to know whether Is it possible to dynamically bind these field. That mean based on dataset filed can I be able to bind all the filed irrespective of its field defined Thanksimran khan
-
Dear all, I am using asp.net, C# , Sql Server 2005. I am using datalist control and bind it like<%# "Category : " + DataBinder.Eval(Container.DataItem,"Categoryid1") %>
<%# "Category : " + DataBinder.Eval(Container.DataItem,"Categoryid2") %> Here I am binding category and image path field. Now these are static field I would like to know whether Is it possible to dynamically bind these field. That mean based on dataset filed can I be able to bind all the filed irrespective of its field defined Thanksimran khan