<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: current username for FBA user</title><link>https://www.infopathdev.com:443/forums/thread/71569.aspx</link><pubDate>Tue, 01 Nov 2011 12:47:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71569</guid><dc:creator>brandtsmith</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71569.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71569</wfw:commentRss><description>&lt;p&gt;OK..I figured it out...have to use fully trusted forms...might as well use administrator approved forms as well so you dont have to mess with certificates...and use some code like this:&lt;/p&gt;&lt;p&gt;int index = 0;&lt;br /&gt;userName = (this.Application.User.LoginName);&lt;br /&gt;if (userName.Contains(&amp;quot;sqlmembershipprovider&amp;quot;))&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; index = userName.IndexOf(&amp;quot;sqlmembershipprovider|&amp;quot;) + 22;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userName = userName.Substring(index, userName.Length - index);&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>current username for FBA user</title><link>https://www.infopathdev.com:443/forums/thread/71438.aspx</link><pubDate>Wed, 26 Oct 2011 18:23:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71438</guid><dc:creator>brandtsmith</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71438.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=71438</wfw:commentRss><description>Has anyone figured out how to retrieve the current username for an FBA user in IP2010</description></item></channel></rss>