locked
problem with httpcontext (Session variable) in sharepoint web part RRS feed

  • Question

  • Hi all,

    I am devloping web part for sharepoint 2007 with sp2. I have written code to assign value to session variable in createchildcontrols method and I am getting the error " Unexpected error occured" when the web part is loaded in the page. If I reomve the code which assigns value to session varable web part works fne . Can any help me regarding this issue. I am using the fallowing code to assign value to sessio variable

     

    HttpContext.Current.Session["SpQuery"] = "text value";

    If I remove this code web part works fine..

    did any one face the same problem

    Sunday, December 12, 2010 6:08 AM

Answers

All replies