How to split a column data with commas and call it into asp.net page?

110 views Asked by At

In a datalist I need to call a table column (terms and conditions i stored in a single column) how can i separate it in asp.net datalist with the help of .cs file with the help of commas it should come as a list.

1

There are 1 answers

0
mohammadreza izadi On

i think you can deserialize a record to your Type. for example :

        var t = new JavaScriptSerializer().Deserialize<t_User>( @"{id:'123' , Name: 'name' , Famili:'family'}");

each records has fetched from db should deserialize to your type.