aspx前端form表单传值到后端

<form id="form1" runat="server">
        <fieldset>
            <legend>Personal information</legend>
            Name:<input type="text" name="name_form1" /><br />
            Email:<input type="email" name="email_form1" /><br />
            Date of birth:<input type="date" name="birth_form1" />
            <input type="submit" value="Submit" />
        </fieldset>
</form>

注意:Submit的type是submit,否则无法触发传值到后端。

猜你喜欢

转载自blog.csdn.net/u012664198/article/details/88867521