What is the difference between <%#Eval("id") %>' <%#Eval("id",~/Default.aspx?id={0}")%>'
Difference in <%#Eval("id") %>' <%#Eval("id",~/Default.aspx?id={0}")%>'
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Suthish NairRank #92 · 22.8K reputationPosted Jul 27, 2011, 8:35 PM EDT
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