Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automatically logging into another application
Message
 
To
09/12/2005 14:56:34
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01076697
Message ID:
01076757
Views:
26
I was able to get that to work. Thank you. However, I need to take a further step. Not only do I need to login to their application, but I also need to fill out a form on their site with my criteria, and post that form. Basically, it seems like I need to do 2 steps from my app, yet their application will have control after step #1:

1. Login to their app
2. Fill out a form on their site with my criteria and submit it.

>Yes, this is a simple process. You would do it as if you would do it in a HTML page. When you build a HTML page having a form, there is no need to have absolutely visible fields. You can have hidden fields only, which could serve for such a purpose. So, once the form is defined with a form name, you can gain access to it by the use of javascript, for example. So, you can have something like this in the page:
>
>
><SCRIPT>
>function PostForm(tcUsername,tcPassword)
>{
>   document.Login.Username.value=tcUsername
>   document.Login.Password.value=tcPassword
>   document.Login.submit()
>}
></SCRIPT>
>
>
>This would assume the page you access has a form named Login. Otherwise, simply adjust it to the proper name. Then, to call it, simply do the proper code in your ASP.NET page to execute a javascript function such as:
>
>
>javascript:PostForm("MyUsername","MyPassword")
>
>
>This does not do entirely what you need but it should provide you a basic idea of the functionality you need to implement. Based on what you said, you would probably do something like this in the background in order to have it properly authenticated.
Chris McCandless
Red Sky Software
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform