本文介绍了如何从HTML页面重定向到ASPX页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不知道如何从html页面重定向到aspx页面.
html页面包含登录详细信息,当我单击html页面上的Submit按钮时,如果凭据有效,它将重定向到aspx页面.
请给我一个例子.
Hi,
i have no idea on how to redirect from html page to aspx page.
The html page contains Login details when i click submit button on html page it will redirect to aspx page if the credentials are valid .
Is it possible if it is please give me one example.
推荐答案
<pre lang="xml">1-Post
you create Form by Html Code and Order it in here if Click Login Redirect to Page asp
<Form method='Post' action='PageFileName.aspx'>
<input type='Text' Name='Name_TB'>
<input type='Text' Name='Password_TB'>
<input type='submit' value='Log In'>
</Form></pre>
<pre lang="xml">1-Get
you create Form by Html Code and Order it in here if Click Login Redirect to Page asp
<Form method='Get' action='PageFileName.aspx'>
<input type='Text' Name='Name_TB'>
<input type='Text' Name='Password_TB'>
<input type='submit' value='Log In'>
</Form></pre>
这篇关于如何从HTML页面重定向到ASPX页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!