TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sindhu aduru
NA
1
1.2k
Save Session variables from business object
Feb 22 2012 7:18 AM
Hi All,
I need to save the values of BO object into session variables after logged in successfully to the website.
Here is my code:
IList<ConfigurationMaster> pConfigurationMaster = BLLConfigurationCountryandState.Instance.GetConfiguration();
Session[ConfigEnum.Country.ToString()] = new KeyValuePair<string, string>(pConfigurationMaster[0].ConfigNameId, pConfigurationMaster[0].ConfigValue);
Session[ConfigEnum.State.ToString()] = new KeyValuePair<string, string>(pConfigurationMaster[1].ConfigNameId, pConfigurationMaster[1].ConfigValue);
Session[ConfigEnum.City.ToString()] = new KeyValuePair<string, string>(pConfigurationMaster[2].ConfigNameId, pConfigurationMaster[2].ConfigValue);
Session[ConfigEnum.AcademicYear.ToString()] = pConfigurationMaster[3].ConfigValue;
Here i don't want to use the pConfigurationMaster[index].configvalue;
It's very urgent.Any one please help me in this.
-Sindhu.A
Reply
Answers (
0
)
Possibility for the creation of the dll file in C# Application
Can anyone explain this method please