StrawPollControlBuilder.cs
上传用户:lxycoco
上传日期:2022-07-21
资源大小:38457k
文件大小:1k
源码类别:

C#编程

开发平台:

Others

  1. using System;
  2. using System.Web.UI;
  3. using System.Web.UI.WebControls;
  4. using System.ComponentModel;
  5. using System.Collections;
  6. namespace PCSCustomWebControls
  7. {
  8.    internal class StrawPollControlBuilder : ControlBuilder
  9.    {
  10.       public override Type GetChildControlType(string tagName,
  11.          IDictionary attribs)
  12.       {
  13.          if (tagName.ToLower().EndsWith("candidate"))
  14.             return typeof(Candidate);
  15.          return null;
  16.       }
  17.       public override void AppendLiteralString(string s)
  18.       {
  19.          // Do nothing, to avoid embedded text being added to control
  20.       }
  21.    }
  22. }