insert a value in this way: <%# var %>

  • Thread starter Thread starter RicercatoreSbadato
  • Start date Start date
R

RicercatoreSbadato

hi all, I'm using C# and ASP .NET.

I want to modify this field
<%# var %>
AFTER the Page_Load() event...

How can I do ?
 
hi

if you want to modify the variable with inline aspx code, you can do this:
code-behind: public int var=5;
inline-aspx: <% var = 10; %>
Page_Load executes before inline aspx code.

this is just a guess and you'll really have to provide more information
about what you are doing and what else is going on with the page that makes
you want to to modify variables after page_load.

tim
 
Back
Top