Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Unable to redirect when using custom 'Login' with custom 'Membership provider'

Thread Tools

Unable to redirect when using custom 'Login' with custom 'Membership provider'
Posts: n/a
After logging in, I am not able to redirect to the target url; and
this happens only when I connect to the website using "http://machine-
nameortname"; but not if I connect using either "http://IPortname"
or "http://localhostortname"

Web site has custom 'Login control' and custom 'Membership provider';
and I do not have access to 'Login control' control code.
MembershipProvider::Validateuser() is returning true irrespective of
URL. Webserver is not part of any AD domain and is just a workgroup.
When it fails to redirect, it does not display any error but just a
blank page.

<%@ Register Assembly="MyControlLibrary" Namespace="MyControlLibrary"
TagPrefix="cc1" %>
<form id="form1" runat="server">
<div style="text-align: center;">
<cc1:MyLogin ID="MyLogin1" runat="server" BrandName="abc"
ProductName="Abc" DestinationPageUrl="~/target.aspx">

<authentication mode="Forms">
<forms name="Web_GUI" loginUrl="login.aspx"/>

<membership defaultProvider="MyMembershipProvider">
<add enablePasswordRetrieval="false" enablePasswordReset="false"
applicationName="MyMembershipProvider" requiresUniqueEmail="true"
maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7"
passwordStrengthRegularExpression="" name="MyMembershipProvider"

Is this because I have not configured the trusted-site correctly in


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Response.redirect does not redirect from .aspx page =?Utf-8?B?VHJveQ==?= ASP .Net 3 10-15-2008 09:07 PM
unable to redirect page using form authentication while accessing from different domain Ketan Shah ASP .Net Web Services 1 10-25-2007 01:04 PM
Unable to redirect after login ASP .Net 1 06-08-2007 07:37 PM
Redirect to secure FTP site via response.redirect Ron Howard ASP General 2 08-11-2004 07:40 PM
Basic Q - Response.Redirect, all redirect to first Response.Redirect statement Sal ASP .Net Web Controls 1 05-15-2004 03:46 PM