Microsoft
Software
Hardware
Network
Question : C# raw classes
I am trying to arrange my codes in classes in C# but I am having some issues in accomplishing this.
I created a new class where i want to have all my methods. Is it possible for me access variables that i defined in my webforms from this new class?
for example i have an asp hyperlink1 variable that i want to access in the my new C# class. Also how can i use sessions in that class.
Everything works fine in my name.aspx.cs i.e. code behind but now i want to transfer all methods to my new class that i created.
Answer : C# raw classes
for seesion you can use
System.Web.HttpContext.Cur
rent.Sessi
on["variab
leName"]="
test"
Random Solutions
Before unload
SBS 2008 How to Change the Company web Page Calender Date Format
Setup a wenpage in Windows Server 2008
3 long beeps
Event ID 37 Microsoft-Windows-Kernel-P
rocessor-P
ower
Unable to Search Empty Folders
Check colum A for names in the name matches a sheet name in any workbook then copy to the sheet where we are quering from.
Code in SQL 2000 not parsing/running in SQL 2005 Query Analyzer
DBGrid's content into email
Explain plan in Oracle