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
Post a Comment