Hey guys I cant seem to get this to work:
div.Attributes.Add("UserFriendsWall.aspx?FriendID=" + Server.UrlEncode(id));
Also tryed this:
div.Attributes.Add("onclick", "UserFriendsWall.aspx?FriendID=" + Server.UrlEncode(id));
Is there anyway to redirect while storing id?
maybe
div.Attributes.Add("onclick", "redirect(" + id + ");");
this is only a means if there is no other way with c#
<script type="text/javascript">
function redirect(id) {
redirct function via javascript maybe, dont know how tho?('DivClicked', id);
}
</script>
I think what you want is
Or if
idis a variable in local scope, drop thethis.from the front.