"Craig" <(E-Mail Removed)> wrote in message
news:72C8386E-40F6-4F5A-8A05-(E-Mail Removed)...
> I'm used to PHP. If I wanted to have a link with variables, I'd do
> something like this in the html:
> mysite.com/?user=<?php echo $myUser ?>
>
> What's the best way to do this in ASP.NET
> 1. How do I do an Echo for a Session variable.
mysite.com/?user=<%=myUser%>
> 2. is it best design to do this in the html <% here %> or in the code
> behind?
It's really a preference thing.
Personally;
-if it's a simple page .. <%=myUser%> might be ok
-anything bigger, I would probably use code behind.
|