if you want to use Controls', then you shouldn't output html yourself, in your control, create those controls, for example:protected override void CreateChildControls()
{
  HtmlInputHidden hih = new HtmlInputHidden();
  hih.ID = "whatever";
  Controls.Add(hih);
  //....
}

解决方案 »

  1.   

    不,我不希望用web控件的继承
     我希望用Render方法重写
      

  2.   

    then use 
    Page.Request.Form["Count"] to get the input's value
      

  3.   

    你的意思是说重写“Render”方法后,我可以使用Request.Form["Count"]调用具体的控件吗
      

  4.   

    no, what I meant was, if you output html directly, upon postback, you have no way to access the controls except using Request.Form
      

  5.   

    实际上我是希望使用诸如RangeValidator控件对Count进行验证