Which if you
remember call to find index method figures out which index to go to and sets
the drop-down list to show that value will that's all the code there is to make
of this state drop-down list control work was review how it works also led to
stay here and when I do the selected index changed event of the internal
drop-down list raises which causes the user control to raise the selected index
changed event which causes this page to refresh itself and placed into this
text box the selected value if I type a value here and click set value it sets
the value property of the user control to match the value of the text in the
text box
Summary
It is unfortunate that the two
names for the two types of the controls you can create yourself or so confusing
what the user control what's a custom control really a user control is like a
little page to drop on to another page so-called page letter something but it's
completely unambiguous a user control is a control you create by dropping other
controls on wood design surface and vendors adding code custom controls.
Control you
create from scratch is the topic for different section but in terms of user
controls To stop here the user before we just created seems to have a lot of
capabilities it easy to create user controls but what if you want to package
and create controls like the normal server controls what you want to add your
controls to the toolbox on the design surface what if you want to use the same
control across multiple application domains in multiple applications for that
you need custom controls and that's the topic of our next section

0 comments:
Post a Comment