Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to redirect to a page from C# class
Message
 
 
To
13/03/2012 08:59:47
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01538180
Message ID:
01538184
Views:
25
>>First, thank you for your message. It sounds very interesting. But I need to understand more.
>>When you are saying "main class" Process, how do you create it? Could you please write a snippet of code on it? And when you are saying "make this object available everywhere" do I understand that the reference to this object is Public?
>
>Your .ASPX page can include inheritance from a base class such as Inherits="MyProject.WebForm" from the @ Page line. In that base class, you include that inheritance to System.Web.UI.Page. Thus, in there, you can gain access to whatever you want in regards to ASP.NET related components for the page. After that, it is just a question of passing the main object to each of the class you instantiate in the New() constructor.
>
>There is no such thing as Public in .NET. You have public properties but this is not the same as VFP public variable.

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform