It depends on where you're doing it - if you're writing this in the markup for a page, use the <%= %> tags. If you're doing it in a code-behind or in script, you just need to concatenate the strings (ie, "http://wherever.com/?user=" + user).