Click here to Skip to main content
15,909,737 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionParse error message [modified] Pin
ASPnoob19-Jul-07 6:27
ASPnoob19-Jul-07 6:27 
AnswerRe: Parse error message Pin
SHatchard19-Jul-07 6:37
SHatchard19-Jul-07 6:37 
GeneralRe: Parse error message Pin
ASPnoob19-Jul-07 8:39
ASPnoob19-Jul-07 8:39 
Questionsessions again Pin
boyindie19-Jul-07 6:26
boyindie19-Jul-07 6:26 
AnswerRe: sessions again Pin
sathesh pandian19-Jul-07 6:49
sathesh pandian19-Jul-07 6:49 
AnswerRe: sessions again Pin
Manas Bhardwaj19-Jul-07 7:11
professionalManas Bhardwaj19-Jul-07 7:11 
GeneralRe: sessions again Pin
boyindie19-Jul-07 7:50
boyindie19-Jul-07 7:50 
AnswerRe: sessions again Pin
doWhileSomething19-Jul-07 8:19
doWhileSomething19-Jul-07 8:19 
You can do a simple test like so:

On a test page, in the form load event (or some other event):

Session("username") = "Testing"

Then on any other page in your site, you can do the following.

If Not Session("username") Is Nothing Then
Response.Write(Session("username").ToString())
End If

Because Sessions are objects like most things, you can simply call the ToString() method on the session object, as you know that what you are saving is a string already. I would'nt waist the overhead doing a conversion.

If you still do not get the value from the session object, make sure that sessions are enabled either by your host and/or in your web.config.

Hope this helps




GeneralRe: sessions again Pin
boyindie19-Jul-07 11:15
boyindie19-Jul-07 11:15 
GeneralRe: sessions again Pin
doWhileSomething19-Jul-07 12:44
doWhileSomething19-Jul-07 12:44 
GeneralRe: sessions again Pin
boyindie20-Jul-07 0:29
boyindie20-Jul-07 0:29 
AnswerRe: sessions again Pin
Deepak Gedia19-Jul-07 20:42
Deepak Gedia19-Jul-07 20:42 
GeneralRe: sessions again Pin
boyindie20-Jul-07 0:56
boyindie20-Jul-07 0:56 
Questioncopy stored procedures using visual studio 2005 Pin
TheEagle19-Jul-07 5:31
TheEagle19-Jul-07 5:31 
AnswerRe: copy stored procedures using visual studio 2005 Pin
doWhileSomething19-Jul-07 8:23
doWhileSomething19-Jul-07 8:23 
GeneralRe: copy stored procedures using visual studio 2005 Pin
TheEagle19-Jul-07 9:22
TheEagle19-Jul-07 9:22 
GeneralRe: copy stored procedures using visual studio 2005 Pin
doWhileSomething19-Jul-07 10:17
doWhileSomething19-Jul-07 10:17 
GeneralRe: copy stored procedures using visual studio 2005 Pin
TheEagle19-Jul-07 11:06
TheEagle19-Jul-07 11:06 
GeneralRe: copy stored procedures using visual studio 2005 Pin
doWhileSomething19-Jul-07 12:35
doWhileSomething19-Jul-07 12:35 
GeneralRe: copy stored procedures using visual studio 2005 Pin
TheEagle19-Jul-07 18:19
TheEagle19-Jul-07 18:19 
QuestionProblem passing data to javascript Pin
TAK7819-Jul-07 4:49
TAK7819-Jul-07 4:49 
AnswerRe: Problem passing data to javascript Pin
Eduard Keilholz19-Jul-07 5:13
Eduard Keilholz19-Jul-07 5:13 
AnswerRe: Problem passing data to javascript Pin
Guffa19-Jul-07 5:52
Guffa19-Jul-07 5:52 
GeneralRe: Problem passing data to javascript Pin
TAK7819-Jul-07 6:07
TAK7819-Jul-07 6:07 
GeneralRe: Problem passing data to javascript Pin
Eduard Keilholz19-Jul-07 6:26
Eduard Keilholz19-Jul-07 6:26 

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.