|
 |
Tuesday, February 25, 2003 |
Macromedia Breeze Macromedia has already rebranded the Presedia stuff. No new functionality, just a lot better looking.
2:38:14 PM
|
|
ReadWriteControlDesigner Finally, someone has apparently cracked the ReadWriteControlDesigner issue. Basically, in the 1.0 framework (and I assume the 1.1 framework), if you are going to create a custom panel control you are stuck. Supposedly, MS has provided this ReadWriteControlDesigner implementation that allows you to create a panel designer. However, GetDesignTimeHtml, the method that allows you to create custom designers, is never called with the MS implementation for some unknown reason (probably some lazy smuck figured that no one would ever use his class or something). In any case, the original posting was in VB, but C# is so much nicer, so here my C# approximation of the original VB example.
using System;
using System.IO;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.Design;
using System.Threading;
public class Designer : System.Web.UI.Design.ReadWriteControlDesigner
{
public Designer()
{
this._html = "";
Thread th = new Thread((ThreadStart)ThreadStart.CreateDelegate(typeof(Designer), this, "ParseControls", false));
this._rh = th;
th.Priority = ThreadPriority.Highest;
th.Start();
}
~Designer()
{
this._rh.Abort();
}
private string _html;
private Thread _rh;
private void ParseControls()
{
mshtml.IHTMLElement e;
while(true)
{
try
{
e = this.DesignTimeElement;
if (Convert.ToString(e.innerHTML) != Convert.ToString(this._html))
{
OnInnerContentChange(e.innerHTML);
}
this._html = e.innerHTML;
}
catch
{
}
Thread.Sleep(50);
}
}
protected virtual void OnInnerContentChange(string innerContent)
{
innerContent = innerContent + "*";
}
public override bool AllowResize
{
get
{
return true;
}
}
}
2:16:46 PM
|
|
"Last night we updated the ASP.NET Website to ASP.NET 1.1. So far so good, we found a couple of bugs in the forums that we had to patch this morning, but overall the site seems to run faster! Today we got even more good news, we should have our new dual-processor SQL box online by-end-of-week. It's somewhat amazing that our little SQL Server (single-proc. 750 MHZ 1GB RAM) has handled the load of (we're serving about 100K unique users / day on the site right now.)"
[Rob Howard]
1:47:05 PM
|
|
© Copyright 2003 Jesse Ezell.
|
|
|