How it is possible tu use a class that is in a new vb file??

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2005
Posts: 20
Reputation: lorf14plus is an unknown quantity at this point 
Solved Threads: 1
lorf14plus lorf14plus is offline Offline
Newbie Poster

How it is possible tu use a class that is in a new vb file??

 
0
  #1
May 6th, 2005
I have generate a ASP.NET page with a Codebehind but i want to create a file with common method that i must make in many page of my website.
I create a new file class .vb, but how can I using the public function that I have insert in??
Thanks a lot for your help.
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 29
Reputation: sypher is an unknown quantity at this point 
Solved Threads: 0
sypher's Avatar
sypher sypher is offline Offline
Light Poster

Re: How it is possible tu use a class that is in a new vb file??

 
0
  #2
May 6th, 2005
Here is an example using a class called MyClass in Page1.aspx

In you class file:
  1. Public Class MyClass
  2. Inherits System.Web.UI.Page

In your code behind page:
  1. Public Class Page1
  2. Inherits MyClass

So, you are replacing "Inherits System.Web.UI.Page" in your codebehind pages with the name of your class.

-sypher
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 20
Reputation: lorf14plus is an unknown quantity at this point 
Solved Threads: 1
lorf14plus lorf14plus is offline Offline
Newbie Poster

Re: How it is possible tu use a class that is in a new vb file??

 
0
  #3
May 11th, 2005
Thanks for you help but I don't know how it is possible to call the metod when I have defined the Inherits, can you post me an complete example??
I prove many time but I don't found an example to refer for resolve this problem.

Thanks a lot
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 20
Reputation: lorf14plus is an unknown quantity at this point 
Solved Threads: 1
lorf14plus lorf14plus is offline Offline
Newbie Poster

Re: How it is possible tu use a class that is in a new vb file??

 
0
  #4
May 11th, 2005
I found the correct way to call the method that is included with the inheriths.
Thanks a lot for your help.

Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 2709 | Replies: 3
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC