Help needed in Inheritance(c#.net)

  • Thread starter Thread starter Raghu Raman
  • Start date Start date
R

Raghu Raman

Hi
I 've created an 'page1.aspx' page with a text box and a grid.I simply
added another page webform2.aspx.I need to inherit the 'page1.aspx' to
webform2.aspx, sothat i would like to access the controls of the
page1.aspx.


I got confused with the codebehind files & inherits property . Could u
please tell the simple way to this idoit.


With Thanks
(a drop in the ocean)
 
you can access controls or properties of the base class using base.<property
or controls>

Other way to access controls from base class, is using findcontrol method.

Page.Findcontrol ("controlname")
 
Back
Top