How do a function in class.cs call an object on WebForm1.aspx

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a ASP.NET web application.
It contains a WebForm1.aspx which extend class Page, and a class in
Class1.cs which extend Class2.cs class.
Inside the Class1.cs functions, I want to write something out on the webpage
of WebForm1.aspx. How can I do that?

Since the class1 already extend a class2 (class2 = abstract class), I cannot
call WebForm1 class's object from class1 , right?

Best Regards,
Grace
 
Rather than having the class push something to the page, I would have the
page request the data from the class. The page should be the one to call a
method on your class.
 
Back
Top