.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Login from another domain to my website

Posted By:      Posted Date: September 28, 2010    Points: 0   Category :ASP.Net

Hello every one and thanks in advance any help is much appreciated.

I have a small website that uses the asp login control and now i want to allow a user login from another website that i have. The problem is the other website is only html not aspx and i'm not sure how to write the form to login. here is the login i'm currently using:

  <asp:Login ID="Login1" runat="server" onauthenticate="Login1_Authenticate" Width="235px">
                                        <table border="0" cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
                                                    <table border="0" cellpadding="0">
                                                            <td align="center" colspan="2">
                                                                Customer Login</td>

View Complete Post

More Related Resource Links

Login database with visual studio 2010 asp website template


Has anyone deployed a website using the login database in the visual studio 2010 asp website template? I was wondering if I could look at someone's example to see how the integrated this into their website.

>>> Open a Popup window on Successful Login if something new added to website.

Hi, I would like to open a Popup window in Parallel if user Login successfully. The popup will give updates to the user that what's new added to the website. The popup will open only once if user login. If he logout and will re-login then it should not popup as we'll assume that he has been notified earlier. I have users table with user id's. It is for information that I am working in Framework 2.0 and not allowed to use any third party or AjaxToolkit. Therefore javascript or any other technique will resolve the issue. Any idea with coding example would be helpful.

Can I have an SQL Express database open in VS2010E along with the website? "Login failed for user ..

Hi, as the topic says..Whenever I have my database open in Visual Studio 2010 Express, I get this error:Cannot open user default database. Login failed.Login failed for user 'IIS APPPOOL\DefaultAppPool'.Cannot open user default database. Login failed.Login failed for user 'IIS APPPOOL\DefaultAppPool'.

how to get user name in window login and show in our website


if any one login how to get user name and show in our web page

and how to get location of client side (Physically Ex-India -Delhi-Anand Vihar)

Password protecting entire website (that already has a login feature)?



I have a website that's still in development however I've placed it up onto our new domain name to allow a few others to see what's going on with the site development.

I want to prevent anyone else from coming in to see the site just yet however, so I want to have the site redirect to a login whenever you try to hit any page within the site.  Here's the problem though....my website already has it's own login included as part of the website in order for a member to get to their account info.  So I essentially want 2 separate logins: 1 just to see the site and a 2nd one as part of my overall website user account details section.  My concern is if I develop this new login to block users to see the site, my other login may experience issues.

How can I create this login to protect my entire site while still in development and yet keep login credentials separate from my actual website's login feature?  Or even better yet, is there some 3rd party tool I can implement to do this for me?


SQL Server: Login failed for user: '\$'



I hate to be the 12345th person to request assistance on this topic, but despite looking at previous requests, I can't seem to find the solution. Any assistance you could offer would be much appreciated.


I have a new ASP.NET 2.0 web application which is hosted on (for argument's sake) WEBSERVER (using IIS 6.0), and which accesses data on SQLSERVER (using SQL Server 2000).

Because this is an intranet application, I want the application's authentication mode to be Windows, and the IIS authentication mode to be Integrated Windows (with Anonymous access disabled). ie: IIS should authenticate the user as smithjohn and SQLSERVER should also authenticate the user as smithjohn.

I don't know if this is relevant, but because of an existing nasty Windows application, all relevant domain users already have their own <DOMAIN>\<username> User account on SQLSERVER.


When I build and browse the pages in Visual Web Developer Express, I can retrieve information from SQLSERVER without any problems.

When I publish the site, and upload it to WEBSERVER, I get the following error upon attempting to retrieve data from a stored procedure on SQLSERVER:


unable to login into website on iis 6.0


I have created a website that uses the default aspnetdb.mdf database for membership and I have a login control on my index.aspx page. I have restricted access to certain pages through using roles and it all works fine. But when I deploy the website to my iis site that uses the C:\Inetpub\wwwroot i am simply unable to login. It does not come up with an error it just says my username or password were unsuccessful. I cannot find why it is not working. I believe iis is configured correctly, and I have made sure all my application names are correct as per scott guthrie's blog on the subject. My site still implements an authentication system because i cannot type in a page in the url that is restricted, its just that i cannot login myself.

 Any help would be very much appreciated i am struggling with this.

 Thanks in advance


p.s if there is any part of my web config or anything that you need me to post please tell me.

Can't login to website from Visual Studio 2010


I created a local copy of my website, so I could work on it in Visual Studio 2010. I am using a SQL membership provider that is running on discountAsp.net's SQL Server 2008 R2. The website works fine online, but when I run the website from Visual Studio, I can't log in. It's strange because if I open up my website in Visual Studio I can still use my admin pages to add and delete users, view users info, change passwords, etc., but I just can't get authenticated. This just makes it hard to test my pages that are restricted to certain users and roles.


Anybody know what this might be? Thanks in advance.

url redirect to diff domain website



when users request http://test1.com/downloads, i need to redirect users to another diff domain web site (or) ip address 

in asp.net 1.1/c#, can i do it thro' web.config (without compilation) or code?  what are the options to do this? any adv/disadvantages using the suggested method?

pl suggest if any solution available.


SQL Login failed for user 'domain\Administrator' during CRM 4.0 installation



I am Trying to install CRM 4.0 on a windows server 2008 and on the last page when everything is installing I am getting Login failed for user 'domain\Administrator' CRM under SQL Server, I am logged it as the built-in adminstrator account. Do you have any suggestions?



Automatic Redirection the user to sharepoint page after domain login



I have created some reports on report viewer webpart and have placed them on A,B,C aspx pages now i want to redirect the Users A,B,C to their specfic aspx pages A,B,C as applicable... after they are logged on sharepoint site through Domain Credentials.

Is it possible?



ASP.NET Website Login


Hi All,

   I am using the Login Object with ASPNETDB. Very strangely, a user account will no longer be allowed to login. It returns an error message that the "login attempt was not successful". If I recreate the account in the database, it will work again. Any ideas what is going on? Looks like the user account gets corrupted.


Thank you in advance,

Restrict login access to website from specific machine


Not sure if this is the correct forum section but I need to restrict access to my website by physical PC.  When a user signs up I want to be able to restrict access to one machine for that account so it cannot be shared round, if, for example, somebody else in the same office wanted to access the system on their PC they would need a seperate sign in.

I have done some investigation and I "think" the only way is installing an ActiveX component (which isn't an issue that is restricts to IE only) and then read the users MAC address.  Am I trying to over complicate things or is that the only way?  I realise that MACS can be spoofed but this is not much of an issue.


Change domain AD + upgrade Sharepoint 2007->2010 = window with a request login/password


New installation of Sharepoint 2010 in Domain_A domain. I added a content database WSS_content2007 from Sharepoint 2007 (from domain Domain_B). I didn't run the command stsadm -migrateuser. New accounts from domain Domain_A were manually added to SharePoint 2010. In table Userinfo on WSS_Content2007 on Sharepoint 2010 are accounts from both domains. Old domain Domain_B was deleted.
Users get a window with a request re-enter your username and password from time to time.
What should I do? Can I delete the account from the domain Domain_B with stsadm command? Should the column tp_title contain unique records for the same user and the same site?


Login problem with multi website on a server.


I write 2 websites and deloy on a server, they're difference folder. A problem when I login on a website, then open 2nd site I see login cookie still keep in 2nd site. My system: Window server 2003, .Net 2.0, IIS. 

Login code:

FormsAuthentication.SetAuthCookie(dataUserName.Text, true);   


<authentication mode="Forms" >
<forms loginUrl="~/Login.aspx" timeout="2880"/>

Forcing domain switch on Sharepoint login?

We have an interesting problem in that we have users in two domains (let's call them DOM1 and DOM2 for anonimity's sake) and we use Windows Integrated NTLM authentication. All the accounts in DOM2 are duplicated in DOM1 (& have the same passwords). What we would like is for users to be authenticated against DOM1 even 'tho the user is currently logged in to the DOM2 domain. We want this to be transparent to the user; ie, DOM2\user1 "becomes" DOM1\user1 without the user having to do the "sign in as a different user" operation. Is this somehow possible at the IIS level or with some coding trick on the Sharepoint end? It would seem to be a simple thing (at least, in concept), changing DOM2\user1 to DOM1\user1 and then everything subsequently would be as if the user had intentionally logged in as DOM1\user1.

Settting password expiry to login/users without domain policy dependency


Hi Friends,

I would require your help,in setting password expiry for login/users.But this shouldnt have any dependency with Windows Domain users expiry policy.For example our domain user expiry policy 45 days but we want sql server login/users password expiry to be 180days.For any clarifications




ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend