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
10 lines of C# to VB.NET translation supervising
Mounting NFS NAS in ESX 3
changing external server name.. do I need to change anything in Outlook
SBS 2008 - STOP c00002e2
Outlook 2007 does not remember password.
Pass value on form through Querystring Javascript
Remove space from textbox automatically
Creating a Linux ready CD-R style boot disc ...
what is the default directory to run jsp file from tomcat 5.5 and what directory for mysql_connector.jar file to be placed?
asp - The resource could not be found