Re: HTTPWebRequest and Redirect

Tech-Archive recommends: Fix windows errors by optimizing your registry



So is this a page or a control? If it's a .ascx, it is not a page.

In any case, you should write a web service that is capable of
authenticating your user. It will be much easier to call, process the
response from, etc.

Both your .ascx and your web service can call some method to do the
authentication, so that you only need to write that code once.

"Hawksey" <Paul.Hawkes@xxxxxxxxx> wrote in message
news:1122490458.506289.3690@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I would like to be able to programatically(Using HTTPWebRequest and
> HTTPWebResponse) FORM post a user's credentials to a HTTPS login page
> (.ascx)control. The problem I think I have after attempting this and
> after reading other posts is; that if the login is successful data is
> retrieved from DB telling the login process where(which page) this user
> will be redirected to(different company users will go to different
> pages). Is it possible to get this redirect string into a variable and
> get it out of the request.GetResponse, with the cookie which would also
> have been created with successful login and do a redirect to the page
> from the posting client.
>
> Hope this makes sense.
>


.



Relevant Pages

  • Re: What is the best way to login my website from another website?
    ... IMO *they* should redirect to your site based upon the web service result ... a new login request is issued). ... They are not using those credentials at all at their site? ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Page redirection in webservices ?
    ... resides in the same web project, but a login web service would simply accept ... There is no Redirect in a web service. ... > How can i redirect the client to go to the webservice's login page. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • problem with response.redirect in ascx page template
    ... i'm using an ascx for my site, and it works just fine, but when i try to enter with the debugger on it, at some point the debugger stops responding. ... At some point if i request a page that requires a user to login, the browser is redirected to the loginPage, where i check the permissions then i redirect to the required page. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Default.aspx - newbie Q`
    ... check and redirect to the ReturnURL or Selected.aspx depending on the case. ... > and replace it with something that takes then straight to the login page. ... >> Curt Christianson ... >>> authentication ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Default.aspx - newbie Q`
    ... check and redirect to the ReturnURL or Selected.aspx depending on the case. ... > and replace it with something that takes then straight to the login page. ... >> Curt Christianson ... >>> authentication ...
    (microsoft.public.dotnet.framework.aspnet)