How to set html input type text value using ASP.NET C#?

前端 未结 5 1334
难免孤独
难免孤独 2021-02-04 18:31

I have an html control which I want to set its value .... here\'s the control:



        
5条回答
  •  遥遥无期
    2021-02-04 18:44

    Try put this in postback

    protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
               first_name_txt.Value = String.empty;
            }
        }
    

提交回复
热议问题