Create Google.ascx as a web part article demonstrates how to create User Control and insert it into Web part.
Tip from the article: in order to get rid of "Untitled" header in Web part - define title attribute for user control:
<uc1:Google title="Google Search" runat="server" ID="Google1" />
Personalize Your Portal with User Controls and Custom Web Parts article demonstrates how to bind User Control to Web Part dynamically:
// create Web Part instance from User Control file
Control uc = this.LoadControl(@"webparts\CompanyNews.ascx");
uc.ID = "wp2";
GenericWebPart wp2 = WebPartManager1.CreateWebPart(uc);
WebPartManager1.AddWebPart(wp2, WebPartZone1, 1);
Monday, December 19, 2005
Tuesday, December 13, 2005
Web Site Administration Tool for ASP.NET 2.0 / VS.NET 2005
I looked into "Web Site Administration Tool" source code... It's pretty messy.
Variables have senseless names, code is complex, a lot of unnecessary code, grids are binding 2 times, ...
No wonder that "Web Site Administration Tool" is sluggish and bug-prone.
Moreover, such code is very hard to fix (you fix one bug and getting 2 bugs instead).
I think either Microsoft would either rewrite this tool from scratch or leave as it is.
See also: discussion in microsoft.public.vsnet.general
Variables have senseless names, code is complex, a lot of unnecessary code, grids are binding 2 times, ...
No wonder that "Web Site Administration Tool" is sluggish and bug-prone.
Moreover, such code is very hard to fix (you fix one bug and getting 2 bugs instead).
I think either Microsoft would either rewrite this tool from scratch or leave as it is.
See also: discussion in microsoft.public.vsnet.general
Monday, November 21, 2005
Large Data Operations in SQL Server
Large Data Operations in SQL Server
This article explains how performance is affected by choosing "table scan" or "index seek". Also it shows how memory available for SQL Server affects performance.
MS SQL Server 2000.
This article explains how performance is affected by choosing "table scan" or "index seek". Also it shows how memory available for SQL Server affects performance.
MS SQL Server 2000.
Monday, November 14, 2005
Interview questions
1) What do you know about this project?
2) What states did you work in?
3) What did you do in your project?
4) What did you complete in your project?
5) How would you create report page?
6) What interesting SP did you write?
7) How would you select 50 states with CA on top?
8) How would you get all records from table A which don’t have matches in table B?
2) What states did you work in?
3) What did you do in your project?
4) What did you complete in your project?
5) How would you create report page?
6) What interesting SP did you write?
7) How would you select 50 states with CA on top?
8) How would you get all records from table A which don’t have matches in table B?
Thursday, November 10, 2005
Bayden Systems - IEToys
Bayden Systems - IEToys
Tools for Internet Explorer:
- Image cleanup.
- Define & Dictionary.
- Partual HTML source.
- Word Highlighter.
- Access keys.
Tools for Internet Explorer:
- Image cleanup.
- Define & Dictionary.
- Partual HTML source.
- Word Highlighter.
- Access keys.
Fiddler HTTP Debugger
If you want to trace what HTTP get/post requests your browser prepares, and trace HTML response which web server returns to your browser --- use Fiddler HTTP Debugger
Friday, November 04, 2005
Subscribe to:
Posts (Atom)