Programatically change user control added from the designer?

  • Thread starter Edgardo Rossetto
  • Start date
E

Edgardo Rossetto

Is it possible?

Or I must add the control programatically in order to make changes
programatically?

Edgardo
 
S

Steve C. Orr [MVP, MCSD]

You should be able to make changes programatically.
Are you having troubles? What kinds of changes are you having problems
with?
 
C

Craig Deelsnyder

Edgardo said:
Is it possible?

Or I must add the control programatically in order to make changes
programatically?

Edgardo

Are you asking this because there's no variable in the code-behind (if
using VS.NET)? VS.NET does not add the variable declaration to the CB
file automatically; you can add it yourself, though, e.g.

protected namespace.object.type ucUserControlId;

replacing your object's type and ID given in the .aspx It will hook-up
to the instance created in your page then...
 

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
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top