Click here to Skip to main content
15,892,199 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionColumnHeaderMouseDoubleClick event Pin
tthellebuyck19-Sep-07 5:04
tthellebuyck19-Sep-07 5:04 
AnswerRe: ColumnHeaderMouseDoubleClick event Pin
bttds26-Sep-07 19:42
bttds26-Sep-07 19:42 
QuestionSession like variables Pin
benqazou19-Sep-07 2:58
benqazou19-Sep-07 2:58 
AnswerRe: Session like variables Pin
Lutosław19-Sep-07 6:59
Lutosław19-Sep-07 6:59 
GeneralRe: Session like variables [modified] Pin
benqazou24-Sep-07 4:20
benqazou24-Sep-07 4:20 
GeneralRe: Session like variables [modified] Pin
Lutosław24-Sep-07 4:55
Lutosław24-Sep-07 4:55 
AnswerRe: Session like variables Pin
Lutosław19-Sep-07 7:08
Lutosław19-Sep-07 7:08 
AnswerRe: Session like variables -> Properties Pin
Arjan Einbu22-Sep-07 10:46
Arjan Einbu22-Sep-07 10:46 
Have a look at the HttpContext.Current object. You can access your session variables through it, and create some wrapper code around your session variables.

Like this:
using System.Web;

public static class SessionHelper
{
	public static string SomeString
	{
		get { return HttpContext.Current.Session["SomeString"] as string; }
		set { HttpContext.Current.Session["SomeString"] = value; }
	}

	public static int SomeNumber
	{
		get { return (int)HttpContext.Current.Session["SomeNumber"]; }
		set { HttpContext.Current.Session["SomeNumber"] = value; }
	}

}

AnswerRe: Session like variables Pin
Pete O'Hanlon23-Sep-07 9:09
mvePete O'Hanlon23-Sep-07 9:09 
GeneralRe: Session like variables Pin
benqazou24-Sep-07 4:03
benqazou24-Sep-07 4:03 
AnswerRe: Session like variables [modified] Pin
bttds26-Sep-07 19:55
bttds26-Sep-07 19:55 
QuestionCombining 2 projects into 1 Pin
heztheone18-Sep-07 21:53
heztheone18-Sep-07 21:53 
AnswerRe: Combining 2 projects into 1 Pin
Lutosław19-Sep-07 7:04
Lutosław19-Sep-07 7:04 
GeneralRe: Combining 2 projects into 1 Pin
heztheone19-Sep-07 20:54
heztheone19-Sep-07 20:54 
GeneralRe: Combining 2 projects into 1 Pin
Lutosław20-Sep-07 1:45
Lutosław20-Sep-07 1:45 
GeneralRe: Combining 2 projects into 1 Pin
heztheone20-Sep-07 2:05
heztheone20-Sep-07 2:05 
GeneralRe: Combining 2 projects into 1 Pin
Lutosław21-Sep-07 23:32
Lutosław21-Sep-07 23:32 
QuestionChild DataGridView Pin
somagunasekaran18-Sep-07 18:14
somagunasekaran18-Sep-07 18:14 
QuestionCheckBox Code...... Pin
1203b564218-Sep-07 14:51
1203b564218-Sep-07 14:51 
AnswerRe: CheckBox Code...... Pin
Dave Kreskowiak18-Sep-07 16:25
mveDave Kreskowiak18-Sep-07 16:25 
QuestionStringCollection in Embedded Resources Pin
Yordan Yordanov18-Sep-07 3:47
Yordan Yordanov18-Sep-07 3:47 
AnswerRe: StringCollection in Embedded Resources Pin
John_Adams12-May-08 21:14
John_Adams12-May-08 21:14 
QuestionDataGridView Pin
somagunasekaran18-Sep-07 3:14
somagunasekaran18-Sep-07 3:14 
Questioni got error Pin
munna_vannan17-Sep-07 21:32
munna_vannan17-Sep-07 21:32 
AnswerRe: i got error Pin
smartyP18-Sep-07 3:37
smartyP18-Sep-07 3:37 

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.