none
Send data to The <input type="text"> RRS feed

  • Question

  • Change the text value=""  <input type="text"> is not runat="server"  page.aspx from page.aspx.cs

    Wednesday, December 23, 2015 7:15 AM

Answers

  • Hi,mahdi

    You could try the following.

    protected string InputValue { get; set; }
    
    
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            this.InputValue = "something";
        }
    }
    
    
    <input type="text" value="<%= this.InputValue %>" />

    Best regards,

    Chris Zhao

    • Proposed as answer by Pengzhen Song Thursday, January 7, 2016 2:08 AM
    • Marked as answer by Pengzhen Song Thursday, January 7, 2016 2:09 AM
    Thursday, December 24, 2015 1:24 AM