Click here to Skip to main content
15,909,445 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi,
I want to pass the id value from one view to multiple views.can i pass the id using local or session in html 5 web storage,If possible can u tell me how to pass this value?
Posted

1 solution

I answered this question days ago. You've asked it twice since then. the answers will not change, if you can't understand us, then the task is beyond you. No matter how often you ask, this will not change. You can't read a magazine on the toilet, learn some buzzwords, and change the answer. Are you using MVC, or not ? I think you don't even know enough to know what you're using, or what to ask.
 
Share this answer
 
Comments
charan1431 20-Jul-12 2:28am    
sorry for asked the question again today,I have a doubt,can u tell me how to store The Id which i am retrieving from the grid store in the session and how to use this id in the other views.
Christian Graus 20-Jul-12 2:31am    
If you don't know how to use the session, you don't know how to program the web. Like I told you, putting the value on the URL is way better, putting it in the session works, but sucks. Either way, it's very simple. You use the Session object to store the value and to retrieve it, or you retrieve it from the URL. And, don't ask the same thing over and over, if you have a question about my answer, ask it as a comment, and I will respond. Don't flood the forum with your crap, the same thing over and over. Be clear about what you learned from the last reply, and what you're asking now, in light of what you learned, if you must post a new question in response to something you asked before. Otherwise we just assume you're not listening.
Christian Graus 20-Jul-12 17:52pm    
I read your reply, you deleted it ? Seriously, if you have no clue how the session object works, and don't know how to find out, then you need to step back and think about what you're doing. You should not be writing code anyone will use, or that is this complex, with that level of ignorance. You pull values out of the session the same way you put them in. string id = (string) Session["mykey"] will work ( although it could be cleaned up a little ). I reiterate - putting it in the session is a bad idea, put it on the URL and leave it there, then there's no room for error and users can bookmark the pages.

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