Category Visual Studio

Quickly Generating GUIDs in Visual Studio 2008

Load Visual Studio 2008 and goto Tools -> Macros -> Macro Explorer (Alt-F8 for short) Right-click on “Macros” then select New Macro Project Name your project (eg. GUIDGenerator) and choose a location to save it (note no space allowed in Project Name). This should give you a new project with a “Module1″ sitting underneath it. […]


—————————————————– CustomValidator —————————————————– The ValidateEmptyText property, new in ASP.NET 2.0, fixes an issue with CustomValidator.  In ASP.NET 1.0 custom validation would not fire if ValidationText was empty. You can set this property to true to cause custom validation to occur for empty input values. ex: <asp:TextBox ID=”txtno” runat=”server”></asp:TextBox> <asp:CustomValidator ID=”CV1″ ValidateEmptyText=”true” ValidationGroup=”reg” runat=”server” ClientValidationFunction=”ValidateNo” ControlToValidate=”txtno” […]

Assigning Attributes to child controls of a CheckBoxList

  Step 1:   Create a class library project   Step 2:   using System;   using System.Collections.Generic; using System.Text; using System.Globalization; using System.Web.UI; using System.Web.UI.WebControls;     namespace CheckBoxListExCtrl {  public class CheckBoxListExCtrl :CheckBoxList, IRepeatInfoUser {   void IRepeatInfoUser.RenderItem(ListItemType itemType, int repeatIndex, RepeatInfo repeatInfo, HtmlTextWriter writer)  {      writer.WriteBeginTag(“input”);      writer.WriteAttribute(“type”, “checkbox”);      writer.WriteAttribute(“name”, […]

IN Page popup Links

Like baloon Like Rectangle