Hello,
I've written a function in master page class and want to use it in content page.
Master page:
Partial public class sitemaster
inherits system.web.ui.masterpage
public mystring as string
public function abc(byval param1 as string) as string
....
end function
end class
Content page:
Protected sub page_load (s as object, e as system.eventargs)
master.abc("aaa")
end sub
I'm getting this warning:
abc is not a member of system.web.ui.masterpage
The same if I try to access the public variable "mystring".
What I'm doing wrong ?
Thanks.