Click here to Skip to main content
15,919,028 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionconvert vb to javascript Pin
farabba7-Jul-08 4:05
farabba7-Jul-08 4:05 
AnswerRe: convert vb to javascript Pin
Christian Graus7-Jul-08 4:08
protectorChristian Graus7-Jul-08 4:08 
GeneralRe: convert vb to javascript Pin
farabba7-Jul-08 4:15
farabba7-Jul-08 4:15 
GeneralRe: convert vb to javascript Pin
Christian Graus7-Jul-08 4:56
protectorChristian Graus7-Jul-08 4:56 
QuestionC# create Ajax Accordion and panes? Pin
countnazgul7-Jul-08 4:00
countnazgul7-Jul-08 4:00 
AnswerRe: C# create Ajax Accordion and panes? Pin
countnazgul8-Jul-08 22:50
countnazgul8-Jul-08 22:50 
Questionsession Pin
rajeev22337-Jul-08 3:20
rajeev22337-Jul-08 3:20 
AnswerRe: session Pin
Christian Graus7-Jul-08 3:35
protectorChristian Graus7-Jul-08 3:35 
Buy a book on ASP.NET and read it. This is such an entry level question that even tho I will answer it, it's clear you have a lot to learn.

Session["MyKey"] = "value"; // can be any type
string s = (string)Session["MyKey"];
Session["MyKey"] = null;

I would put the keys into a class, so that you're not always typing them, the compiler will not find typos in there. Also, I'd add methods to a base page class that safely check if a session object is null and return a bool if it is, just like the tryparse methods on classes like string.

Christian Graus

Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.

GeneralRe: session Pin
tina->newcoder7-Jul-08 8:03
tina->newcoder7-Jul-08 8:03 
GeneralRe: session Pin
Christian Graus7-Jul-08 8:16
protectorChristian Graus7-Jul-08 8:16 
QuestionCheckBox is not available in the User Control Pin
dwadasi7-Jul-08 2:39
dwadasi7-Jul-08 2:39 
AnswerRe: CheckBox is not available in the User Control Pin
Sherin Iranimose7-Jul-08 2:54
Sherin Iranimose7-Jul-08 2:54 
QuestionGet the Website Physical Path Pin
Brendan Vogt7-Jul-08 2:17
Brendan Vogt7-Jul-08 2:17 
AnswerRe: Get the Website Physical Path Pin
sumit70347-Jul-08 2:26
sumit70347-Jul-08 2:26 
AnswerRe: Get the Website Physical Path Pin
N a v a n e e t h7-Jul-08 2:27
N a v a n e e t h7-Jul-08 2:27 
AnswerRe: Get the Website Physical Path Pin
Guffa7-Jul-08 2:36
Guffa7-Jul-08 2:36 
Questionhow to work with .net and Flex. Pin
Piyush Vardhan Singh7-Jul-08 2:09
Piyush Vardhan Singh7-Jul-08 2:09 
AnswerRe: how to work with .net and Flex. Pin
Imran Khan Pathan7-Jul-08 2:15
Imran Khan Pathan7-Jul-08 2:15 
GeneralRe: how to work with .net and Flex. Pin
Piyush Vardhan Singh7-Jul-08 2:21
Piyush Vardhan Singh7-Jul-08 2:21 
QuestionHow to select a range of text using java script ? Pin
Abhijit Jana7-Jul-08 1:32
professionalAbhijit Jana7-Jul-08 1:32 
AnswerRe: How to select a range of text using java script ? Pin
Sherin Iranimose7-Jul-08 2:18
Sherin Iranimose7-Jul-08 2:18 
QuestionRe: How to select a range of text using java script ? Pin
Abhijit Jana7-Jul-08 3:20
professionalAbhijit Jana7-Jul-08 3:20 
AnswerRe: How to select a range of text using java script ? [modified] Pin
Sherin Iranimose7-Jul-08 3:35
Sherin Iranimose7-Jul-08 3:35 
AnswerRe: How to select a range of text using java script ? Pin
Abhijit Jana7-Jul-08 3:51
professionalAbhijit Jana7-Jul-08 3:51 
GeneralRe: How to select a range of text using java script ? Pin
Abhijit Jana7-Jul-08 4:14
professionalAbhijit Jana7-Jul-08 4:14 

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.