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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top