What is the difference between <%#Eval("id") %>' <%#Eval("id",~/Default.aspx?id={0}")%>'
Loading
What is the difference between <%#Eval("id") %>' <%#Eval("id",~/Default.aspx?id={0}")%>'
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Suthish NairPosted Jul 28, 2011, 12:35 AM
Eval("id") will bind the column id value to the controls.
Eval("id",~/Default.aspx?id={0}
{0} - Place holder.
The number between the braces is zero, indicating that the first parameter will hold column id value.
e.g. you having column id value as "10" then
~/Default.aspx?id=10