Did you know that a Response.Write in the Page_Load gets rendered right at the top of your HTML markup? Right at the top! Meaning right before <HTML>. Isn't that cool!
Not only that, a Page.Controls.Add will place your control right at the bottom of your controls collection which means that it goes right after the closing </HTML>. Awesome!!
Want some more?!
OK. Now, to add a control so that it falls within the <FORM>...</FORM> (which is what everybody wants), we need to say Controls[1].Controls.Add(mycontrol).
Controls[1] will get you the reference to the <FORM> control and so on...
Right now Controls[1] works for me but, who knows...
Monday, March 27, 2006
Subscribe to:
Post Comments (Atom)
About Me
- Agnel CJ Kurian
- C/C++ Programmer doing CAD on Windows. Some web development experience. Bangalorean.
Blog Archive
Labels
- .net (11)
- advocacy (1)
- apache (2)
- code (1)
- direct3d (1)
- drawing (1)
- geometry (1)
- graphics (1)
- humour (1)
- javascript (1)
- links (1)
- microsoft (1)
- morons (1)
- postgresql (1)
- programming (4)
- python (1)
- rant (5)
- software (1)
- subversion (2)
- svn (1)
- tools (11)
- trac (1)
- truecrypt (1)
- typing (1)
- vc++ (14)
- video (1)
- vs2008 (1)
- windows-forms (1)
- windows7 (1)
No comments:
Post a Comment