Link to home
Start Free TrialLog in
Avatar of MMust
MMust

asked on

encode my servername in this line

hi all
this my code if any one can help
i want to encode my servername in this line so when ever the user goes he can browse and download my activeX
actually i do not know how to do it may be i have to remove the http://  but i do not know the correct syntax for that

codeBase="http://"<%=Request.ServerVariables("SERVER_NAME")%>"/sct/VideoCapX.ocx"

Thanks if any one help
ASKER CERTIFIED SOLUTION
Avatar of fritz_the_blank
fritz_the_blank
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>>Maybe I'm misunderstanding (cause Fritz is like *always* correct)<<

That will be the day!!!!!!!!!!

I didn't pay any attention here to what the user was trying to do exactly, I just wanted to draw attention to the Server.URLEncode() method because that sounded like what was needed here. Your point above about the syntax is, of course, absolutely correct.

FtB
>>i want to encode my servername in this line <<
Do you mean encode or encrypt, as in hide the server name?
Avatar of MMust
MMust

ASKER


Thanks all
i used this line and it is working fine thanks

codebase="<%= "http://" & Request.ServerVariables("SERVER_NAME") & "/sct/VideoCapX.ocx"%>"
>>i used this line and it is working fine thanks<<
Then do us a favor and close this question, together with this other abandoned one:
https://www.experts-exchange.com/questions/21018915/print-button-has-clicked-in-crystal-report-viewer.html
No comment has been added to this question in more than 21 days, so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:
Split: fritz_the_blank & sforcier

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

masirof
EE Cleanup Volunteer
Posted again only so that this could appear in the cleanup post