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

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
 
P

Peter Rilling

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top