<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Security</title><link>http://forums.asp.net/25.aspx</link><description>All about ASP.NET security (authentication, authorization, membership, roles, etc.) and the Login controls. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=24&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: How to assign a text to LoginName control?</title><link>http://forums.asp.net/thread/3275022.aspx</link><pubDate>Sun, 05 Jul 2009 00:45:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3275022</guid><dc:creator>bhadelia.imran</dc:creator><author>bhadelia.imran</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3275022.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=3275022</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;nijhawan.saurabh:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;
If you are not using the membership classes then there isn&amp;#39;t any point of using LoginName control.&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;There is no relation between LoginName control and Membership, Memberhsip exposed few functinality for Developer, making their life easier in common functoin and LoginName.&lt;/p&gt;&lt;p&gt;If you want to use LoginName control, then you must use Forms Based Authentication, the LoginName displays the value of the System.Web.UI.Page.User.Identity.Name property which is get filled by FormsAuthentication.SetAuthCookie or once user get logged in create GenericIdentity and assign to System.Web.UI.Page.User.Identity. So you dont need Session to store that infor, it will be added in Identity.&lt;/p&gt;&lt;p&gt;Hope this helps&lt;/p&gt;</description></item><item><title>Re: How to assign a text to LoginName control?</title><link>http://forums.asp.net/thread/3274575.aspx</link><pubDate>Sat, 04 Jul 2009 11:12:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274575</guid><dc:creator>nijhawan.saurabh</dc:creator><author>nijhawan.saurabh</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274575.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=3274575</wfw:commentRss><description>&lt;p&gt;
If you are not using the membership classes then there isn&amp;#39;t any point of using LoginName control.&lt;/p&gt;&lt;p&gt;Instead you use a simple Label control and on &amp;quot;Successful login&amp;quot; change it&amp;#39;s Text property accordingly like:&lt;/p&gt;&lt;p&gt;txtLoginName.Text=&amp;quot;Welcome,&amp;quot;+Convert.ToStriong(Session[&amp;quot;user&amp;quot;]);&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to assign a text to LoginName control?</title><link>http://forums.asp.net/thread/3274481.aspx</link><pubDate>Sat, 04 Jul 2009 08:46:56 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274481</guid><dc:creator>rickymartin211</dc:creator><author>rickymartin211</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274481.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=3274481</wfw:commentRss><description>&lt;p&gt;Hi, I&amp;#39;ve put a &amp;quot;LoginName&amp;quot; control to my web form. I want to change the text that it displays to the user name of the user which is in a session variable &amp;quot;user&amp;quot;. I dont use the Membership class. How do i change the text of the LoginName control to user&amp;#39;s username? &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;cheers &lt;/p&gt;</description></item></channel></rss>