开发者

how to pass session variable in href

开发者 https://www.devze.com 2023-03-03 06:12 出处:网络
want to pass session of a开发者_如何转开发ccount id through href.. i tried with `href=\"../Profile/Home.aspx?uid=<% =&Session(\"AccountId\")%>\"`
want to pass session of a开发者_如何转开发ccount id through href.. i tried with 
`href="../Profile/Home.aspx?uid=<% =&Session("AccountId")%>"` 

but its not working.. help me


try:

href="../Profile/Home.aspx?uid=<%= Session["AccountId"] %>"

You had an extraneous & in there. Also Session is indexed with [], not ()

0

精彩评论

暂无评论...
验证码 换一张
取 消