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
How do I hide/show divs in a custom (ascx) control inside an asp:repeater control?
Why are pointers efficient?
dlookup with ' in the text does not work
Disable IMAP service in Exchange 2010 Certificate?!
Command:Click:Command is working fine for Button but its not working for Hyperlink
How do I recover from a XP pro reinstall power failure
Exchange 2007 Standby Continuous Replication
Vista - "Open With" Not Allowing An Associated Program To Be Selected By Browsing
Exchange 2010 EWS Virtual Directory
Binary data