nik

ASP.Net supports dynamic code generation and compilation. Sometimes, you just need a quick and dirty solution. This is one such solution. It writes out a control script, loads it and then deletes the file.
string dynamicControlUrl = “~/” + System.Guid.NewGuid().ToString() + “.ascx”;string dynamicControlPath = Server.MapPath(dynamicControlUrl);TextWriter tw = new...