|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have a web page which was developed using ASP.NET. I am capturing user inputs which need to be passed onto other organisation's server. They have a Unix box and web site is built using Java, and they want any information to be sent using only https and POST method. Any ideas on what needs to be done / setup at respective ends.
Thanks in advance for your help. |
|
#2
|
||||
|
||||
|
Just treat your page like a regular form post in straight html and you should have no problems. Just use the FORM tag with ACTION=theirPage and METHOD=Post. Forget the runat=server stuff and the asp: tags for this and see what you get.
-Dave |
|
#3
|
|||
|
|||
|
tks for ur reply - i think i got that right, to pass values to the other party I think I need to set some variables (like name/value pairs) so that the other party code can read and process the values - what should the other party tell me and how do I set the variables of that party. Just in case I have to do this for multiple organisations, do I need to set separate variables for each organisation.
I am really new to this, so kindly bear. Thanks again |
|
#4
|
||||
|
||||
|
Well, I would treat it just like a regular form post, so you need to ask them what "form variables" they are expecting. They may expect, for example, a last name called "LName." If so, you need to create a form variable of that name. Simple as that. Once you post your form to them, it will automatically get transferred.
-Dave |
|
#5
|
|||
|
|||
|
Thanks a ton, it worked like a beauty. Now only problem remains is that I have set different variables for each organisation to which I need to post. Is there any universal methodology or say using XML with a defined schema, by which I can avoid setting different variable names. Any suggestions would be welcome.
Thanks again. |
|
#6
|
||||
|
||||
|
You mean in some cases it's "LName" but in other cases it's "LastName" ?? Woah, that's a tough one. Okay, I can think of two ways to do it off the top of my head... are you using ASP.NET? If so, can you change the names (ID) of each form element during the page_load() event, depending on the client? I would use a Case statement for this. I'm not sure if the ID/Name property is read-only. It may be, in which case you can use the regular ASP method: Use an in-line case statement to build your input boxes... something like this (pseudo-code):
<% Case CompanyID 1: Response.Write "<input id=""LName"" name=""LName"">" 2: Response.Write "<input id=""LastName"" name=""LastName"">" else:..... end case I'm setting both ID and NAME in the input tag, just in case, but you can do what you need to do... get the idea? Of course this will seriously screw up your javascript code for checking these fields for errors. Those functions will have to be a bit smarter: cycling through all the input elements in the form for certain names might be a good way to do this. -Dave |
|
#7
|
|||
|
|||
|
Will try it out and let u know - am going on leave this week - so will post after coming back. Thanks buddy.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > https help using ASP.NET |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|