|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Session issuehi,
how can i no if a perticular session veriable exist or not for example i want to chek if Session["myName"] exist or not i f its not then i have ot create it Session.add("myName","xyz"). at this time i 'm facing this issue actually i want ot safe a dataTable in a session veriable if it not exist. kindly help me out. thanks regards Noorali chagani Try checking to see whether its null. For example:
if( Session["myName"] == null ) { Session.Add("myName", "xyz") ; } Cheers, Mark noor wrote: Show quoteHide quote >hi, >how can i no if a perticular session veriable exist or not for example i >want to chek if >Session["myName"] exist or not i f its not then i have ot create it >Session.add("myName","xyz"). > >at this time i 'm facing this issue actually i want ot safe a dataTable in a >session veriable if it not exist. >kindly help me out. >thanks > >regards >Noorali chagani > > > > noor wrote:
> Keep in mind that DataTables can get relatively large quite easily and > at this time i 'm facing this issue actually i want ot safe a > dataTable in a session veriable if it not exist. > kindly help me out. > thanks > storing them in Session may be problematic under load. Make sure that you have code that prevents large result sets from being returned from database queries.
Other interesting topics
Redirects with ASP.NET 2.0 and wildcard mappings
GridView's Paging feature not working! could not load file or assembly ASP_WEB_... in ASP.NET 2.0 nested datalist problems problem with programmatically created template columns using databinding to codebehind in html How do i use Calender control in VS 2003? DropDownList.SelectedValue resets inadvertently What is the best approach? page refresh slowing down |
|||||||||||||||||||||||