Re: Small Doubt
From: Victor Garcia Aprea [MVP] (vga_at_NOobiesSPAM.com)
Date: 05/05/04
- Previous message: Victor Garcia Aprea [MVP]: "Re: Determining 'first load' state of a dynamically inserted control"
- In reply to: Ashish M Bhonkiya: "Small Doubt"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 5 May 2004 13:29:06 -0300
Hi Ashish,
Simplifiying a lot, you use an UserControl when its output will be mainly
static and you use a custom control when its output will be mainly dynamic.
There are main differences between the two, like output caching for UC, etc,
but you could find that on lots of tutorials online and on the SDK docs.
If you're interested in learning about custom controls you should definitely
consider buying this book:
http://www.amazon.com/exec/obidos/ASIN/0735615829/laplatayacom%22/104-0023456-1775957
>>> How to add javascript to the Elements in the custom webcontrol ?
Not sure what you mean by this. You have an Attributes collection that you
could use to attach to events in client-side, i.e.:
Attributes.Add ("onclick", "alert('hello world')");
-- Victor Garcia Aprea Microsoft MVP | ASP.NET Looking for insights on ASP.NET? Read my blog: http://obies.com/vga/blog.aspx To contact me remove 'NOSPAM'. Please post all questions to the newsgroup "Ashish M Bhonkiya" <bhonkiya@hotmail.com.nospam> wrote in message news:OhYKCKqMEHA.3420@TK2MSFTNGP11.phx.gbl... > What is the difference b/w a usercontrol and a Custom Web Control ? > When to use the usercontrol and when to use a custom web control ? > > How to add javascript to the Elements in the custom webcontrol ? > > Any pointers for the above questions are highly appreciated. > > Thanks for your time. > > Regards > Ashish M Bhonkiya > >
- Previous message: Victor Garcia Aprea [MVP]: "Re: Determining 'first load' state of a dynamically inserted control"
- In reply to: Ashish M Bhonkiya: "Small Doubt"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|