|
-
Sep 6th, 2005, 04:26 AM
#1
Thread Starter
Fanatic Member
inherits
i have a file in my project base.vb
in this file i have public function validate.
the question i need to ask is that how can i make my webpages inherit this information.
ie, base.validate() brings up an error
base is not declared....
is this making any sense
-
Sep 6th, 2005, 09:48 AM
#2
Addicted Member
Re: inherits
the line after where you define your class..., ie.
...you should write...
So it looks like this
VB Code:
Public Class MyForm
Inherits Base
And seeing as though you are inheriting it into a form, your Base class must inherit System.Web.UI.Page
Then all you would write to call the function is: validate() OR me.validate()
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|