Programmatically Determine if Page Has Control

  • Thread starter Thread starter Jeff S
  • Start date Start date
J

Jeff S

I am reusing one code-behind module (.aspx.cs) for multiple aspx pages. The
code-behind module will set values of controls on the aspx page. Some of the
aspx pages may not include all of the controls that the code-behind module
can interact with - so what I need is a way to determine, from the
code-behind module if the associated aspx page during the current request
contains the control (so that it doesn't attempt to update a control that
doesn't exist on the current aspx page).

Thanks!
 
Back
Top