Rank is my server side variable.

I am trying this

<asp:TextBox ID="sds" runat="server" Text="<%# Eval(Rank) %>"></asp:TextBox>

But there comes nothing in text box, however when I write the same on response stream, it gives me result.

<%= Rank %>

I tried without Eval also.

<asp:TextBox ID="sds" runat="server" Text="<%# Rank %>">

Why it's coming null when assigned to textbox?

Thanks.

Related posts

Recent Viewed