Click here to Skip to main content
15,860,972 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can a Session Value to pass in Menu Control as QueryString

For eg : Admin.aspx?ax=<%=Name%> Is there any mistake in this statement. With this statement Session["Name"] value is not passed as QueryString in the menu control.
If anybody knows,do reply.
Posted

1 solution

I am assuming you are using a hyperlink or any client side redirection control. If you want to do this then use linkbutton and on_click of link button do this

C#
Response.redirect("Admin.aspx?ax=" + Session["Name"].tostring());
 
Share this answer
 
Comments
Milind Panchal 21-Mar-12 8:53am    
No, I am using menu control

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900