Click here to Skip to main content
15,888,733 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhi frens..pls do help me.. Pin
RRR1816-Aug-07 19:01
RRR1816-Aug-07 19:01 
AnswerRe: hi frens..pls do help me.. Pin
leckey17-Aug-07 3:07
leckey17-Aug-07 3:07 
QuestionIIS PROBLEM Pin
methhoo16-Aug-07 13:29
methhoo16-Aug-07 13:29 
AnswerRe: IIS PROBLEM Pin
Guffa16-Aug-07 14:57
Guffa16-Aug-07 14:57 
QuestionSession not available in VirtualPathProvider Pin
walkTheNet16-Aug-07 12:04
walkTheNet16-Aug-07 12:04 
AnswerRe: Session not available in VirtualPathProvider Pin
peacefulmember16-Aug-07 15:26
peacefulmember16-Aug-07 15:26 
GeneralRe: Session not available in VirtualPathProvider Pin
walkTheNet17-Aug-07 5:43
walkTheNet17-Aug-07 5:43 
GeneralRe: Session not available in VirtualPathProvider Pin
walkTheNet17-Aug-07 7:15
walkTheNet17-Aug-07 7:15 
Hi peacefulmember,

I have to apologize. I use cookies without my knowledge Smile | :)

Now that I know that I use cookies I found out that there is a cookie in which the session id is stored. I save now the value which I wanted to store in the session also in the cache with following statement:
<br />
Cache[Session.SessionID + "_MyKey"] = Value;<br />


The difference to just saving it in the session is that the cache is available every time and the cookies are already present at the time I need to get the value. So in my VirtualFile I added following code to retrieve the value again:

<br />
if (HttpContext.Current.Request.Cookies["ASP.NET_SessionId"] != null) {<br />
value = (String)System.Web.Hosting.HostingEnvironment.Cache[HttpContext.Current.Request.Cookies["ASP.NET_SessionId"].Value + "_MyKey"];<br />
}<br />


That solved the problem for me. It's kind of a workaround. I would have preferred the "Session-Solution" but as the Session is not filled that time I have to solve it this way.

Thanks
Oliver
QuestionHi All, Pin
peacefulmember16-Aug-07 10:30
peacefulmember16-Aug-07 10:30 
GeneralSubject : HTML tag and JavaScript validation in usercontrol Pin
peacefulmember16-Aug-07 10:33
peacefulmember16-Aug-07 10:33 
AnswerRe: Hi All, Pin
Christian Graus16-Aug-07 11:30
protectorChristian Graus16-Aug-07 11:30 
GeneralRe: Hi All, Pin
peacefulmember16-Aug-07 15:22
peacefulmember16-Aug-07 15:22 
AnswerRe: Hi All, Pin
N a v a n e e t h16-Aug-07 17:55
N a v a n e e t h16-Aug-07 17:55 
GeneralRe: Hi All, Pin
peacefulmember17-Aug-07 3:00
peacefulmember17-Aug-07 3:00 
GeneralRe: Hi All, Pin
peacefulmember17-Aug-07 3:09
peacefulmember17-Aug-07 3:09 
AnswerRe: Hi All, Pin
S A R I T H16-Aug-07 20:35
S A R I T H16-Aug-07 20:35 
QuestionI need help with sequel query with INNER/OUTER JOIN Pin
hurrem16-Aug-07 9:37
hurrem16-Aug-07 9:37 
AnswerRe: I need help with sequel query with INNER/OUTER JOIN Pin
Christian Graus16-Aug-07 11:32
protectorChristian Graus16-Aug-07 11:32 
GeneralRe: I need help with sequel query with INNER/OUTER JOIN Pin
hurrem16-Aug-07 12:35
hurrem16-Aug-07 12:35 
QuestionCompiler Error Message: CS0117 Pin
BigtimeOneEleven16-Aug-07 8:31
BigtimeOneEleven16-Aug-07 8:31 
AnswerRe: Compiler Error Message: CS0117 Pin
Christian Graus16-Aug-07 11:38
protectorChristian Graus16-Aug-07 11:38 
QuestionConnecting to SQL !!! Pin
mrkeivan16-Aug-07 7:11
mrkeivan16-Aug-07 7:11 
AnswerRe: Connecting to SQL !!! Pin
mani_iips16-Aug-07 7:16
mani_iips16-Aug-07 7:16 
GeneralRe: Connecting to SQL !!! Pin
mrkeivan16-Aug-07 7:26
mrkeivan16-Aug-07 7:26 
GeneralRe: Connecting to SQL !!! Pin
mani_iips16-Aug-07 7:29
mani_iips16-Aug-07 7:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.