asp.net - web service is unable to return back to default page -


i have asmx web service hosted on iis , purpose authenticate logined user.

when run code using visual studio , debug service called , authenticate user db unable transfer control code has default page.

protected void page_load(object sender, eventargs e)     {         if (httpcontext.current.user.identity.isauthenticated)             response.redirect("default.aspx");            response.cache.setnostore();         if (!page.ispostback)         {             session["uri"] = request.urlreferrer;           }          this.hdnloginstatus.innerhtml = "";         if (!page.ispostback)         {             new das().authenticaterequest();             if (httpcontext.current.items["loginstatus"] == null)                 return;              var key = (authws.loginstatus)httpcontext.current.items["loginstatus"];             string msg = (string)getglobalresourceobject("message", key.tostring()) ?? "";             this.showmessage(msg, messagetype.warning);             this.hdnloginstatus.innerhtml = "signedoutforcefully";             }      }      protected void loginuser_loggedin(object sender, eventargs e)     {          response.redirect("default.aspx?key=" + (authws.loginstatus)httpcontext.current.items["loginstatus"]);     } 


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -