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

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -