function Activate(e) {
debugger;
e.preventDefault();
var activationCode = $("[id$='_inputTxtActivationCode']").val();
if (activationCode == 'undefined' || activationCode == '') {
return false;
}
$.ajax({
url:
'../MemberService/ActivateMemberByActivationCode/' + activationCode,
dataType:
'xml',
type :
'GET',
success: ActivationServiceSuccess,
error : Failure
[
OperationContract]
[
WebGet(ResponseFormat = WebMessageFormat.Xml, UriTemplate = "ActivateMemberByActivationCode/{ActivationCode}",BodyStyle = WebMessageBodyStyle.WrappedResponse)]
[
FaultContract(typeof(string))]
public string ActivateMemberByActivationCode(string ActivationCode)
{
//// Add your operation implementation here
WebOperationContext.Current.OutgoingResponse.StatusCode = System.Net.HttpStatusCode.Redirect;
WebOperationContext.Current.OutgoingResponse.Location = "http://localhost:6268/Profile/2";
}