Last post Apr 13, 2009 05:04 PM by Slachkey
Apr 10, 2009 08:08 PM|Slachkey|LINK
I'm new to asp.net and I'm doing something I thought would be relatively simple yet I can't get it to work. I created a simple user control that just consists of a Login Control that I changed the look of using a LayoutTemplate. This control goes in the
top right corner of all the pages on a simple website. I don't actually have a login.aspx page, the login is only handled on each page, in the top right corner.
I'm trying to make the Login Control ajax enabled so it logs the user in seamlessly. I have successfully axaj enabled a couple other forms so I'm familiar with what I need to ajax the Login Control.
I've tried a few ways. The first way I wrap the Login Control in the UpdatePanel in the user control. This doesn't work. The second way I tried was wrapping the user control in the markup code with an UpdatePanel. That didn't work either.
Does anyone have experience with this? I'm assuming it's possible and that I'm just missing something simple, or that there is some mechanism of the Login Control which doesn't allow for ajax and I'm not familiar enough with asp.net to know that.
Apr 11, 2009 02:49 AM|ankit.sri|LINK
Apr 11, 2009 03:44 AM|Pawan_Mishra|LINK
If You are using asp.net ajax then you can also use the application services for creating a custom login control . In application services you can use authetication service , profile service and roles service .
Apr 13, 2009 05:04 PM|Slachkey|LINK
ankit.sri: I tried what you have and no it doesn't work for me. I'm using forms authentication which I should have mentioned before so I apologize for that. I think Pawan_Mishra is on the right track because according to his first link the forms authentication
requires some additional handling. The first paragraph reads:
Microsoft ASP.NET AJAX applications do not require extensive use of page postbacks. However, a browser-based application might still have to use server-based application services such as forms authentication and profiles. The Microsoft AJAX Library provides
So that pretty much sums it up that I need to handle it myself.
Pawan_Mishra: Thanks for those links! It looks like that will get me what I need!