I have a rather simple problem which I can't seem to work out.
I have a javascript code block;
<script>
var user = {
id: 1,
username: 'myname'
};
window.location.href = '<%# Page.GetRouteUrl("member", New With {.member = --username--})%>';
</script>
In the above code, I need to replace --username-- with user.username from my javascript object.. I would be grateful if you could help me accomplish this.
EDIT
I cannot get username from server side as username is the name of the user from facebook which I use the javascript API to get...
usernamefrom server side and use inGetRouteUrl?