需要从HTML页面传值给ASP.NET页面时,可以使用,很基本,保存下来,以备没学过ASP的新手们不急之需
html
head
titleHTML Start Page/title
/head
body
form id="Form1" method="post" action="WebForm1.aspx"
input type="text" id="yourTextBox" name="yourTextBox" value="This is the HTML page TextBox value" /
input type="hidden" id="yourHiddenElement" name="yourHiddenElement" value="This is the HTML page hidden element value" /
input type="submit" value="Go" /
/form
/body
/html
private void Page_Load(object sender, System.EventArgs e)
...[ 查看全文 ]