将旧的HTML输入转换为asp.net [英] Convert Old HTML Input into asp.net

查看:108
本文介绍了将旧的HTML输入转换为asp.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我有一个问题,我一直认为使用< input>将文本框变量传递到我们的GoldFire服务器(YourGFServerName/gf/main.aspx).
我们无权访问main.aspx页上的代码.

问题是我们希望在将文本发送到GFServer之前对其进行更多处理.

有没有办法将其更改为asp.net代码(也许使用Response.Redirect)?

以下是旧的HTML页面.

 <   html  > 
<  正文 > 
<  表单    ="   post" 操作   http://YourGFServerName/gf/main.aspx"> 
<  输入    ="   uds_name"   "   类型  =" 隐藏" / <  输入    ="   uds_type"    0"   类型  =" 隐藏" / <  输入    ="   idlang"   > 1033"    类型  =" 隐藏" / <  输入    ="   pgn"    isr"   类型  =" 隐藏" / <  输入    ="   callpgn"    isq"   类型  =" 隐藏" / <  输入    ="   reset_input"    1"   类型  =" 隐藏" / <  输入    ="   searchin1033"   (专利< ; WITH> 17,11165,9116,9114,2750,2815< IN> KB)"  type   ="    / > 
<  输入    ="   query" 大小  > 58"    最大长度  ="  255" 类型  文本" / > 
<   br    > 
<  输入    ="   submit" 类型  提交"     =" 执行" / <  /form  > 
<  /body  > 
<  /html  >  



或者这是一条不同的路线,是否有办法让我从asp文本框(txtSearch)中取出数据,并将其放入HTML Input查询中,并在单击asp按钮时触发HTML Input Submit按钮? ="h2_lin">解决方案

该表单执行POST ,而Response.Redirect将执行GET动词.

您需要了解什么是GoldFire Server的输入机制.这样就很容易提出解决方案.




在不了解Main.aspx的情况下我可以说的是:

1-将您的代码更改为aspx或ashx,然后执行您想做的任何事情!
2-发送数据就像您的html发送到main.aspx一样. (您可以通过使用HttpWebRequest来实现.
3-从HttpWebRequest获取结果,并将结果发送到您的页面!

注意:我尚未测试此解决方案.所以我不能说如果您使用window athenticate或...会发生什么.

希望对您有所帮助.


Hello all.

I have a problem, I have been givin this old HTML page that uses <input> to pass a textbox varable to our GoldFire Server (YourGFServerName/gf/main.aspx).
We do not have access to the code on the main.aspx page.

The problem is we want to do more with the text before sending it to the GFServer.

Is there a way change this into asp.net code (Maybe using Response.Redirect)?

Below is the old HTML page.

<html>
<body>
<form method="post" action="http://YourGFServerName/gf/main.aspx">
<input name="uds_name" value="" type="hidden" />
<input name="uds_type" value="0" type="hidden" />
<input name="idlang" value="1033" type="hidden" />
<input name="pgn" value="isr" type="hidden" />
<input name="callpgn" value="isq" type="hidden" />
<input name="reset_input" value="1" type="hidden" />
<input name="searchin1033" value="(Patents <WITH> 17,11165,9116,9114,2750,2815 <IN> KB)" type="hidden" />
<input name="query" size="58" maxlength="255" type="text" />
<br />
<input name="submit" type="submit" value="Execute" />
</form>
</body>
</html>



Or here is a different route, is there a way for me to take data out of my asp textbox (txtSearch) and put that in the HTML Input query and have the HTML Input Submit button trigger when they click my asp button?

解决方案

the form does POST while Response.Redirect will do GET verb.

You need to understand what are the input mechanism to your GoldFire Server. Then it becomes easy to come up with the solution.


Hi,

What I can say without knowledge of Main.aspx is :

1- change your code to aspx or ashx and do what ever you want!
2- send the data like the same as your html sends to main.aspx. (you can achieve this by using HttpWebRequest.
3- get the result from HttpWebRequest and send it as a result to your page!!

notice: I have not tested this solution. so I can not say what happen if you use window athenticate or ... .

hope this can help.


这篇关于将旧的HTML输入转换为asp.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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