如何从HTML页面重定向到ASPX页面 [英] How to redirect from html page to aspx page

查看:68
本文介绍了如何从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.

推荐答案

有两种方法


there are two ways


<pre lang="xml">1-Post
you create Form by Html Code and Order it in here if Click Login Redirect to Page asp
&lt;Form method=&#39;Post&#39; action=&#39;PageFileName.aspx&#39;&gt;
&lt;input type=&#39;Text&#39; Name=&#39;Name_TB&#39;&gt;
&lt;input type=&#39;Text&#39; Name=&#39;Password_TB&#39;&gt;
&lt;input type=&#39;submit&#39; value=&#39;Log In&#39;&gt;
&lt;/Form&gt;</pre>



<pre lang="xml">1-Get
you create Form by Html Code and Order it in here if Click Login Redirect to Page asp
&lt;Form method=&#39;Get&#39; action=&#39;PageFileName.aspx&#39;&gt;
&lt;input type=&#39;Text&#39; Name=&#39;Name_TB&#39;&gt;
&lt;input type=&#39;Text&#39; Name=&#39;Password_TB&#39;&gt;
&lt;input type=&#39;submit&#39; value=&#39;Log In&#39;&gt;
&lt;/Form&gt;</pre>


这篇关于如何从HTML页面重定向到ASPX页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆