ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 8th, 2003, 07:08 AM
vineet vineet is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 4 vineet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question https help using ASP.NET

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.

Reply With Quote
  #2  
Old August 8th, 2003, 08:31 AM
WineIsGood's Avatar
WineIsGood WineIsGood is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: New York
Posts: 49 WineIsGood User rank is Private First Class (20 - 50 Reputation Level)WineIsGood User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 7 m 51 sec
Reputation Power: 6
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

Reply With Quote
  #3  
Old August 9th, 2003, 05:02 AM
vineet vineet is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 4 vineet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #4  
Old August 9th, 2003, 06:52 PM
WineIsGood's Avatar
WineIsGood WineIsGood is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: New York
Posts: 49 WineIsGood User rank is Private First Class (20 - 50 Reputation Level)WineIsGood User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 7 m 51 sec
Reputation Power: 6
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

Reply With Quote
  #5  
Old August 10th, 2003, 11:03 PM
vineet vineet is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 4 vineet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #6  
Old August 11th, 2003, 07:18 AM
WineIsGood's Avatar
WineIsGood WineIsGood is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: New York
Posts: 49 WineIsGood User rank is Private First Class (20 - 50 Reputation Level)WineIsGood User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 7 m 51 sec
Reputation Power: 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

Reply With Quote
  #7  
Old August 11th, 2003, 08:01 AM
vineet vineet is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 4 vineet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Will try it out and let u know - am going on leave this week - so will post after coming back. Thanks buddy.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > https help using ASP.NET


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway