<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Wiki ASP.NET</title>
	<atom:link href="http://wikiaspnet.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://wikiaspnet.wordpress.com</link>
	<description>A Wiki place for our ASP.NET Crossbone project</description>
	<lastBuildDate>Wed, 01 Jun 2011 22:18:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='wikiaspnet.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Wiki ASP.NET</title>
		<link>http://wikiaspnet.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://wikiaspnet.wordpress.com/osd.xml" title="Wiki ASP.NET" />
	<atom:link rel='hub' href='http://wikiaspnet.wordpress.com/?pushpress=hub'/>
		<item>
		<title>WCF 403 Forbidden Exception</title>
		<link>http://wikiaspnet.wordpress.com/2009/11/26/wcf-403-forbidden-exception/</link>
		<comments>http://wikiaspnet.wordpress.com/2009/11/26/wcf-403-forbidden-exception/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 02:36:45 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/2009/11/26/wcf-403-forbidden-exception/</guid>
		<description><![CDATA[WCF (Windows Communication Foundation) comes with .NET 2.0, and with JSON serialization format with .NET 3.5. The most important DLL is ServiceModel. The thing is, when installing the .NET framework, it doesn’t mean that ServiceModel is registered with your server, or in particular, with IIS. If that’s the case, you will most likely get the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=141&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://msdn.microsoft.com/en-us/netframework/aa663324.aspx" target="_blank">WCF (Windows Communication Foundation)</a> comes with .NET 2.0, and with JSON serialization format with .NET 3.5. The most important DLL is ServiceModel. The thing is, when installing the .NET framework, it doesn’t mean that ServiceModel is registered with your server, or in particular, with IIS. </p>
<p>If that’s the case, you will most likely get the error below:</p>
<blockquote><p><font color="#804040">An existing connection was forcibly closed by the remote host.</font></p>
<p><font color="#804040">The remote server returned an error: (403) Forbidden.</font></p>
<p><font color="#804040">The HTTP request was forbidden with client authentication scheme &#8216;Anonymous&#8217;.</font></p>
</blockquote>
<p>If that’s the case, you just need to register ServiceModel to your IIS using the <a href="http://msdn.microsoft.com/en-us/library/ms732012.aspx" target="_blank">ServiceModelReg.exe</a> tool. =)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wikiaspnet.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wikiaspnet.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wikiaspnet.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wikiaspnet.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/141/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=141&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2009/11/26/wcf-403-forbidden-exception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP.NET Validation</title>
		<link>http://wikiaspnet.wordpress.com/2008/08/22/aspnet-validation/</link>
		<comments>http://wikiaspnet.wordpress.com/2008/08/22/aspnet-validation/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 19:27:36 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/?p=127</guid>
		<description><![CDATA[Validation is pretty essential for a web page with form submission. But even with all the help from Microsoft&#8217;s wonderful validation controls, at times some petty details becomes quite annoying problems to solve. This post is to list out some useful resources&#8230; Validating ASP.NET Server Controls http://msdn.microsoft.com/en-us/library/aa479013.aspx User Input Validation in ASP.NET http://msdn.microsoft.com/en-us/library/ms972961.aspx ASP.NET Validation [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=127&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Validation is pretty essential for a web page with form submission. But even with all the help from Microsoft&#8217;s wonderful validation controls, at times some petty details becomes quite annoying problems to solve. This post is to list out some useful resources&#8230;</p>
<p>Validating ASP.NET Server Controls<br />
<a href="//msdn.microsoft.com/en-us/library/aa479045.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/aa479013.aspx</a><br />
User Input Validation in ASP.NET<br />
<a id="l0pm" title="http://msdn.microsoft.com/en-us/library/ms972961.aspx" href="http://msdn.microsoft.com/en-us/library/ms972961.aspx">http://msdn.microsoft.com/en-us/library/ms972961.aspx</a><br />
ASP.NET Validation in Depth<br />
<a id="p4_g" title="http://msdn.microsoft.com/en-us/library/aa479045.aspx" href="http://msdn.microsoft.com/en-us/library/aa479045.aspx">http://msdn.microsoft.com/en-us/library/aa479045.aspx</a><a id="ojb9" title="http://msdn.microsoft.com/en-us/library/aa479013.aspx" href="http://msdn.microsoft.com/en-us/library/aa479013.aspx"></a></p>
<p>My own post:<a href="http://wikiaspnet.wordpress.com/2008/08/22/validate-checkbox/" target="_blank"><br />
CheckBox Validation</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wikiaspnet.wordpress.com/127/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wikiaspnet.wordpress.com/127/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wikiaspnet.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wikiaspnet.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wikiaspnet.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wikiaspnet.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/127/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=127&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2008/08/22/aspnet-validation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>
	</item>
		<item>
		<title>CheckBox Validation</title>
		<link>http://wikiaspnet.wordpress.com/2008/08/22/validate-checkbox/</link>
		<comments>http://wikiaspnet.wordpress.com/2008/08/22/validate-checkbox/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 18:55:21 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/?p=123</guid>
		<description><![CDATA[ASP.NET provides all the wonderful validation controls and perform both client-side and server-side validation. However, to validate a CheckBox, only the Custom Validation Control can be used. Assume you have the following&#8230; &#60;span&#62;&#60;asp:CheckBox ID="MyCheckBox" runat="server" onClick="if (this.checked) CheckBoxChecked(); else CheckBoxUnchecked();" /&#62;Yes, your website is awesome! =) &#60;/span&#62; &#60;asp:CustomValidator ID="MyCheckBoxValidator" runat="server" ErrorMessage="Custom Validator" ClientValidationFunction="ClientValidateMyCheckBox" ValidationGroup="MyValidationGroup" OnServerValidate="MyCheckBoxValidator_ServerValidate"&#62;Required.&#60;/asp:CustomValidator&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=123&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ASP.NET provides all the wonderful validation controls and perform both client-side and server-side validation. However, to validate a CheckBox, only the Custom Validation Control can be used. Assume you have the following&#8230;</p>
<div style="background-color:#cccccc;">
<pre>&lt;span&gt;&lt;asp:CheckBox ID="MyCheckBox" runat="server" onClick="if (this.checked) CheckBoxChecked(); else CheckBoxUnchecked();" /&gt;Yes, your website is awesome! =) &lt;/span&gt;
&lt;asp:CustomValidator ID="MyCheckBoxValidator" runat="server" ErrorMessage="Custom Validator" ClientValidationFunction="ClientValidateMyCheckBox"
    ValidationGroup="MyValidationGroup" OnServerValidate="MyCheckBoxValidator_ServerValidate"&gt;Required.&lt;/asp:CustomValidator&gt;</pre>
</div>
<p>Pure server-side validation will work, using the event handler <strong>MyCheckBoxValidator_ServerValidate</strong>. Here&#8217;s how it would look, and then start other methods with a check on <strong>Page.IsValid</strong></p>
<div style="background-color:#cccccc;">
<pre>protected void MyCheckBoxValidator_ServerValidate(object source, ServerValidateEventArgs args)
{
    args.IsValid = (MyCheckBox.Checked);
}</pre>
</div>
<p>On the other hand, it would be more efficient if client-side validation can also be done. The JavaScript function <strong>ClientValidateMyCheckBox</strong> is used for this purpose&#8230;</p>
<div style="background-color:#cccccc;">
<pre>&lt;script type="text/javascript"&gt;
function ClientValidateMyCheckBox(source, args)
{
    var cb = $get('&lt;%=MyCheckBox.ClientID%&gt;');
    args.IsValid = cb.checked;
}
&lt;/script&gt;</pre>
</div>
<p>This will trigger the client validation and if the CheckBox is unchecked, it will display the custom validator&#8217;s warning message. However, when you check the CheckBox now the validation warning message doesn&#8217;t disappear. This is because the client-side validation event is not triggerred during the client-side onClick event of the CheckBox. (Just a side-note, RequiredValidator and TextBox does not have this behavior. TextBox is validated as soon as something&#8217;s typed in.) To resolve this, a MS client-side JavaScript function needs to be hooked up with the onClick event of the CheckBox, <strong>Page_ClientValidate(&#8220;&lt;validation group name&gt;&#8221;)</strong> is the JS function to be used. Also note that for the &#8220;check and un-check&#8221; event of the CheckBox to work, we need to associate two functions to onClick, as shown below&#8230;</p>
<div style="background-color:#cccccc;">
<pre>function CheckBoxChecked()
{
    var cb = $get('&lt;%=MyCheckBox.ClientID%&gt;');
    cb.checked = true;
    <span style="color:#ff0000;"><strong>Page_ClientValidate("My_Validation_Group");</strong></span>
}
function CheckBoxUnchecked()
{
    var cb = $get('&lt;%=MyCheckBox.ClientID%&gt;');
    cb.checked = false;
    <strong><span style="color:#ff0000;">Page_ClientValidate("My_Validation_Group");</span></strong>
}</pre>
</div>
<p>Final NOTE, don&#8217;t leave the validation group name out because it will then validate everything else on your page. However, do NOT use the same group name as the one you assigned in the Custom Validator also, it just doesn&#8217;t work. I can see that it doesn&#8217;t work because the ControlToValidate property is not set, so there is no linkage.</p>
<p>So well yeah, this will do it&#8230; of course, change accordingly if that&#8217;s not the behavior you are looking for&#8230;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wikiaspnet.wordpress.com/123/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wikiaspnet.wordpress.com/123/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wikiaspnet.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wikiaspnet.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wikiaspnet.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wikiaspnet.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/123/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=123&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2008/08/22/validate-checkbox/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS Friendly Adapters and Skins</title>
		<link>http://wikiaspnet.wordpress.com/2008/08/18/css-friendly-adapters-and-skins/</link>
		<comments>http://wikiaspnet.wordpress.com/2008/08/18/css-friendly-adapters-and-skins/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 21:01:03 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/?p=121</guid>
		<description><![CDATA[ASP.NET CSS Friendly Control Adapters http://www.asp.net/CSSAdapters/ http://www.codeplex.com/cssfriendly I guess this exists because Microsoft realizes that some of its rendered HTML code are not that easy to apply CSS to. So this adapter comes and stands in the way of the rendering process to generate different sets of HTML. It&#8217;s pretty cool because at the very [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=121&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ASP.NET CSS Friendly Control Adapters<br /> <a id="e" title="http://www.asp.net/CSSAdapters/Menu.aspx" href="http://www.asp.net/CSSAdapters/Menu.aspx">http://www.asp.net/CSSAdapters/</a><br /> <a id="nvpo" title="http://www.codeplex.com/cssfriendly" href="http://www.codeplex.com/cssfriendly">http://www.codeplex.com/cssfriendly</a></p>
<p>I guess this exists because Microsoft realizes that some of its rendered HTML code are not that easy to apply CSS to. So this adapter comes and stands in the way of the rendering process to generate different sets of HTML. It&#8217;s pretty cool because at the very least it exposes the way to render customized HTML based on whatever requirements.</p>
<p>However, I don&#8217;t find it useful for all the controls it currently supports. On the contrary, some make it even harder to apply CSS to. With the help of Skin files, the look and feel of controls such GridView or DetailsView can be pretty well customized.</p>
<p>As of any other MS technologies, there are always more than one way of doing it. Whatever fits your need should be used&#8230;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wikiaspnet.wordpress.com/121/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wikiaspnet.wordpress.com/121/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wikiaspnet.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wikiaspnet.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wikiaspnet.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wikiaspnet.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/121/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=121&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2008/08/18/css-friendly-adapters-and-skins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>
	</item>
		<item>
		<title>Random Password Generation</title>
		<link>http://wikiaspnet.wordpress.com/2008/07/27/random-password-generation/</link>
		<comments>http://wikiaspnet.wordpress.com/2008/07/27/random-password-generation/#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/?p=105</guid>
		<description><![CDATA[Pretty cool, can be used for many purposes, like generating the decryption and validation machine keys, etc&#8230; https://www.grc.com/passwords.htm<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=105&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Pretty cool, can be used for many purposes, like generating the decryption and validation machine keys, etc&#8230;</p>
<p><a href="https://www.grc.com/passwords.htm" target="_blank">https://www.grc.com/passwords.htm</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wikiaspnet.wordpress.com/105/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wikiaspnet.wordpress.com/105/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wikiaspnet.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wikiaspnet.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wikiaspnet.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wikiaspnet.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/105/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=105&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2008/07/27/random-password-generation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>
	</item>
		<item>
		<title>Select a row on GridView</title>
		<link>http://wikiaspnet.wordpress.com/2008/07/27/select-a-row-on-gridview/</link>
		<comments>http://wikiaspnet.wordpress.com/2008/07/27/select-a-row-on-gridview/#comments</comments>
		<pubDate>Sun, 27 Jul 2008 05:20:52 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[GridView]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/?p=74</guid>
		<description><![CDATA[There are many ways to select a row and perform whatever actions you desire in GridView. The easiest is to let its CommandField generate the select button and use the SelectedIndexChanging and SelectedIndexChanged events for the actions desired. &#60;asp:CommandField ShowSelectButton="true" /&#62; However, it would be more elegant if you can just select the row. 3 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=74&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are many ways to select a row and perform whatever actions you desire in GridView. The easiest is to let its CommandField generate the select button and use the <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.selectedindexchanging(VS.80).aspx" target="_blank">SelectedIndexChanging</a> and <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.selectedindexchanged(VS.80).aspx" target="_blank">SelectedIndexChanged</a> events for the actions desired.</p>
<div style="background-color:#cccccc;font-size:11px;">
<pre class="csharpcode"><span style="color:#800000;"><span style="color:#0000ff;">    &lt;</span>asp:CommandField <span style="color:#ff0000;">ShowSelectButton</span><span style="color:#0000ff;">="true"</span> <span style="color:#0000ff;">/&gt;</span></span></pre>
</div>
<p style="font-family:'Courier New', Courier, monospace;">However, it would be more elegant if you can just select the row. 3 steps needed in order to achieve that:</p>
<p style="font-family:'Courier New', Courier, monospace;"><strong><span style="text-decoration:underline;">Step 1:</span></strong> Add the SELECT command in RowDataBound event to each row (Assuming the ID of your GridView is &#8220;<span style="color:#0000ff;"><strong>myGridView</strong></span>&#8220;)</p>
<div style="background-color:#cccccc;font-size:11px;">
<pre class="csharpcode"><span style="color:#0000ff;"><span class="kwrd">    protected</span> <span class="kwrd">void</span></span> PeopleGridView_RowDataBound(<span style="color:#0000ff;"><span class="kwrd">object</span></span> sender, <span style="color:#33cccc;">GridViewRowEventArgs</span> e)
    {
    <span class="kwrd">    if</span> (e.Row.RowType == <span style="color:#33cccc;">DataControlRowType</span>.DataRow)
        {
        <span style="color:#339966;">    // Just adding styles and effects</span>
            e.Row.Attributes[<span style="color:#800000;"><span class="str">"onmouseover"</span></span>] = <span style="color:#800000;"><span class="str">"this.style.cursor='hand';this.style.textDecoration='underline';"</span></span>;
            e.Row.Attributes[<span style="color:#800000;"><span class="str">"onmouseout"</span></span>] = <span style="color:#800000;"><span class="str">"this.style.textDecoration='none';"</span></span>;

            e.Row.Attributes[<span style="color:#800000;"><span class="str">"onclick"</span></span>] = ClientScript.GetPostBackClientHyperlink(<span style="color:#0000ff;"><span class="kwrd">this</span></span>.myGridView, <span style="color:#800000;"><span class="str">"Select$"</span></span> + e.Row.RowIndex);
        }
    }</pre>
</div>
<p style="font-family:'Courier New', Courier, monospace;"><strong><span style="color:#000000;"><span style="text-decoration:underline;">Step 2:</span></span></strong> Register these SELECT commands in <strong>Render to avoid the Event Validation errors<br />
</strong></p>
<div style="background-color:#cccccc;font-size:11px;">
<pre class="csharpcode"><span style="color:#0000ff;">    protected override void</span> Render(<span style="color:#33cccc;">HtmlTextWriter </span>writer)
    {
<span style="color:#0000ff;">        for</span> (<span style="color:#0000ff;">int</span> i = 0; i &lt; <span style="color:#0000ff;">this</span>.myGridView.Rows.Count; i++)
        {
            Page.ClientScript.RegisterForEventValidation(<span style="color:#0000ff;">this</span>.myGridView.UniqueID, <span style="color:#800000;">"Select$"</span> + i);
        }
<span style="color:#0000ff;">        base</span>.Render(writer);
    }</pre>
</div>
<p style="font-family:'Courier New', Courier, monospace;"><strong><span style="text-decoration:underline;">Step 3:</span></strong> Use the <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.selectedindexchanging(VS.80).aspx" target="_blank">SelectedIndexChanging</a> and <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.selectedindexchanged(VS.80).aspx" target="_blank">SelectedIndexChanged</a> events for the actions desired</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wikiaspnet.wordpress.com/74/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wikiaspnet.wordpress.com/74/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wikiaspnet.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wikiaspnet.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wikiaspnet.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wikiaspnet.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=74&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2008/07/27/select-a-row-on-gridview/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>
	</item>
		<item>
		<title>Server.HttpEncode vs. HttpUtility.HttpEncode</title>
		<link>http://wikiaspnet.wordpress.com/2008/07/06/serverhttpencode-vs-httputilityhttpencode/</link>
		<comments>http://wikiaspnet.wordpress.com/2008/07/06/serverhttpencode-vs-httputilityhttpencode/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 01:23:47 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/?p=88</guid>
		<description><![CDATA[Just use HttpUtility.Encode because Server.HttpEncode simply calls HttpUtility.Encode. Basically if you are trying to display text back to the user and these text are either straight from database, or from databound objects, or from current page textbox entered by user, etc, use HttpUtility.Encode, mainly to prevent script-injection and handle specials characters such as blanks and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=88&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just use <strong>HttpUtility.Encode</strong> because Server.HttpEncode simply calls HttpUtility.Encode. Basically if you are trying to display text back to the user and these text are either straight from database, or from databound objects, or from current page textbox entered by user, etc, use HttpUtility.Encode, mainly to prevent script-injection and handle specials characters such as blanks and punctuations, and &lt;, &gt;, etc&#8230;</p>
<p>Example:<br />
<span style="color:#3366ff;"> TextBox TextBoxRoleName = (TextBox)RolesGridView.FooterRow.FindControl(&#8220;TextBoxRoleName&#8221;);<br />
string newRoleName = TextBoxRoleName.Text.Trim();<br />
LabelMessage.Text = &#8220;Role &#8216;&#8221; + <span style="color:#ff0000;">Server.HtmlEncode(newRoleName)</span> + &#8220;&#8216; already exists.&#8221;;</span></p>
<p>Of course, this leads to some quite important MSDN articles:</p>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/system.web.httputility.htmlencode.aspx" target="_blank">HttpUtility.HtmlEncode Method</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/ms998274.aspx#" target="_blank">MSDN &#8211; How To: Prevent Cross-Site Scripting in ASP.NET</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/ms998372.aspx" target="_blank">MSDN &#8211; Security Practices: ASP.NET 2.0 Security Practices at a Glance</a></li>
</ul>
<p>The last two articles of the above are under the following bigger, boarder title:</p>
<p><a href="http://msdn.microsoft.com/en-us/library/aa286519.aspx" target="_blank">MSDN &#8211; .NET Security</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wikiaspnet.wordpress.com/88/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wikiaspnet.wordpress.com/88/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wikiaspnet.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wikiaspnet.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wikiaspnet.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wikiaspnet.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=88&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2008/07/06/serverhttpencode-vs-httputilityhttpencode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP.NET AJAX username availability check</title>
		<link>http://wikiaspnet.wordpress.com/2008/07/01/aspnet-ajax-username-availability-check/</link>
		<comments>http://wikiaspnet.wordpress.com/2008/07/01/aspnet-ajax-username-availability-check/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 02:21:17 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[Ajax Controls]]></category>
		<category><![CDATA[Membership]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/?p=84</guid>
		<description><![CDATA[ASP.NET AJAX username availability check with UpdatePanel ASP.NET AJAX username availability check without UpdatePanel I used UpdatePanel in our project and it works alright. I didn&#8217;t read either of these posts when I did it. It was not too hard to figure out even though I did remember myself having some issues. However, the web [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=84&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://encosia.com/2007/07/02/aspnet-username-availability-checking-via-ajax/" target="_blank">ASP.NET AJAX username availability check <span style="color:#ff0000;"><strong>with</strong></span> UpdatePanel</a></p>
<p><a href="http://www.onesoft.dk/post/2007/07/ASPNET-AJAX-username-availability-check-without-UpdatePanel.aspx" target="_blank">ASP.NET AJAX username availability check <span style="color:#ff0000;"><strong>without</strong></span> UpdatePanel</a></p>
<p>I used UpdatePanel in our project and it works alright. I didn&#8217;t read either of these posts when I did it. It was not too hard to figure out even though I did remember myself having some issues. However, the web service method is much much better and well worth the time to learn and implement.</p>
<p>Great great posts from both sites!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wikiaspnet.wordpress.com/84/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wikiaspnet.wordpress.com/84/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wikiaspnet.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wikiaspnet.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wikiaspnet.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wikiaspnet.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=84&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2008/07/01/aspnet-ajax-username-availability-check/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>
	</item>
		<item>
		<title>Modal Popup with Rounded Corners</title>
		<link>http://wikiaspnet.wordpress.com/2008/07/01/modal-popup-with-rounded-corners/</link>
		<comments>http://wikiaspnet.wordpress.com/2008/07/01/modal-popup-with-rounded-corners/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 01:39:38 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[ASP.NET Controls]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/?p=79</guid>
		<description><![CDATA[If you set the TargetControlID of both ModalExtender and RoundedCornerExtender to one panel, ASP.NET will not like it, probably because of some JavaScript clashes. One simply trick is to have an inner panel, surrounded by an outer panel. Set the outer panel&#8217;s background color to transparent and let the inner panel have the rounded corner [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=79&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you set the TargetControlID of both ModalExtender and RoundedCornerExtender to one panel, ASP.NET will not like it, probably because of some JavaScript clashes.</p>
<p>One simply trick is to have an inner panel, surrounded by an outer panel. Set the outer panel&#8217;s background color to transparent and let the inner panel have the rounded corner extender.</p>
<p>Like so: (key is the transparent)<br />
<span style="color:#3366ff;"><span style="color:#800000;">.modalPopupOuter</span> <span style="color:#000000;">{</span><br />
<strong><span style="color:#ff0000;">background-color:</span>Transparent;</strong><br />
<span style="color:#ff0000;">padding:</span>10px 10px;<br />
<span style="color:#ff0000;">width:</span>700px;<br />
<span style="color:#ff0000;">height:</span>520px;<br />
<span style="color:#000000;">}</span><br />
<span style="color:#800000;">.modalPopupInner</span> <span style="color:#000000;">{</span><br />
<span style="color:#ff0000;">background-color:</span>#ffffff;<br />
<span style="color:#ff0000;">padding:</span> 10px;<br />
<span style="color:#ff0000;">width:</span>700px;<br />
<span style="color:#ff0000;">height:</span>500px;<br />
<span style="color:#000000;">}</span></span><br />
The screen shot below doesn&#8217;t have rounded corners, but it has a stand-out &#8220;X&#8221; on the top-right corner, that&#8217;s achieved by having the transparent outer panel, obviously.<br />
<a href="http://wikiaspnet.files.wordpress.com/2008/07/modal2.jpg"><img class="alignnone size-full wp-image-82" src="http://wikiaspnet.files.wordpress.com/2008/07/modal2.jpg?w=696&#038;h=402" alt="" width="696" height="402" /></a><a href="http://wikiaspnet.files.wordpress.com/2008/07/modal2.jpg"><br />
</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wikiaspnet.wordpress.com/79/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wikiaspnet.wordpress.com/79/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wikiaspnet.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wikiaspnet.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wikiaspnet.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wikiaspnet.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=79&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2008/07/01/modal-popup-with-rounded-corners/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>

		<media:content url="http://wikiaspnet.files.wordpress.com/2008/07/modal2.jpg" medium="image" />
	</item>
		<item>
		<title>ScrollBar styles</title>
		<link>http://wikiaspnet.wordpress.com/2008/07/01/scrollbar-styles/</link>
		<comments>http://wikiaspnet.wordpress.com/2008/07/01/scrollbar-styles/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 01:04:09 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/?p=77</guid>
		<description><![CDATA[Apparently scroll bar styles are only supported by IE. Diddn&#8217;t realize this until today. Regardless, I think it&#8217;s a pretty cool thing to have and Firefox and Safari will eventually adopt it. Here&#8217;s a site to generate the CSS codes. It&#8217;s pretty darn good&#8230; http://www.spectrum-research.com/V2/projects_scrollbar_generator.asp http://www.spectrum-research.com/V2/generators/scrollbar.asp<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=77&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Apparently scroll bar styles are only supported by IE. Diddn&#8217;t realize this until today.</p>
<p>Regardless, I think it&#8217;s a pretty cool thing to have and Firefox and Safari will eventually adopt it. Here&#8217;s a site to generate the CSS codes. It&#8217;s pretty darn good&#8230;</p>
<p><a href="http://www.spectrum-research.com/V2/projects_scrollbar_generator.asp" target="_blank">http://www.spectrum-research.com/V2/projects_scrollbar_generator.asp</a></p>
<p><a href="http://www.spectrum-research.com/V2/generators/scrollbar.asp" target="_blank">http://www.spectrum-research.com/V2/generators/scrollbar.asp</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wikiaspnet.wordpress.com/77/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wikiaspnet.wordpress.com/77/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wikiaspnet.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wikiaspnet.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wikiaspnet.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wikiaspnet.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&amp;blog=3120846&amp;post=77&amp;subd=wikiaspnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2008/07/01/scrollbar-styles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>
	</item>
	</channel>
</rss>
