What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 9301 |  Welcome, Guest!   Register  Login
 Home > Forums > Ask Interview Questions > what is the datatype of Session ...
Packs

what is the datatype of Session

Replies: 2 | Posted by: Packs on 9/25/2012 | Category: Ask Interview Questions Forums | Views: 430 | Status: [Member] | Points: 10  


i n an interview i was asked
What is the data type of Session

and can we store dataset in sessions


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

T.Saravanan
T.Saravanan  
Posted on: 9/25/2012 10:58:06 AM
Level: Silver | Status: [Member] [MVP] | Points: 25

Session datatype is "Generic". So we store any type of data in "Session" object.

Ex:
I have stored datatable value in Session and get that value from session.

DataTable dtInput = new DataTable();
Session["Data"] = dtInput;
DataTable dtOutput = (DataTable)Session["Data"];


Thanks,
T.Saravanan

Packs, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Hariinakoti
Hariinakoti  
Posted on: 9/25/2012 1:10:30 PM
Level: Starter | Status: [Member] | Points: 25

Nice Explanation Saravanan

Thanks & Regards
Hari

Packs, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/23/2013 7:58:42 PM