Skip to content

Access variable from code behind in ASP server side control

Srikanth Suryadevara

Asked Mar 14, 2014, 10:37 PM EDT2 answers
Share
LinkedInX
<asp:Menu ID="mnu" Orientation="Horizontal" runat="server" BorderStyle="Solid" Font-Names="Castellar" Font-Size="X-Small" ForeColor="#0066FF" RenderingMode="Table">
<Items>
<asp:MenuItem Text="Statement" Value="statmnt">
<asp:MenuItem Text="Balance" NavigateUrl="~/Balance.aspx?name=<%=uid %>"Target="showholder"></asp:MenuItem>
 
 
 
 
 
i need uid which is a variable declared public in code behind

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Sunny  Sharma
    0
    This should work, where's the problem?
    0
  • 0
    it is not working due to the control which runs at server
    0