显示用户输入从html到asp.net页面不起作用 [英] displaying user input from html to asp.net page not working

查看:69
本文介绍了显示用户输入从html到asp.net页面不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在html页面中写过这个


< html>

< head>< title> hello day63< / title> ;< / head>

< body>

< form action =" b.aspx" method =" post">

< input type =" text"名称= QUOT; T1" id =" t1">< / br>

< input type =" submit">

< / form>

< / body>

< / html>


这是在asp.net页面


<%

response.write(" hello" + request.querystring [" t1"]))
%>


<我希望显示"你好"并且文本在html页面的文本框中输入但是它不起作用。我是asp.net的新手,我只知道qurystring和form函数。请帮助


解决方案

Hello Mansi ..


1)你应该在asp网论坛上询问asp网相关的问题,


2)你使用的是asp.net还是asp.net mvc?


3)你应该在page.load事件中放入该response.write语句


4)在这里你可以找到关于asp net和模型视图控制器的优秀教程:
此处


如果您想成为一名网络开发人员,您应该采取此措施开始的课程:html,css,asp.net,java脚本,jquery,aspnet mvc,angular js


i've written this in html page

<html>
<head><title>hello day63</title></head>
<body>
<form action="b.aspx" method="post">
<input type="text" name="t1" id="t1"></br>
<input type="submit">
</form>
</body>
</html>

and this in asp.net page

<%
response.write("hello" +request.querystring["t1"])
%>

i want to display "hello " and the text entered in the textbox on html page but it's not working.i am completely new to asp.net and i know about only qurystring and form function yet. please help

解决方案

Hello Mansi ..

1) you should ask asp net related problems in the asp net forums,

2) are you using asp.net or asp.net mvc?

3) you should put that response.write statement in the page.load event

4) here you can find excellent tutorials on asp net and model view controller : here

if you want to became a web developer you should take this courses for start : html , css, asp.net, java script, jquery, aspnet mvc, angular js


这篇关于显示用户输入从html到asp.net页面不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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