Click here to Skip to main content
15,888,020 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

XML
<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?
Posted
Updated 14-Jan-11 9:52am
v4
Comments
Dalek Dave 13-Jan-11 18:14pm    
Edited for Readability and Code Block.
Manfred Rudolf Bihy 13-Jan-11 18:21pm    
To answer your question we need more information:
- On what server is this HTML page hosted?
- What kind of manipulation do you intend to do and on what parameters (input fields)?
- What is the purpose of calling the gf/main.aspx page
Rama Krishna Vavilala 13-Jan-11 18:27pm    
Do you have access to the server?
What will changing to ASP.NET give you?
Where are you going to write the code?
Rama Krishna Vavilala 13-Jan-11 18:34pm    
If you can add code on the same application (GoldFire server), you can accomplish this by using ASP.NET modules.

What you need it to modify the web.config of the goldfire web application. Add an ASP.NET module to the web.config. In the module you can handle the MapRequestHandler event. In the that event assign your own handler and delegate to the old handler by altering the request parameters.

It si complex but doable, though I doubt I misunderstood your question.
john 69 14-Jan-11 14:17pm    
@ Manfred R.Bihy,
1. This code is on our server (rds#### - which hosts our webpage)
2. We also want to send this text box value to Yahoo, Google, Ask, and other search web sites all at once.
3. The GoldFire program runs on that server, and it's main search page is the main.aspx page.

@Rama Krishna Vavilal,
1. I know asp.net and I know nothing about html inputs. Also having it as asp means I can manipulate the code before sending it to the gf/main.aspx page.
2. The code above will be on our webpage on our server (rds####/OneSearch.aspx) and not the gf server.

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.
 
Share this answer
 
v2
Comments
john 69 14-Jan-11 14:09pm    
That is the problem, we can't even look at the code on the Goldfire server. It is web enterface program that lets us do indepth web/network searches that we bought. So with out paying a huge fee, no looking at their code.
Yusuf 14-Jan-11 15:01pm    
You don't need to look at the code, but you need to understand the interface. If you don't know the interface, how do you plan to code against it?
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900