June 2008 - Posts

0
Comments

ASP.NET tips, Making Custom Validators work in Partial Rendering mode. by shahed

Introduction There are many situations where we need to identify if partial rendering is supported in a page, especially when a control uses javascript, to get the control work in partial rendering mode, the script needs to be registered using a ScriptManager...
0
Comments

ASP.NET tips: Golden rules for Dynamic Controls. by shahed

1. Make sure your dynamic controls are Loaded on every postback. Lets play with a very simple example, ASPX <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <body>...
0
Comments

C# 3.0 tips, Automatic Property by shahed

Declaring a property in C# 3.0 is super easy and super short. public class Student { public string Name { get; set; } } yes that's it, the framework will take care of the rest, the private variables will be automatically created and the getter and...
0
Comments

System.Net.WebClient().DownloadString(url) for Web Scrapeing by shahed

WebRequest is the abstract base class for the .NET Framework's request/response model for accessing data from the Internet. To get content of a website, in .NET 1.0. we used to use WebRequest, which is good and also works asynchronously. public static...
Powered by Community Server (Commercial Edition), by Telligent Systems