Is it possible to make these relative?
for example:
webservice.asmx
rather then
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to write custom code to do this. There are two parts of the custom code: 1) The ASP.Net Silverlight Host site needs to pass the Silverlight Application the service address through an Initial Parameter; 2) The Application Start-Up event needs to process the initial parameters to point the service to the correct address.
Part 1 Code on the ASP.Net Host Site. There are 3 steps here:
A) Add a web.config value for containing the service name
B) Get the webpage base address in in the page load event, append the service address to it, and save it to a page level variable
C) In the page that hosts the silverlight control set the initial to the page level variable as defined in B.
The key here being the
Part 2 Hook the App start up event and initialize your service to the address in the App.xaml.cs file.