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
Publishing Applications - Windows Server 2008
SQL injection problem on several pages. Any server side solution to this
How do I delete a file from a folder (uploads directory) when I delete its reference in the database?
(hopefully) Simple Excel 2007/2010 question
Quickbooks 2010 QB crashes when trying to print to network printer
Script needed to close program and stop/start service
SPID process blocking itself
Combofix Log - Analysis Assistance Request
Converting example Outlook Redemption VBS to C#
How does the pointers of an inode's data block relattes to the logical block address of a SCSI device?