Monday, January 21st, 2008
Very interesting article in Ekinoderm :
Doctors Robert Dewar and Edmond Schonberg (Professors Emeritus at NYU in Computer Science) recently penned a rather scathing paper about the sorry state of Computer Science education in the United States today. In it, we see the usual laments that Java is dumbing down Computer Science curricula and that the […]
Career, Programming, Science & Tech. |
Thursday, January 17th, 2008
Scott Guthrie announced today that they are finally releasing the source code to the .NET Framework libraries. So far you can now browse and debug the source code for the following .NET Framework libraries:
.NET Base Class Libraries (including System, System.CodeDom, System.Collections, System.ComponentModel, System.Diagnostics, System.Drawing, System.Globalization, System.IO, System.Net, System.Reflection, System.Runtime, System.Security, System.Text, System.Threading, etc).
ASP.NET (System.Web, System.Web.Extensions)
Windows Forms (System.Windows.Forms)
Windows […]
Programming |
Wednesday, January 16th, 2008
I was reading a best practices document created by the DotNetSpider team which covered many aspects of programming in .NET. I was really impressed by it and I think its a very good reference document. So I’ve decided to make a series of posts where I’ll post sections of their document covering a specific topic.
Programming |
Saturday, January 12th, 2008
I was creating a website which had pages with multiple views. I wanted a fairly simple sitemap solution, without creating any custom sitemap provider, which could show the current view name in the breadcrumb trail like this -
Home >> Parent Page >> Current Page >> Current View 1
Home >> Parent Page >> Current Page […]
Programming |
Saturday, January 5th, 2008
protected ArrayList getURL(string txtIn)
{
ArrayList outURL = new ArrayList();
Regex r = new Regex(“href\\s*=\\s*(?:(?:\\\”(?<url>[^\\\”]*)\\\”)|(?<url>[^\\s]* ))”);
MatchCollection mc1 = r.Matches(txtIn);
foreach (Match m1 in mc1)
{
foreach (Group g in m1.Groups)
[…]
Programming |
Saturday, January 5th, 2008
This is a workaround to do a redirect while using ASP.NET AJAX Framework. The traditional Response.Redirect method can not be used since it is not compatible with the .NET AJAX framework.
StringBuilder sb = new StringBuilder();
sb.Append(“<script language=\”javascript\”>\n”);
sb.Append(“function Redirect()\n”);
sb.Append(“{\n”);
sb.Append(” window.parent.location.href = \”” + ResolveUrl(myURL) + “\”;\n”);
sb.Append(“}\n”);
sb.Append(“</script>\n”);
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), “Redirect”, sb.ToString());
myBtn.Attributes.Add(“onclick”, “return Redirect();”);
Programming |