Help needed in Inheritance(c#.net)

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)
 
S

Saravana

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")
 

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

Members online

No members online now.

Forum statistics

Threads
474,085
Messages
2,570,597
Members
47,219
Latest member
Geraldine7

Latest Threads

Top