c# - Binding data to Template Field in Asp.net -


i want bind data templatefield in asp.net. know following code

text = '<%#bind("columnname") %>' 

where text text property of control want bind to. want bind thing text in control, want bind hyperlink's navigateurl following:

"default.aspx?id="  

and bind , id database. how can achieve this? thank you.

perhaps:

navigateurl='<%# string.format("default.aspx?id={0}&nextparam={1}", eval("id"), eval("nextcolumn")) %>' 

Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -