Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling pages for values 1

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
Wasn't sure which forum to post this on but I know you guys are very knowledgable so here I am (but don't worry- it does involve some ASP)....

Here's the deal:
I have a ColdFusion site on a domain that is not the same as the users thus I can not grab login ids... what I want to do is call an ASP page that is on the same domain as the users... have it grab the domain name and pass it back to the CF site... anyone have a clue how I would do that?? I do have a SQL server in play as well if that helps...
 
A little confused, do you really want the domain name, or the user ID??

Whatever, I think the solution is the request.serverVariables collection in ASP, the code;

sUSer =request.servervariables("LOGON_USER") sUSer sServer=request.servervariables("SERVER_NAME")

will leave sUSer holding the User name of the current user, and,

sServer, holding the domain name of the server.

then form a url like

"
and do a response.redirect to this page. your CF page will then have the variables in the QueryString, is this what you mean???
 
your correct... I meant login id... excellent idea... Do you know of a way to do the same thing without having the values in the URL?? so posting them instead of getting them....
 
Idealy I suppose you would want to send form data directly to the CF app, unfortunatly I dont know if you could do that directly from ASP (anyone?)

A solution would be.

1) generate a HTML form via asp, with a onLoad javaScript function that would form.submit() the page, then you would put the CF address in the Forms action="yourCFpage.cfm" parameter.

bit messy though



Digital Soma
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top