<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Michael Fuerst</title><link>http://www.msfnet.de:80/</link><description>Michael Fuerst</description><item><title>Silverlight - List to Visibility converter</title><link>http://www.msfnet.de:80/silverlight---list-to-visibility-converter</link><description>&lt;p&gt;A convert that checks if a "List" has values and converts it accordingly to "Visibility"&lt;/p&gt;
&lt;pre class="brush: csharp;"&gt;public class ListToVisibilityConverter : IValueConverter
{
	#region IValueConverter Members

	public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
	{

		var objList = value as IList;
		return (objList == null || objList.Count == 0) ? Visibility.Collapsed : Visibility.Visible;
	}

	public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
	{
		return null;
	}

	#endregion
}
&lt;/pre&gt;</description><pubDate>Fri, 13 May 2011 11:54:05 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/silverlight---list-to-visibility-converter</guid></item><item><title>Windows Phone 7 screen dimensions </title><link>http://www.msfnet.de:80/wp7-screen-sizes</link><description>&lt;p class="title"&gt;What are the screen dimensions given to my app?&lt;/p&gt;
&lt;p&gt;All Windows phones currently have Wide Video Graphics Array (WVGA) screens that are 480 pixels wide and 800 pixels tall. Your app can consume all of this space if you are not showing the status bar or application bar. In the portrait orientation, the status bar consumes 32 pixels of height and a fully-opaque application bar consumes 72 pixels of height. In the landscape orientations, the status bar and application bar each consume 72 pixels of &lt;em&gt;width&lt;/em&gt; because they don&amp;rsquo;t move from their original locations, as seen in the preceding chapter.&lt;/p&gt;
&lt;p&gt;Another consideration when designing your user interfaces is that toast notifications, when they appear, temporarily cover &lt;span class="IL_AD" id="IL_AD12"&gt;the top&lt;/span&gt; 60 pixels of the screen. If your app is used in the midst of a phone call, a bar with call information covers the top 64 pixels of the screen. When the user adjusts the phone&amp;rsquo;s volume or interacts with the audio &lt;span class="IL_AD" id="IL_AD4"&gt;transport&lt;/span&gt; controls, the resulting volume control covers the top 93 pixels. This is one of the reasons that the standard &lt;span class="IL_AD" id="IL_AD1"&gt;page design&lt;/span&gt; of showing the application name &lt;span class="IL_AD" id="IL_AD9"&gt;at the top&lt;/span&gt; works out nicely, as only that gets covered in these cases.&lt;/p&gt;
&lt;p&gt;That said, it&amp;rsquo;s best to avoid depending on the specific screen dimensions. Future phones will undoubtedly have different dimensions. You can dynamically discover the resolution with the following two properties:&lt;/p&gt;
&lt;pre&gt;(&lt;code&gt;Application&lt;/code&gt;.Current.RootVisual &lt;code&gt;as FrameworkElement&lt;/code&gt;).ActualWidth
(&lt;code&gt;Application&lt;/code&gt;.Current.RootVisual &lt;code&gt;as FrameworkElement&lt;/code&gt;).ActualHeight&lt;/pre&gt;
&lt;p&gt;or:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Application&lt;/code&gt;.Current.Host.Content.ActualWidth
&lt;code&gt;Application&lt;/code&gt;.Current.Host.Content.ActualHeight&lt;/pre&gt;
&lt;p&gt;You can also discover the current &lt;em&gt;page&amp;rsquo;s&lt;/em&gt; dimensions (minus the status bar and application bar, if &lt;span class="IL_AD" id="IL_AD6"&gt;applicable&lt;/span&gt;) by checking the page instance&amp;rsquo;s ActualWidth and ActualHeight properties.&lt;/p&gt;
&lt;p&gt;If you wish to perform a custom action when the orientation changes, such as a full-screen animation or custom rearranging of elements, you can leverage a page&amp;rsquo;s OrientationChanged event.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Source:&lt;/strong&gt; &lt;a href="http://windowsphone7reviews.net/101-windows-phone-7-apps-in-case-of-emergency"&gt;http://windowsphone7reviews.net/101-windows-phone-7-apps-in-case-of-emergency&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 13 May 2011 11:53:15 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/wp7-screen-sizes</guid></item><item><title>Kostenloses E-Book zu Windows PowerShell</title><link>http://www.msfnet.de:80/kostenloses-e-book-zu-windows-powershell</link><description>&lt;p&gt;Keith Hill, Software-Architekt und Experte für Windows PowerShell hat ein kostenloses eBook zum Thema Windows PowerShell veröffentlicht:&lt;/p&gt; &lt;p&gt;&lt;a href="http://msfn.me/elK6XT"&gt;Effective Windows PowerShell: The Free eBook&lt;/a&gt; &lt;/p&gt;</description><pubDate>Wed, 22 Dec 2010 09:06:18 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/kostenloses-e-book-zu-windows-powershell</guid></item><item><title>Windows Phone 7 Programmierbuch</title><link>http://www.msfnet.de:80/windows-phone-7-programmierbuch</link><description>&lt;p&gt;Microsoft pushed Windows Phone 7 bei den Entwicklern weiter. Diesmal gibt es einen kostenlosen &lt;a href="http://msfn.me/eY7nUw"&gt;WP7 Programmierkurst für Anfänger&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Der Kurs besteht aus 8 Teilen, mit Übungen, Powerpoint Presentationen und Demos. Vorraussetzung sind C# Kenntnisse&lt;/p&gt;</description><pubDate>Thu, 16 Dec 2010 21:02:04 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/windows-phone-7-programmierbuch</guid></item><item><title>MVVM Framework für JavaScript</title><link>http://www.msfnet.de:80/mvvm-framework-fur-javascript</link><description>&lt;p&gt;Mit &lt;a href="http://msfn.me/gbIhmQ"&gt;Knockout&lt;/a&gt; gibt es jetzt ein MVVM Framework für JavaScript.&lt;/p&gt;
&lt;p&gt;
Knockout unterstützt alle wichtigen Browser, sogar IE6!
&lt;/p&gt;
&lt;p&gt;
Knockout bekommt seine Daten per Json. Wie, oder wo her diese Daten kommen ist nicht Teil des Framesworks. Knockout kann aber diese Daten per DataBinding ganz einfach an ein Control binden.&lt;/p&gt;</description><pubDate>Thu, 09 Dec 2010 09:08:04 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/mvvm-framework-fur-javascript</guid></item><item><title>Visual Studio 2010 Service Pack 1 Beta</title><link>http://www.msfnet.de:80/visual-studio-2010-service-pack-1-beta</link><description>&lt;p&gt;Microsoft hat heute die erste Beta vom Visual Studio 2010 Service Pack 1 &lt;a href="http://msfn.me/ff8Rbz"&gt;veröffentlicht&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;
Das Service Pack kann nur von MSDN Abonenten &lt;a href="http://msfn.me/elK2SU"&gt;herunter geladen&lt;/a&gt; werden.&lt;/p&gt;</description><pubDate>Tue, 07 Dec 2010 20:07:06 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/visual-studio-2010-service-pack-1-beta</guid></item><item><title>WHS für WP7</title><link>http://www.msfnet.de:80/whs-fur-wp7</link><description>&lt;p&gt;Windows Home Server für Windows Phone 7 ist da: &lt;a href="http://www.whsphone.com/"&gt;WHS Phone&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
Mit WHS Phone kann man sich mit seinem Windows Home Server verbinden, Daten suchen, Musik und Videos streamen, Bilder anschaun und den WHS verwalten. WHS Phone ist ab sofort im WP7 Marketplace erhältlich und kostet 3,99€. &lt;/p&gt;
&lt;p&gt;Nach der Installation der App auf dem Handy, muss auf dem Home Server das &lt;a href="http://www.whsphone.com/Download"&gt;WHS Phone Add-in&lt;/a&gt; installiert werden.&lt;/p&gt;</description><pubDate>Fri, 03 Dec 2010 09:25:44 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/whs-fur-wp7</guid></item><item><title>Windows Phone 7 Bücher</title><link>http://www.msfnet.de:80/windows-phone-7-bucher</link><description>&lt;p&gt;
Charles Petzhold's Buch "Programming Windows Phone 7" ist schon seit einiger Zeit als kostenloses eBook &lt;a href="http://www.charlespetzold.com/phone/index.html"&gt;erhältlich&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;
Im Dezember wird es nun auch als gedruckte Version erscheinen. Das eBook wurde dazu in zwei Bücher aufgeteielt:&lt;/p&gt;
&lt;p&gt;
Eins beschreibt die Programmierung von WP7 mit Silverlight: Programming Windows® Phone 7 ( ISBN:9780735656673).
Das Andere beschäftigt sich mit dem Thema XNA: Microsoft® XNA Framework Edition: Programming Windows® Phone 7 ( ISBN:9780735656697). Beide werden jeweils um die 39 Dollar kosten.&lt;/p&gt;
&lt;p&gt;
Die Aufteilung in zwei Bücher ist meine Meinung nach eine sehr gute Entscheidung, da das eBook ständig zwischen Silverlight und XNA hin und her springt, was das Lesen teilweise sehr nervig macht, vorallem, wenn man sich nur für eine der beiden Technologien interessiert.&lt;/p&gt;
&lt;p&gt;
Anfang Januar wird dann noch Developing Windows Phone 7 Applications ( ISBN: 9780735656093). Dieses Buch wurde von  Microsoft  Patterns and Practices Group Evangelisten geschrieben und soll die perfekte Ergänzung zu Charles Petzholds Bücher sein.&lt;/p&gt;

Microsoft Press plant im laufe des Jahres 2011 noch weitere WP7 Bücher:
&lt;ul&gt;

	&lt;li&gt;Microsoft XNA Game Studio 4.0: Learn Programming Now! ( Jan. 2011 )&lt;/li&gt;
	&lt;li&gt;Windows Phone 7 Silverlight Development Step by Step ( Spring 2011 )&lt;/li&gt;
	&lt;li&gt;Building Multi-Platform Cloud-Connected Solutions with Microsoft Silverlight, Windows Phone 7, Windows Communication Foundation, and the Windows Azure™ Platform ( Spring 2011 )&lt;/li&gt;
	&lt;li&gt;
Guide to Windows Phone 7 Development for iPhone and Android Developers ( Spring 2011 )&lt;/li&gt;
&lt;/ul&gt;




</description><pubDate>Fri, 26 Nov 2010 09:38:49 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/windows-phone-7-bucher</guid></item><item><title>RTM App für WP7</title><link>http://www.msfnet.de:80/rtm-app-fur-wp7</link><description>Darauf habe ich gewartet:

&lt;a href="http://julianapena.com/projects/winmilk/"&gt;WinMilk&lt;/a&gt; ist eine kostenlose  "Remember The Milk" App für Windows Phone 7.

</description><pubDate>Mon, 22 Nov 2010 22:56:34 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/rtm-app-fur-wp7</guid></item><item><title>WP7: Registry Hack für USB Massenspeicher Modus</title><link>http://www.msfnet.de:80/wp7-registry-hack-fur-usb-massenspeicher-modus</link><description>&lt;p&gt;&lt;a href="http://wpcentral.com/how-turn-your-windows-phone-7-device-usb-drive"&gt;WPCentral&lt;/a&gt; hat einen interessanten Hack veröffentlich um  Windows Phone 7 Geräte als Massenspeicher anzusprechen:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Den "Registry Editor" auf dem gewünschten Rechner öffnen (regedit.exe).&lt;/li&gt;	
              &lt;li&gt; Den Schlüssel HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB wählen.&lt;/li&gt;
	&lt;li&gt;Dort den Schlüssel "ZuneDriver" suchen.&lt;/li&gt;
	&lt;li&gt;Hier folgende Werte ändern:
              &lt;ul&gt;
	     &lt;li&gt;ShowInShell von 0 auf 1&lt;/li&gt;
	     &lt;li&gt;PortableDeviceNameSpaceExcludeFromShell von 1 auf 0&lt;/li&gt;
	     &lt;li&gt;EnableLegacySupport von 0 auf 1&lt;/li&gt;
              &lt;/ul&gt;
              &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
Nun sollte das Gerät und die Ordner für Musik, Video und Bilder im Explorer sichtbar sein. Um darauf zugreifen zu können muss die Zune Desktop Software &lt;strong&gt;geschlossen&lt;/strong&gt; werden!&lt;/p&gt;
&lt;p&gt;
Prinzipiell können auch andere Dateien ablegen, aber diese kann WP7 nicht verarbeiten. Das Handy dient in diesem Fall nur als externer Massenspeicher.&lt;/p&gt;




 


</description><pubDate>Thu, 18 Nov 2010 09:29:55 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/wp7-registry-hack-fur-usb-massenspeicher-modus</guid></item><item><title>Microsoft erweitert WCF auf CodePlex</title><link>http://www.msfnet.de:80/microsoft-erweitert-wcf-auf-codeplex</link><description>&lt;p&gt;Microsoft erweitert WCF und stellt diese Erweiterungen auf CodePlex ein. Es handelt sich bisher um einen "Pre-Release", der, laut &lt;a href="http://blogs.msdn.com/b/gblock/"&gt;Glenn Block&lt;/a&gt;, in naher Zukunft unter die OpenSource Lizenz gestellt werden soll.&lt;/p&gt;
&lt;p&gt;Die Erweiterungen setzen auf WCF 4.0 auf und umfassen vor allem 2 Punkte:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Erweiterter HTML Support&lt;/li&gt;	
	&lt;li&gt;jQuery Support&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Einen sehr interessanten Podcast zu dem Thema findet man bei &lt;a href="http://msjoe.com/podcast/post/Episode-1-Glen-Block-on-WCF.aspx"&gt;Joe Stagner&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Die Projekt Seite findet man auf &lt;a href="http://wcf.codeplex.com/"&gt;CodePlex&lt;/a&gt;.&lt;/p&gt;</description><pubDate>Wed, 17 Nov 2010 09:14:26 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/microsoft-erweitert-wcf-auf-codeplex</guid></item><item><title>Windows Phone 7 Tethering</title><link>http://www.msfnet.de:80/windows-phone-7-tethering</link><description>&lt;p&gt;Und es geht doch. Urspr&amp;uuml;nglich hatte ja ein Microsoft Mitarbeiter in einem Blogbeitrag bekannt gegeben, das WP7 Tethering beherscht. Leider fehlte dann in der endg&amp;uuml;ltigen Version diese Funtion doch. Wie sich jetzt herausstellt, ist die Funktion aber sehr wohl vorhanden:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Samsung Omnia 7:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Um Tethering auf dem Samsung Omnia 7 freizuschalten zuerst die Nummer &amp;ldquo;##634#&amp;rdquo; w&amp;auml;hlen, dann die Nummer &amp;ldquo;#7284#&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;Darauf hin &amp;ouml;ffnet sich das USB-Tethering-Men&amp;uuml;. Dort den Punkt &amp;ldquo;Modem, Tethred Anruf&amp;rdquo; ausw&amp;auml;hlen, das Handy neu starteten und per USB anschliessen. Nach Installation der Treiber kann dann die Tethering-Funktion genutzt werden.&lt;/p&gt;</description><pubDate>Fri, 12 Nov 2010 21:12:34 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/windows-phone-7-tethering</guid></item><item><title>Kinect gehackt</title><link>http://www.msfnet.de:80/kinect-gehackt</link><description>Das ging ja schneller als gedacht! AlexP aus dem NUI Group Community Forum hat es geschaft Kinect unter Windows 7 anzusprechen. 

Einzelheiten und Videos gibt es im &lt;a href="http://nuigroup.com/forums/viewthread/11154/"&gt;Forum&lt;/a&gt;

&lt;a href="http://thecodelabs.com/get/kinect/"&gt;Open Source Kinect Projekt&lt;/a&gt; </description><pubDate>Tue, 09 Nov 2010 19:37:51 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/kinect-gehackt</guid></item><item><title>.Net API für Kinect</title><link>http://www.msfnet.de:80/net-api-fur-kinect</link><description>According to Tim Huckaby in the latest .Net Rocks show there is  a good chance we are getting a .Net API for Kinect from Microsoft.
Just listen to the podcast, it’s about 15 minutes into the show.

&lt;a href="http://http://http://www.dotnetrocks.com/default.aspx?showNum=609"&gt;.Net Rocks Show #609&lt;/a&gt;
</description><pubDate>Tue, 09 Nov 2010 08:47:11 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/net-api-fur-kinect</guid></item><item><title>IE9 Platform Preview in IE9 Beta integrieren</title><link>http://www.msfnet.de:80/ie9-platform-preview-in-ie9-beta-integrieren</link><description>&lt;br/&gt;
&lt;ol&gt;
	&lt;li&gt;IE9 und Platform Preview installieren (&lt;a href="http://ie.microsoft.com/testdrive/info/downloads/Default.html"&gt;http://ie.microsoft.com/testdrive/info/downloads/Default.html&lt;/a&gt;).&lt;/li&gt;	&lt;li&gt;Neuen Ordner erstellen (z.B "IE9PV6").&lt;/li&gt;
	&lt;li&gt;Die Datei "iexplore.exe" aus dem Ordner "C:/Program Files/Internet Explorer" (oder "C:/Program Files (x86)/Internet Explorer" bei 64 Bit Windows) in den neuen Ordner “IE9PV6″ kopieren.&lt;/li&gt;	
&lt;li&gt;Den Ordner "iepreview.exe.local" aus dem Ordner "C:/Program Files/Internet Explorer Platform Preview" (oder "C:/Program Files (x86)/Internet Explorer Platform Preview" bei 64 Bit Windows) in den Ordner “IE9PV6″ kopieren.&lt;/li&gt;
	&lt;li&gt;Den kopierten Ordner  "iepreview.exe.local" in "iexplore.exe.local" ubenennen.&lt;/li&gt;
	&lt;li&gt;Mit einem Doppelklick auf ""iexplore.exe" im Ordner “IE9PV6″ wird der IE9 mit dem Platform Preview gestartet&lt;/li&gt;&lt;/ol&gt;





 
</description><pubDate>Mon, 08 Nov 2010 10:09:09 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/ie9-platform-preview-in-ie9-beta-integrieren</guid></item><item><title>Android Fastboot</title><link>http://www.msfnet.de:80/android-fastboot</link><description>&lt;br /&gt;
&lt;ol&gt;
	&lt;li&gt;Das zu flashende Image in den gleichen Ordner kopieren in dem sich auch die fastboot.exe befindet.&lt;/li&gt;
	&lt;li&gt;Handy einschalten in dem man “Power + Zurück”drückt.&lt;/li&gt;
	&lt;li&gt;Handy per USB anschließen.&lt;/li&gt;
	&lt;li&gt;Eine Konsole (CMD) als Administrator öffnen und darin in den fastboot.exe (C:\android-sdk-windows\tools) Ordner wechseln.&lt;/li&gt;
	&lt;li&gt;Je nach dem was man flashen will folgende Befehle eingebn:&lt;ol&gt;
	&lt;li&gt;Fastboot flash radio [Radio_Filename.img]&lt;/li&gt;
	&lt;li&gt;Fastboot flash hboot [spl_Filename.img]&lt;/li&gt;
	&lt;li&gt;Fastboot flash recovery [Recovery_Filename.img]&lt;/li&gt;
	&lt;li&gt;Fastboot erase system [–w um auch die Userdaten zu löschen]&lt;/li&gt;
	&lt;li&gt;Fastboot update [Rom_Filename.zip] [–w um auch die Userdaten zu löschen]&lt;/li&gt;
	&lt;li&gt;Fastboot erase userdata&lt;/li&gt;
	&lt;li&gt;Fastboot reboot&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;/p&gt;
</description><pubDate>Sat, 06 Nov 2010 10:30:01 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/android-fastboot</guid></item><item><title>SquirrelMail nicht auf Deutsch</title><link>http://www.msfnet.de:80/squirrelmail-nicht-auf-deutsch</link><description>&lt;p&gt;Falls sich das SquirrelMail Interface nicht auf Deustch umschalten l&amp;auml;&amp;szlig;t, liegt das vermutlich an einer fehlenden locale:&lt;/p&gt;
&lt;pre class="brush: java;"&gt;sudo locale-gen de_DE iso 8859-1 dpkg-reconfigure locales squirrelmail-configureLanguages "de_DE" einstellen.&lt;/pre&gt;</description><pubDate>Wed, 17 Mar 2010 11:52:16 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/squirrelmail-nicht-auf-deutsch</guid></item><item><title>String in Byte Array und zurück wandeln</title><link>http://www.msfnet.de:80/string-in-byte-array-und-zuruck-wandeln</link><description>&lt;pre class="brush: csharp;"&gt;private byte[] StringToByteArray(string sourceString) 
{ 
	System.Text.ASCIIEncoding sourceEncoding = new System.Text.ASCIIEncoding(); 
	return sourceEncoding.GetBytes(sourceString); 
} 

private string ByteArrayToString(byte[] sourceArray) 
{ 
	System.Text.ASCIIEncoding sourceEncoding = new System.Text.ASCIIEncoding(); 
	return sourceEncoding.GetString(sourceArray);
}
&lt;/pre&gt;</description><pubDate>Thu, 25 Feb 2010 08:54:51 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/string-in-byte-array-und-zuruck-wandeln</guid></item><item><title>ASP.NET FormsAuthentication - Persistant Ticket/Cookie</title><link>http://www.msfnet.de:80/asp.net-formsauthentication---persistant-ticket-cookie</link><description>&lt;p&gt;Ich hatte einen recht eigenartigen Effekt bei FormsAuthentication in Zusammenhang mit einem persistant Authentickation Ticket. Ein mit der Methode "FormsAuthentication.GetAuthCookie" erzeugtes Ticket war nur 30 Minuten g&amp;uuml;ltig, obwohl ich &amp;uuml;berall gelesen habe, das ein so erzeugtes Ticket 50 Jahre g&amp;uuml;ltig sein sollte. Daher erstelle ich das Ticket jetzt von "Hand", verschl&amp;uuml;ssele es und schreibe es in ein Cookie:&lt;/p&gt;
&lt;pre class="brush: csharp;"&gt;protected void Login_LoggedIn(object sender, EventArgs e) 
{ 
	var ctrLogin = (Login) sender; 
	var persistCheckBox = ctrLogin.FindControl("PersistCheckBox") as CheckBox; 
	var isPersistent = persistCheckBox != null ? persistCheckBox.Checked : false; 
	
	var authTicket = new FormsAuthenticationTicket(1, ctrLogin.UserName, DateTime.Now, isPersistent ? DateTime.Now.AddYears(2) : DateTime.Now.AddHours(1), isPersistent, ""); 
	var authCookie = new HttpCookie(FormsAuthentication.FormsCookieName, FormsAuthentication.Encrypt(authTicket)) {Expires = DateTime.Now.AddYears(2)}; 
	
	Response.Cookies.Add((authCookie)); 
	BayDirUser.SetUser(ctrLogin.UserName, ctrLogin.Password); 
	
	if (_redirectUrl != null &amp;amp;&amp;amp; !_redirectUrl.Equals(string.Empty)) 
		Response.Redirect(_redirectUrl, isPersistent); 
	else 
		Response.Redirect(FormsAuthentication.GetRedirectUrl(ctrLogin.UserName, isPersistent)); 
}
&lt;/pre&gt;</description><pubDate>Mon, 01 Feb 2010 12:19:19 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/asp.net-formsauthentication---persistant-ticket-cookie</guid></item><item><title>ASP.NET FormsAuthentication - Logout</title><link>http://www.msfnet.de:80/asp.net-formsauthentication---logout</link><description>&lt;p&gt;ASP.NET FormsAuthentication - Logout&lt;/p&gt;
&lt;pre class="brush: csharp;"&gt;protected void LoggedOut(object sender, EventArgs e) 
{ 
	FormsAuthentication.SignOut(); 
	HttpCookie authCookie = Context.Response.Cookies.Get(FormsAuthentication.FormsCookieName); 
	
	if (authCookie != null) 
		authCookie.Expires = DateTime.Now.AddYears(-1); 
		
	Session.Abandon(); 
	Response.Redirect("~/default.aspx", true); 
}
&lt;/pre&gt;</description><pubDate>Thu, 28 Jan 2010 13:00:55 GMT</pubDate><guid isPermaLink="true">http://www.msfnet.de:80/asp.net-formsauthentication---logout</guid></item></channel></rss>