<?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/"
	>

<channel>
	<title>UC&#039;s Corner &#187; asp.net</title>
	<atom:link href="http://yussi.nl/index.php/category/asp-net/feed" rel="self" type="application/rss+xml" />
	<link>http://yussi.nl</link>
	<description>Yussi Ariefiyono</description>
	<lastBuildDate>Fri, 25 Jun 2010 12:57:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>List of SendKeys</title>
		<link>http://yussi.nl/index.php/list-of-sendkeys.html</link>
		<comments>http://yussi.nl/index.php/list-of-sendkeys.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 09:40:50 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[vba]]></category>
		<category><![CDATA[sendkeys]]></category>
		<category><![CDATA[vb]]></category>

		<guid isPermaLink="false">http://yussi.nl/?p=53</guid>
		<description><![CDATA[


Key
Code


BACKSPACE
{BACKSPACE}, {BS}, or {BKSP}


BREAK
{BREAK}


CAPS LOCK
{CAPSLOCK}


DEL or DELETE
{DELETE} or {DEL}


DOWN ARROW
{DOWN}


END
{END}


ENTER
{ENTER}or ~


ESC
{ESC}


HELP
{HELP}


HOME
{HOME}


INS or INSERT
{INSERT} or {INS}


LEFT ARROW
{LEFT}


NUM LOCK
{NUMLOCK}


PAGE DOWN
{PGDN}


PAGE UP
{PGUP}


PRINT SCREEN
{PRTSC} (reserved for future use)


RIGHT ARROW
{RIGHT}


SCROLL LOCK
{SCROLLLOCK}


TAB
{TAB}


UP ARROW
{UP}


F1
{F1}


F2
{F2}


F3
{F3}


F4
{F4}


F5
{F5}


F6
{F6}


F7
{F7}


F8
{F8}


F9
{F9}


F10
{F10}


F11
{F11}


F12
{F12}


F13
{F13}


F14
{F14}


F15
{F15}


F16
{F16}


Keypad add
{ADD}


Keypad subtract
{SUBTRACT}


Keypad multiply
{MULTIPLY}


Keypad divide
{DIVIDE}






Key
Code


SHIFT
+


CTRL
^


ALT
%



]]></description>
			<content:encoded><![CDATA[<table style="height: 1074px;" width="373">
<tbody>
<tr valign="top">
<th width="50%">Key</th>
<th width="50%">Code</th>
</tr>
<tr valign="top">
<td width="50%">BACKSPACE</td>
<td width="50%">{BACKSPACE}, {BS}, or {BKSP}</td>
</tr>
<tr valign="top">
<td width="50%">BREAK</td>
<td width="50%">{BREAK}</td>
</tr>
<tr valign="top">
<td width="50%">CAPS LOCK</td>
<td width="50%">{CAPSLOCK}</td>
</tr>
<tr valign="top">
<td width="50%">DEL or DELETE</td>
<td width="50%">{DELETE} or {DEL}</td>
</tr>
<tr valign="top">
<td width="50%">DOWN ARROW</td>
<td width="50%">{DOWN}</td>
</tr>
<tr valign="top">
<td width="50%">END</td>
<td width="50%">{END}</td>
</tr>
<tr valign="top">
<td width="50%">ENTER</td>
<td width="50%">{ENTER}or ~</td>
</tr>
<tr valign="top">
<td width="50%">ESC</td>
<td width="50%">{ESC}</td>
</tr>
<tr valign="top">
<td width="50%">HELP</td>
<td width="50%">{HELP}</td>
</tr>
<tr valign="top">
<td width="50%">HOME</td>
<td width="50%">{HOME}</td>
</tr>
<tr valign="top">
<td width="50%">INS or INSERT</td>
<td width="50%">{INSERT} or {INS}</td>
</tr>
<tr valign="top">
<td width="50%">LEFT ARROW</td>
<td width="50%">{LEFT}</td>
</tr>
<tr valign="top">
<td width="50%">NUM LOCK</td>
<td width="50%">{NUMLOCK}</td>
</tr>
<tr valign="top">
<td width="50%">PAGE DOWN</td>
<td width="50%">{PGDN}</td>
</tr>
<tr valign="top">
<td width="50%">PAGE UP</td>
<td width="50%">{PGUP}</td>
</tr>
<tr valign="top">
<td width="50%">PRINT SCREEN</td>
<td width="50%">{PRTSC} (reserved for future use)</td>
</tr>
<tr valign="top">
<td width="50%">RIGHT ARROW</td>
<td width="50%">{RIGHT}</td>
</tr>
<tr valign="top">
<td width="50%">SCROLL LOCK</td>
<td width="50%">{SCROLLLOCK}</td>
</tr>
<tr valign="top">
<td width="50%">TAB</td>
<td width="50%">{TAB}</td>
</tr>
<tr valign="top">
<td width="50%">UP ARROW</td>
<td width="50%">{UP}</td>
</tr>
<tr valign="top">
<td width="50%">F1</td>
<td width="50%">{F1}</td>
</tr>
<tr valign="top">
<td width="50%">F2</td>
<td width="50%">{F2}</td>
</tr>
<tr valign="top">
<td width="50%">F3</td>
<td width="50%">{F3}</td>
</tr>
<tr valign="top">
<td width="50%">F4</td>
<td width="50%">{F4}</td>
</tr>
<tr valign="top">
<td width="50%">F5</td>
<td width="50%">{F5}</td>
</tr>
<tr valign="top">
<td width="50%">F6</td>
<td width="50%">{F6}</td>
</tr>
<tr valign="top">
<td width="50%">F7</td>
<td width="50%">{F7}</td>
</tr>
<tr valign="top">
<td width="50%">F8</td>
<td width="50%">{F8}</td>
</tr>
<tr valign="top">
<td width="50%">F9</td>
<td width="50%">{F9}</td>
</tr>
<tr valign="top">
<td width="50%">F10</td>
<td width="50%">{F10}</td>
</tr>
<tr valign="top">
<td width="50%">F11</td>
<td width="50%">{F11}</td>
</tr>
<tr valign="top">
<td width="50%">F12</td>
<td width="50%">{F12}</td>
</tr>
<tr valign="top">
<td width="50%">F13</td>
<td width="50%">{F13}</td>
</tr>
<tr valign="top">
<td width="50%">F14</td>
<td width="50%">{F14}</td>
</tr>
<tr valign="top">
<td width="50%">F15</td>
<td width="50%">{F15}</td>
</tr>
<tr valign="top">
<td width="50%">F16</td>
<td width="50%">{F16}</td>
</tr>
<tr valign="top">
<td width="50%">Keypad add</td>
<td width="50%">{ADD}</td>
</tr>
<tr valign="top">
<td width="50%">Keypad subtract</td>
<td width="50%">{SUBTRACT}</td>
</tr>
<tr valign="top">
<td width="50%">Keypad multiply</td>
<td width="50%">{MULTIPLY}</td>
</tr>
<tr valign="top">
<td width="50%">Keypad divide</td>
<td width="50%">{DIVIDE}</td>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr valign="top">
<th width="50%">Key</th>
<th width="50%">Code</th>
</tr>
<tr valign="top">
<td width="50%">SHIFT</td>
<td width="50%">+</td>
</tr>
<tr valign="top">
<td width="50%">CTRL</td>
<td width="50%">^</td>
</tr>
<tr valign="top">
<td width="50%">ALT</td>
<td width="50%">%</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/list-of-sendkeys.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>modify Visible function in repeater of gridview control</title>
		<link>http://yussi.nl/index.php/modify-visible-function-in-repeater-of-gridview-control.html</link>
		<comments>http://yussi.nl/index.php/modify-visible-function-in-repeater-of-gridview-control.html#comments</comments>
		<pubDate>Thu, 31 Dec 2009 12:18:00 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[gridview]]></category>
		<category><![CDATA[repeater]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">/post/modify-Visible-function-in-repeater-of-gridview-control.aspx</guid>
		<description><![CDATA[Problem:
display label with the text full if the current field equal to zero in repeater or gridview
Solution:
&#60;asp:Label ID=&#8221;Label1&#8243; runat=&#8221;server&#8221; Text=&#8221;Full&#8221; ForeColor=&#8221;Red&#8221; Visible=&#8217;&#60;%# Convert.ToBoolean(Eval(&#8220;name of your field&#8221;).ToString().Equals(&#8220;0&#8243;)? &#8220;true&#8221;:&#8221;false&#8221;) %&#62;&#8217;&#62;
]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong><br />
display label with the text full if the current field equal to zero in repeater or gridview</p>
<p><strong>Solution:</strong><br />
&lt;asp:Label ID=&#8221;Label1&#8243; runat=&#8221;server&#8221; Text=&#8221;Full&#8221; ForeColor=&#8221;Red&#8221; Visible=&#8217;&lt;%# Convert.ToBoolean(Eval(&#8220;name of your field&#8221;).ToString().Equals(&#8220;0&#8243;)? &#8220;true&#8221;:&#8221;false&#8221;) %&gt;&#8217;&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/modify-visible-function-in-repeater-of-gridview-control.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>type of requesturl aspx</title>
		<link>http://yussi.nl/index.php/type-of-requesturl-aspx.html</link>
		<comments>http://yussi.nl/index.php/type-of-requesturl-aspx.html#comments</comments>
		<pubDate>Wed, 02 Sep 2009 11:05:00 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">/post/type-of-requesturl-aspx.aspx</guid>
		<description><![CDATA[
Request.Url.Host = asp.net.do
Request.Url.ToString = http://asp.net.do/test/requesturl.aspx
Request.ApplicationPath.ToString = /test
Request.RawUrl.ToString = /test/requesturl.aspx
Page.TemplateSourceDirectory = /test
Request.Url.AbsoluteUri = http://asp.net.do/test/requesturl.aspx


Taken from : http://asp.net.do/test/requesturl.aspx
]]></description>
			<content:encoded><![CDATA[<p>
<span style="display: inline-block; height: 19px; width: 438px">Request.Url.Host = asp.net.do</span><br />
<span style="display: inline-block; height: 19px; width: 438px">Request.Url.ToString = http://asp.net.do/test/requesturl.aspx</span><br />
<span style="display: inline-block; height: 19px; width: 438px">Request.ApplicationPath.ToString = /test</span><br />
<span style="display: inline-block; height: 19px; width: 438px">Request.RawUrl.ToString = /test/requesturl.aspx</span><br />
<span style="display: inline-block; height: 19px; width: 438px">Page.TemplateSourceDirectory = /test</span><br />
<span style="display: inline-block; height: 19px; width: 438px">Request.Url.AbsoluteUri = http://asp.net.do/test/requesturl.aspx</span>
</p>
<p>
Taken from : <a href="http://asp.net.do/test/requesturl.aspx" target="_blank">http://asp.net.do/test/requesturl.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/type-of-requesturl-aspx.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>embedding flash in server control</title>
		<link>http://yussi.nl/index.php/embedding-flash-in-server-control.html</link>
		<comments>http://yussi.nl/index.php/embedding-flash-in-server-control.html#comments</comments>
		<pubDate>Mon, 29 Jun 2009 14:10:00 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">/post/embedding-flash-in-server-control-aspx.aspx</guid>
		<description><![CDATA[
Problem:


When you got your website (aspx website), especially when you already put url rewriting, you want to embed flash ( doesnt matter if its swf or flv)
You need to have relative path, starting with (&#34;~/&#34; ) in the url.


Solution: 
you can put the code in your server control, so it will be easier to integrate
FlashPlayer.ascx
&#60;object&#160; <a href="http://yussi.nl/index.php/embedding-flash-in-server-control.html" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>
<strong>Problem:</strong>
</p>
<p>
When you got your website (aspx website), especially when you already put url rewriting, you want to embed flash ( doesnt matter if its swf or flv)<br />
You need to have relative path, starting with (<strong>&quot;~/&quot;</strong> ) in the url.
</p>
<p>
<strong>Solution: </strong><br />
you can put the code in your server control, so it will be easier to integrate</p>
<p><strong>FlashPlayer.ascx</strong><br />
<em>&lt;object&nbsp; classid=&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0&quot; width=&quot;745&quot; height=&quot;181&quot; id=&quot;header&quot; align=&quot;middle&quot;&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;param name=&quot;allowScriptAccess&quot; value=&quot;sameDomain&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;param name=&quot;allowFullScreen&quot; value=&quot;false&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;param&nbsp; name=&quot;movie&quot; value=&#39;&lt;asp:Literal ID=&quot;Literal1&quot; runat=&quot;server&quot;&gt;&lt;/asp:Literal&gt;&#39; /&gt;&lt;param name=&quot;quality&quot; value=&quot;high&quot; /&gt;&lt;param name=&quot;bgcolor&quot; value=&quot;#ffffff&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;embed src=&#39;&lt;asp:Literal ID=&quot;Literal2&quot; runat=&quot;server&quot;&gt;&lt;/asp:Literal&gt;&#39; quality=&quot;high&quot; bgcolor=&quot;#ffffff&quot; width=&quot;745&quot; height=&quot;181&quot; name=&quot;header&quot; align=&quot;middle&quot; allowScriptAccess=&quot;sameDomain&quot; allowFullScreen=&quot;false&quot; type=&quot;application/x-shockwave-flash&quot; pluginspage=&quot;http://www.adobe.com/go/getflashplayer_nl&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/object&gt;</em>
</p>
<p>
and in the <strong>FlashPlayer.ascx.cs</strong>
</p>
<p>
&nbsp; protected void Page_Load(object sender, EventArgs e)<br />
&nbsp;&nbsp;&nbsp; {</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Literal1.Text = Page.ResolveUrl(&quot;<strong>~/</strong>yourpath&quot;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Literal2.Text = Page.ResolveUrl(&quot;<strong>~/</strong>yourpath&quot;);<br />
&nbsp;&nbsp; }
</p>
<p>
and you will got flash playing! enjoy ^_^
</p>
<p>
================================
</p>
<p>
thank to <a href="http://www.linkedin.com/in/marcneeft" target="_blank">Marc Neeft</a>, hereby his input :
</p>
<p>
<span class="text">it would be even more powerful when you add the movieUrl, width and height as properties of the usercontrol:</p>
<p>private string movieUrl = String.empty;<br />
<br />
private int movieWidth = 0;<br />
<br />
private int movieHeight = 0;</p>
<p>protected void Page_Load(object sender, EventArgs e)<br />
<br />
{<br />
<br />
// todo: check if url, width and height are set, if not, throw exception</p>
<p>Literal1.Text = Page.ResolveUrl(movieUrl);<br />
<br />
Literal2.Text = Page.ResolveUrl(movieUrl);<br />
<br />
Literal3.Text = movieWidth;<br />
<br />
Literal4.Text = movieHeight;<br />
<br />
} </p>
<p>public string MovieUrl<br />
<br />
{<br />
<br />
get { return movieUrl; }<br />
<br />
set { movieUrl = value; }<br />
<br />
}</p>
<p>public string MovieWidth<br />
<br />
{<br />
<br />
get { return movieWidth; }<br />
<br />
set { movieWidth = value; }<br />
<br />
}</p>
<p>public int MovieHeight<br />
<br />
{<br />
<br />
get { return movieHeight; }<br />
<br />
set { movieHeight = value; }<br />
<br />
}</p>
<p>Of course you need to add the 2 extra literals and the errorchecking yourself but you get the general idea.</p>
<p>&lt;uc:FlashPlayer id=&quot;Flashplayer&quot; runat=&quot;server&quot; MovieUrl=&quot;~/flash</span><br />
<span class="text">/movie.flv</span><br />
<span class="text">&quot; MovieWidth=&quot;300&quot; MovieHeight=&quot;150&quot; /&gt;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/embedding-flash-in-server-control.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Repeater inside repeater asp net</title>
		<link>http://yussi.nl/index.php/repeater-inside-repeater-asp-net.html</link>
		<comments>http://yussi.nl/index.php/repeater-inside-repeater-asp-net.html#comments</comments>
		<pubDate>Tue, 09 Jun 2009 17:28:00 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[repeater]]></category>

		<guid isPermaLink="false">/post/Repeater-inside-repeater-asp-net.aspx</guid>
		<description><![CDATA[
Problem :


Putting repeater inside repeater and take ID of parent repeater to bind the&#160; datasourse.


Solution: 
hereby the example of code:
in .aspx
&#60;asp:Repeater ID=&#34;Repeater2&#34; runat=&#34;server&#34; 
&#160;&#160;&#160; onitemdatabound=&#34;Repeater2_ItemDataBound&#34;&#62;
&#160;&#160;&#160; &#60;ItemTemplate&#62;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;asp:Label ID=&#34;Label2&#34; runat=&#34;server&#34; Text=&#39;&#60;%# Eval(&#34;Tag&#34;) %&#62;&#39;&#62;&#60;/asp:Label&#62;&#60;/asp:HyperLink&#62;
&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;asp:Repeater ID=&#34;Repeater1&#34; runat=&#34;server&#34;&#62; 
&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;ItemTemplate&#62;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (&#60;asp:Label ID=&#34;CountID&#34; runat=&#34;server&#34; Text=&#39;&#60;%# Eval(&#34;Expr1&#34;) %&#62;&#39;&#62;&#60;/asp:Label&#62;)
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/ItemTemplate&#62;
&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/asp:Repeater&#62;
&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;br /&#62;
&#160;&#160;&#160; &#60;/ItemTemplate&#62;
&#60;/asp:Repeater&#62;


in .aspx cs 


private DataTable getDataTableforRepeater2(int TagID)
&#160;&#160;&#160; {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <a href="http://yussi.nl/index.php/repeater-inside-repeater-asp-net.html" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>
<strong>Problem :</strong>
</p>
<p>
Putting repeater inside repeater and take ID of parent repeater to bind the&nbsp; datasourse.
</p>
<p>
<strong>Solution: </strong><br />
hereby the example of code:</p>
<p><strong>in .aspx</strong><br />
&lt;asp:Repeater ID=&quot;<strong>Repeater2</strong>&quot; runat=&quot;server&quot; <br />
&nbsp;&nbsp;&nbsp; onitemdatabound=&quot;Repeater2_ItemDataBound&quot;&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;ItemTemplate&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;asp:Label ID=&quot;Label2&quot; runat=&quot;server&quot; Text=&#39;&lt;%# Eval(&quot;Tag&quot;) %&gt;&#39;&gt;&lt;/asp:Label&gt;&lt;/asp:HyperLink&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;asp:Repeater ID=&quot;<strong>Repeater1</strong>&quot; runat=&quot;server&quot;&gt; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ItemTemplate&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (&lt;asp:Label ID=&quot;CountID&quot; runat=&quot;server&quot; Text=&#39;&lt;%# Eval(&quot;Expr1&quot;) %&gt;&#39;&gt;&lt;/asp:Label&gt;)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ItemTemplate&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/asp:Repeater&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/ItemTemplate&gt;<br />
&lt;/asp:Repeater&gt;
</p>
<p>
<strong>in .aspx cs </strong>
</p>
<p>
private DataTable getDataTableforRepeater2(int TagID)<br />
&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SqlConnection conn = new SqlConnection();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; conn.ConnectionString = ConfigurationManager.ConnectionStrings[&quot;yourconnectionName&quot;].ConnectionString;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SqlCommand command = new SqlCommand();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command.Connection = conn;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command.CommandText = &quot;sql command&quot;;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataTable t = new DataTable();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SqlDataAdapter adapter = new SqlDataAdapter();</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; adapter.SelectCommand = command;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; adapter.Fill(t);</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return t;<br />
&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; protected void Repeater2_ItemDataBound(object sender, RepeaterItemEventArgs e)<br />
&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Repeater Repeater1 = e.Item.FindControl(&quot;Repeater1&quot;) as Repeater;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int TagID = int.Parse(DataBinder.Eval(e.Item.DataItem, &quot;TagID&quot;).ToString());</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (TagID != null)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataTable t = getDataTableforRepeater2(TagID);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (t.Rows.Count &gt; 0)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Repeater1.DataSource = t;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Repeater1.DataBind();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/repeater-inside-repeater-asp-net.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>disable remove viewstate aspx</title>
		<link>http://yussi.nl/index.php/disable-remove-viewstate-aspx.html</link>
		<comments>http://yussi.nl/index.php/disable-remove-viewstate-aspx.html#comments</comments>
		<pubDate>Mon, 11 May 2009 14:39:00 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[viewstate]]></category>

		<guid isPermaLink="false">/post/disable-remove-viewstate-aspx.aspx</guid>
		<description><![CDATA[
Problem:
Annoying LONG viewstate


&#60;input type=&#34;hidden&#34; name=&#34;__VIEWSTATE&#34; id=&#34;__VIEWSTATE&#34; value=&#34;/wEPDwULLTEyMjcx
NDEzNzQPZBYCZg9kFgQCAQ9kFgICAg8VAh4vV29ybGRHcmFubnkvanMvZGRhY2NvcmRpb24u
anMkL1dvcmxkR3Jhbm55L2pzL2pxdWVyeS0xLjIuMi5wYWNrLmpzZAIDD2QWBAIDDxYCHgtfIUl0
ZW1Db3VudAIKFhRmD2QWBAIBDw8WAh4LTmF2aWdhdGVVcmwFFH4vUGFnaW5hLzIvaG9tZS5h
c3B4ZBYCZg8VAQRIb21lZAIDDxYCHwACARYCAgEPZBYCAgEPDxYCHwEFFX4vUGFnaW5hLzQvc3V
iLTEuYXNweGQWAmYPFQEFc3ViIDFkAgEPZBYEAgEPDxYCHwEFG34vUGFnaW5hLzMvb3JnYW5pc2F0a
WUuYXNweGQWAmYPFQELT3JnYW5pc2F0aWVkAgMPFgIfAAICFgQCAQ9kFgICAQ8PFgIfAQUUfi9QYWdpb
mEvNS9zdWIyLmFzcHhkFgJmDxUBBHN1YjJkAgIPZBYCAgEPDxYCHwEFGH4vUGFnaW5hLzgvbmV3LXBhZ2&#34; /&#62;


LOL.. long huh 


Solution:
put this code in your .cs page



//overwrite the&#160; SavePageStateToPersistenceMedium and LoadPageStateFromPersistenceMedium
protected override void SavePageStateToPersistenceMedium(object viewState)
&#160;&#160;&#160; {
&#160;&#160;&#160; }
&#160;&#160;&#160; protected override object LoadPageStateFromPersistenceMedium()
&#160;&#160;&#160; {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; return null;
&#160;&#160;&#160; }



// Remove completely after rendering html code 
&#160;protected override void Render(HtmlTextWriter output)
&#160;&#160;&#160; {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder();
&#160;&#160;&#160;&#160;&#160;&#160;&#160; System.IO.StringWriter stringWriter = <a href="http://yussi.nl/index.php/disable-remove-viewstate-aspx.html" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>
<strong>Problem:</strong><br />
Annoying LONG viewstate
</p>
<pre>
<em>&lt;<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">&quot;hidden&quot; </span><span class="attribute-name">name</span>=<span class="attribute-value">&quot;__VIEWSTATE&quot; </span><span class="attribute-name">id</span>=<span class="attribute-value">&quot;__VIEWSTATE&quot; </span><span class="attribute-name">value</span>=<span class="attribute-value">&quot;/wEPDwULLTEyMjcx
NDEzNzQPZBYCZg9kFgQCAQ9kFgICAg8VAh4vV29ybGRHcmFubnkvanMvZGRhY2NvcmRpb24u
anMkL1dvcmxkR3Jhbm55L2pzL2pxdWVyeS0xLjIuMi5wYWNrLmpzZAIDD2QWBAIDDxYCHgtfIUl0
ZW1Db3VudAIKFhRmD2QWBAIBDw8WAh4LTmF2aWdhdGVVcmwFFH4vUGFnaW5hLzIvaG9tZS5h
c3B4ZBYCZg8VAQRIb21lZAIDDxYCHwACARYCAgEPZBYCAgEPDxYCHwEFFX4vUGFnaW5hLzQvc3V
iLTEuYXNweGQWAmYPFQEFc3ViIDFkAgEPZBYEAgEPDxYCHwEFG34vUGFnaW5hLzMvb3JnYW5pc2F0a
WUuYXNweGQWAmYPFQELT3JnYW5pc2F0aWVkAgMPFgIfAAICFgQCAQ9kFgICAQ8PFgIfAQUUfi9QYWdpb
mEvNS9zdWIyLmFzcHhkFgJmDxUBBHN1YjJkAgIPZBYCAgEPDxYCHwEFGH4vUGFnaW5hLzgvbmV3LXBhZ2&quot; </span><span class="error"><span class="attribute-name">/</span></span>&gt;</em>
</pre>
<p>
LOL.. long huh <img src='http://yussi.nl/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />
</p>
<p>
<strong>Solution:</strong><br />
put this code in your .cs page<br />

</p>
<p>
<em>//overwrite the&nbsp; </em><em>SavePageStateToPersistenceMedium</em> and <em>LoadPageStateFromPersistenceMedium</em><br />
<em>protected override void SavePageStateToPersistenceMedium(object viewState)<br />
&nbsp;&nbsp;&nbsp; {</p>
<p>&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;&nbsp;&nbsp; protected override object LoadPageStateFromPersistenceMedium()<br />
&nbsp;&nbsp;&nbsp; {</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return null;</p>
<p>&nbsp;&nbsp;&nbsp; }</em>
</p>
<p>
<em><br />
// Remove completely after rendering html code <br />
&nbsp;protected override void Render(HtmlTextWriter output)<br />
&nbsp;&nbsp;&nbsp; {</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder();</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.IO.StringWriter stringWriter = new System.IO.StringWriter(stringBuilder);</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HtmlTextWriter htmlWriter = new HtmlTextWriter(stringWriter);</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (Control ctrl in this.Controls)</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ctrl.RenderControl(htmlWriter);</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String html = stringBuilder.Replace(&quot;/&gt;&quot;, &quot;&gt;&quot;).ToString();</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int intViewStart = html.IndexOf(&quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;__VIEWSTATE\&quot;&quot;);</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int intViewFinish = html.IndexOf(&quot;&gt;&quot;, intViewStart) + 1;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string strViewTag = html.Substring(intViewStart, intViewFinish &#8211; intViewStart);</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.Diagnostics.Debug.WriteLine(strViewTag);</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html = html.Replace(strViewTag, &quot;&quot;);</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; output.Write(html);</p>
<p>&nbsp;&nbsp;&nbsp; }</em>
</p>
<p>
and WALA! its gone!!</p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/disable-remove-viewstate-aspx.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>find value in repeater asp net</title>
		<link>http://yussi.nl/index.php/find-value-in-repeater-asp-net.html</link>
		<comments>http://yussi.nl/index.php/find-value-in-repeater-asp-net.html#comments</comments>
		<pubDate>Mon, 04 May 2009 17:18:00 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[repeater]]></category>

		<guid isPermaLink="false">/post/Find-value-in-repeater-asp-net.aspx</guid>
		<description><![CDATA[
Problem:
find value in repeater


Solution:
write this code in itemdatabound on your repeater:


protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
&#160;&#160;&#160; {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (e.Item.ItemType == ListItemType.Item &#124;&#124; e.Item.ItemType == ListItemType.AlternatingItem)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Label title = e.Item.FindControl(&#34;Label1&#34;) as Label; // depend on what component you r searching for




&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Response.Write(title.Text);&#160;&#160; // just check&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 
&#160;&#160;&#160;&#160;&#160;&#160;&#160; }
&#160;&#160;&#160; }

]]></description>
			<content:encoded><![CDATA[<p>
<strong>Problem:</strong><br />
find value in repeater
</p>
<p>
<strong>Solution:</strong><br />
write this code in itemdatabound on your repeater:
</p>
<p>
<em>protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)<br />
&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Label title = e.Item.FindControl(&quot;Label1&quot;) as Label; // depend on what component you r searching for<br />
</em>
</p>
<p>
<em><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Write(title.Text);&nbsp;&nbsp; // just check&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; }<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/find-value-in-repeater-asp-net.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing the problems in url rewriting asp.net</title>
		<link>http://yussi.nl/index.php/fixing-the-problems-in-url-rewriting-asp-net.html</link>
		<comments>http://yussi.nl/index.php/fixing-the-problems-in-url-rewriting-asp-net.html#comments</comments>
		<pubDate>Mon, 27 Apr 2009 15:46:00 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[url rewriting]]></category>

		<guid isPermaLink="false">/post/Fixing-the-problems-in-url-rewriting-aspnet.aspx</guid>
		<description><![CDATA[postbacks while using URLRewriter.net

solution:
put this code:
&#60;%@ Register TagPrefix=&#34;url&#34; Namespace=&#34;Intelligencia.UrlRewriter&#34;
Assembly=&#34;Intelligencia.UrlRewriter&#34; %&#62;
and
change &#60;form id=&#34;form1&#34; runat=&#34;server&#34;&#62; to  &#60;url:form runat=&#34;server&#34;&#62;

problem with Google BOT

solution:
add this code in your&#160; App_Browsers/genericmozilla5.browser


&#60;browsers&#62;
&#160; &#60;browser id=&#34;GenericMozilla5&#34; parentID=&#34;Mozilla&#34;&#62;
&#160;&#160;&#160; &#60;identification&#62;
&#160;&#160;&#160;&#160;&#160; &#60;userAgent match=&#34;Mozilla/5\.(?&#39;minor&#39;\d+).*[C&#124;c]ompatible; ?(?&#39;browser&#39;.+); ?\+?(http://.+)\)&#34; /&#62;&#60;/identification&#62;
&#160;&#160;&#160; &#60;capabilities&#62;
&#160;&#160;&#160;&#160;&#160; &#60;capability name=&#34;majorversion&#34; value=&#34;5&#34; /&#62;
&#160;&#160;&#160;&#160;&#160; &#60;capability name=&#34;minorversion&#34; value=&#34;${minor}&#34;/&#62;
&#160;&#160;&#160;&#160;&#160; &#60;capability name=&#34;browser&#34; value=&#34;${browser}&#34; /&#62;
&#160;&#160;&#160;&#160;&#160; &#60;capability name=&#34;Version&#34; value=&#34;5.${minor}&#34; /&#62;
&#160;&#160;&#160;&#160;&#160; &#60;capability name=&#34;activexcontrols&#34; value=&#34;true&#34; /&#62;
&#160;&#160;&#160;&#160;&#160; &#60;capability <a href="http://yussi.nl/index.php/fixing-the-problems-in-url-rewriting-asp-net.html" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<h1><strong>postbacks while using URLRewriter.net</strong></h1>
<p>
<strong>solution:</strong><br />
put this code:<br />
<em>&lt;%@ Register TagPrefix=&quot;url&quot; Namespace=&quot;Intelligencia.UrlRewriter&quot;<br />
Assembly=&quot;Intelligencia.UrlRewriter&quot; %&gt;</em><br />
and<br />
change <em>&lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;</em> to <em> &lt;url:form runat=&quot;server&quot;&gt;</em>
</p>
<h1>problem with Google BOT</h1>
<p>
<strong>solution:</strong><br />
add this code in your&nbsp; App_Browsers/genericmozilla5.browser
</p>
<p>
<em>&lt;browsers&gt;<br />
&nbsp; &lt;browser id=&quot;GenericMozilla5&quot; parentID=&quot;Mozilla&quot;&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;identification&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;userAgent match=&quot;Mozilla/5\.(?&#39;minor&#39;\d+).*[C|c]ompatible; ?(?&#39;browser&#39;.+); ?\+?(http://.+)\)&quot; /&gt;&lt;/identification&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;capabilities&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;majorversion&quot; value=&quot;5&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;minorversion&quot; value=&quot;${minor}&quot;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;browser&quot; value=&quot;${browser}&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;Version&quot; value=&quot;5.${minor}&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;activexcontrols&quot; value=&quot;true&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;backgroundsounds&quot; value=&quot;true&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;cookies&quot; value=&quot;true&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;css1&quot; value=&quot;true&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;css2&quot; value=&quot;true&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;ecmascriptversion&quot; value=&quot;1.2&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;frames&quot; value=&quot;true&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;javaapplets&quot; value=&quot;true&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;javascript&quot; value=&quot;true&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;jscriptversion&quot; value=&quot;5.0&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;supportsCallback&quot; value=&quot;true&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;supportsFileUpload&quot; value=&quot;true&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;supportsMultilineTextBoxDisplay&quot; value=&quot;true&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;supportsMaintainScrollPositionOnPostback&quot; value=&quot;true&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;supportsVCard&quot; value=&quot;true&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;supportsXmlHttp&quot; value=&quot;true&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;tables&quot; value=&quot;true&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;vbscript&quot; value=&quot;true&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;w3cdomversion&quot; value=&quot;1.0&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;xml&quot; value=&quot;true&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;capability name=&quot;tagwriter&quot; value=&quot;System.Web.UI.HtmlTextWriter&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/capabilities&gt;<br />
&nbsp; &lt;/browser&gt;<br />
&lt;/browsers&gt;<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/fixing-the-problems-in-url-rewriting-asp-net.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Simple url rewriting ASP net with URLRewriter.Net</title>
		<link>http://yussi.nl/index.php/simple-url-rewriting-asp-net-with-urlrewriter-net.html</link>
		<comments>http://yussi.nl/index.php/simple-url-rewriting-asp-net-with-urlrewriter-net.html#comments</comments>
		<pubDate>Fri, 24 Apr 2009 13:02:00 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[url rewriting]]></category>

		<guid isPermaLink="false">/post/Simple-url-rewriting-ASP-net-with-URLRewriterNet.aspx</guid>
		<description><![CDATA[
URL Rewriting with URLRewriter.Net 
URL Rewriting has lots of benefits, listing its main benefits


SEO Friendly URL
Secured URL
No need to change bookmark with change in site structure.
	


Before URL Rewriting my URL looks like
http://localhost:2661/URLRewrite2/DynamicPage.aspx?MyTitleId=1

After URL Rewriting URL is changed to 
http://localhost:2661/URLRewrite2/Article/Asp-Net-website-paths-1.aspx

Step-by-Step Explanation
Step 1: Download Binary Files for URLRewriter.Net
Step 2: Add Reference to Binary Files, Right click project <a href="http://yussi.nl/index.php/simple-url-rewriting-asp-net-with-urlrewriter-net.html" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>
<span style="font-weight: bold">URL Rewriting with URLRewriter.Net </span></p>
<p>URL Rewriting has lots of benefits, listing its main benefits
</p>
<ul>
<li>SEO Friendly URL</li>
<li>Secured URL</li>
<li>No need to change bookmark with change in site structure.
	</li>
</ul>
<p>
<span style="font-weight: bold">Before URL Rewriting my URL looks like</span><br />
http://localhost:2661/URLRewrite2/DynamicPage.aspx?MyTitleId=1<br />
<span style="font-weight: bold"><br />
After URL Rewriting URL is changed to </span></p>
<p>http://localhost:2661/URLRewrite2/Article/Asp-Net-website-paths-1.aspx</p>
<p>
<span style="font-weight: bold">Step-by-Step Explanation</span></p>
<p><strong>Step 1</strong>: Download Binary Files for URLRewriter.Net</p>
<p><strong>Step 2:</strong> Add Reference to Binary Files, Right click project &quot;Add Reference&quot; and add binary files.</p>
<p><img src="/image.axd?picture=URL4.JPG" alt="" /></p>
<p><strong>Step 3:</strong> Update Web.Config File to make URLRewriter.Net works.
</p>
<pre class="csharpcode">
<span class="kwrd">&lt;</span><span class="html">configuration</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;</span><span class="html">configSections</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;</span><span class="html">section</span> <span class="attr">name</span><span class="kwrd">=&quot;rewriter&quot;</span>
<span class="attr">requirePermission</span><span class="kwrd">=&quot;false&quot;</span>
<span class="attr">type</span><span class="kwrd">=&quot;Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter&quot;</span> <span class="kwrd">/&gt;</span>
<span class="kwrd">&lt;/</span><span class="html">configSections</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;</span><span class="html">system.web</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;</span><span class="html">httpModules</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;</span><span class="html">add</span> <span class="attr">name</span><span class="kwrd">=&quot;UrlRewriter&quot;</span> <span class="attr">type</span><span class="kwrd">=&quot;Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter&quot;</span> <span class="kwrd">/&gt;</span>
<span class="kwrd">&lt;/</span><span class="html">httpModules</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;/</span><span class="html">system.web</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;</span><span class="html">system.webServer</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;</span><span class="html">modules</span> <span class="attr">runAllManagedModulesForAllRequests</span><span class="kwrd">=&quot;true&quot;</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;</span><span class="html">add</span> <span class="attr">name</span><span class="kwrd">=&quot;UrlRewriter&quot;</span> <span class="attr">type</span><span class="kwrd">=&quot;Intelligencia.UrlRewriter.RewriterHttpModule&quot;</span> <span class="kwrd">/&gt;</span>
<span class="kwrd">&lt;/</span><span class="html">modules</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;</span><span class="html">validation</span> <span class="attr">validateIntegratedModeConfiguration</span><span class="kwrd">=&quot;false&quot;</span> <span class="kwrd">/&gt;</span>
<span class="kwrd">&lt;/</span><span class="html">system.webServer</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;</span><span class="html">rewriter</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;</span><span class="html">rewrite</span> <span class="attr">url</span><span class="kwrd">=&quot;~/Article/(.+)-(.+).aspx&quot;</span> <span class="attr">to</span><span class="kwrd">=&quot;~/DynamicPage.aspx?MyTitleId=$2&quot;</span><span class="kwrd">/&gt;</span>
<span class="kwrd">&lt;/</span><span class="html">rewriter</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;/</span><span class="html">configuration</span><span class="kwrd">&gt;</span>
</pre>
<p><strong>Step 4: </strong>Adding Function to Generate SEO Friendly URL from given Title<br />
<!-- code formatted by http://manoli.net/csharpformat/ --></p>
<pre class="csharpcode">
<span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">string</span> GenerateURL(<span class="kwrd">object</span> Title, <span class="kwrd">object</span> strId)
{
<span class="kwrd">string</span> strTitle = Title.ToString();
<span class="preproc">#region</span> Generate SEO Friendly URL based on Title
<span class="rem">//Trim Start and End Spaces.</span>
strTitle = strTitle.Trim();
<span class="rem">//Trim &quot;-&quot; Hyphen</span>
strTitle = strTitle.Trim(<span class="str">&#39;-&#39;</span>);
strTitle = strTitle.ToLower();
<span class="kwrd">char</span>[] chars = <span class="str">@&quot;$%#@!*?;:~`+=()[]{}|\&#39;&lt;&gt;,/^&amp;&quot;</span><span class="str">&quot;.&quot;</span>.ToCharArray();
strTitle = strTitle.Replace(<span class="str">&quot;c#&quot;</span>, <span class="str">&quot;C-Sharp&quot;</span>);
strTitle = strTitle.Replace(<span class="str">&quot;vb.net&quot;</span>, <span class="str">&quot;VB-Net&quot;</span>);
strTitle = strTitle.Replace(<span class="str">&quot;asp.net&quot;</span>, <span class="str">&quot;Asp-Net&quot;</span>);
<span class="rem">//Replace . with - hyphen</span>
strTitle = strTitle.Replace(<span class="str">&quot;.&quot;</span>, <span class="str">&quot;-&quot;</span>);
<span class="rem">//Replace Special-Characters</span>
<span class="kwrd">for</span> (<span class="kwrd">int</span> i = 0; i &lt; chars.Length; i++)
{
<span class="kwrd">string</span> strChar = chars.GetValue(i).ToString();
<span class="kwrd">if</span> (strTitle.Contains(strChar))
{
strTitle = strTitle.Replace(strChar, <span class="kwrd">string</span>.Empty);
}
}
<span class="rem">//Replace all spaces with one &quot;-&quot; hyphen</span>
strTitle = strTitle.Replace(<span class="str">&quot; &quot;</span>, <span class="str">&quot;-&quot;</span>);
<span class="rem">//Replace multiple &quot;-&quot; hyphen with single &quot;-&quot; hyphen.</span>
strTitle = strTitle.Replace(<span class="str">&quot;--&quot;</span>, <span class="str">&quot;-&quot;</span>);
strTitle = strTitle.Replace(<span class="str">&quot;---&quot;</span>, <span class="str">&quot;-&quot;</span>);
strTitle = strTitle.Replace(<span class="str">&quot;----&quot;</span>, <span class="str">&quot;-&quot;</span>);
strTitle = strTitle.Replace(<span class="str">&quot;-----&quot;</span>, <span class="str">&quot;-&quot;</span>);
strTitle = strTitle.Replace(<span class="str">&quot;----&quot;</span>, <span class="str">&quot;-&quot;</span>);
strTitle = strTitle.Replace(<span class="str">&quot;---&quot;</span>, <span class="str">&quot;-&quot;</span>);
strTitle = strTitle.Replace(<span class="str">&quot;--&quot;</span>, <span class="str">&quot;-&quot;</span>);
<span class="rem">//Run the code again...</span>
<span class="rem">//Trim Start and End Spaces.</span>
strTitle = strTitle.Trim();
<span class="rem">//Trim &quot;-&quot; Hyphen</span>
strTitle = strTitle.Trim(<span class="str">&#39;-&#39;</span>);
<span class="preproc">#endregion</span>
<span class="rem">//Append ID at the end of SEO Friendly URL</span>
strTitle = <span class="str">&quot;~/Article/&quot;</span> + strTitle + <span class="str">&quot;-&quot;</span> + strId + <span class="str">&quot;.aspx&quot;</span>;
<span class="kwrd">return</span> strTitle;
}
</pre>
<p><strong>Step 5:</strong> Changing DataBinder.Eval Function in .Aspx Page to reflect changes in URL of Grid.<br />
Note: Learn more about <a href="http://dotnetguts.blogspot.com/2006/12/databindereval-method.html" target="_new">DataBinder.Eval Function</a></p>
<p><!-- code formatted by http://manoli.net/csharpformat/ --></p>
<pre class="csharpcode">
<span class="kwrd">&lt;%#GenerateURL(DataBinder.Eval(Container.DataItem,&quot;Title&quot;),DataBinder.Eval(Container.DataItem,&quot;Id&quot;))%&gt;</span>
<a href="http://urlrewriter.net/index.php/support/configuration" target="_blank"></a>
</pre>
<p>
Sources :
</p>
<ol>
<li><a href="http://dotnetguts.blogspot.com/2008/07/url-rewriting-with-urlrewriternet.html" target="_blank">http://dotnetguts.blogspot.com/2008/07/url-rewriting-with-urlrewriternet.html</a></li>
<li><a href="http://en.wikipedia.org/wiki/Regular_expression" target="_blank">http://en.wikipedia.org/wiki/Regular_expression</a></li>
<li><a href="http://urlrewriter.net/index.php/support/configuration" target="_blank">http://urlrewriter.net/index.php/support/configuration</a> 
	</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/simple-url-rewriting-asp-net-with-urlrewriter-net.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>YAF forum multiple boards stand alone</title>
		<link>http://yussi.nl/index.php/yaf-forum-multiple-boards-stand-alone.html</link>
		<comments>http://yussi.nl/index.php/yaf-forum-multiple-boards-stand-alone.html#comments</comments>
		<pubDate>Mon, 20 Apr 2009 17:07:00 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[yaf forum]]></category>

		<guid isPermaLink="false">/post/YAF-forum-multiple-boards-stand-alone.aspx</guid>
		<description><![CDATA[
Problem:
you want 2 diffrent forum with 1 login
Solution:
YAF is just a control so call it using the boardid as a parameter. For
instance, if you look at the default.aspx it has code that looks like
this:
&#60;form runat=&#34;server&#34; enctype=&#34;multipart/form-data&#34;&#62;
&#60;yaf:forum runat=&#34;server&#34;/&#62;
&#60;/form&#62;
Now
go into admin and create a new board (Boards) and make note of the ID.
Make another file called &#34;secondboard.aspx&#34; <a href="http://yussi.nl/index.php/yaf-forum-multiple-boards-stand-alone.html" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>
<strong>Problem:</strong><br />
you want 2 diffrent forum with 1 login</p>
<p><strong>Solution:</strong><br />
YAF is just a control so call it using the boardid as a parameter. For<br />
instance, if you look at the default.aspx it has code that looks like<br />
this:</p>
<p>&lt;form runat=&quot;server&quot; enctype=&quot;multipart/form-data&quot;&gt;<br />
&lt;yaf:forum runat=&quot;server&quot;/&gt;<br />
&lt;/form&gt;</p>
<p>Now<br />
go into admin and create a new board (Boards) and make note of the ID.<br />
Make another file called &quot;secondboard.aspx&quot; (or whatever) and change<br />
call to YAF to include the boardid #:</p>
<p>&lt;form runat=&quot;server&quot; enctype=&quot;multipart/form-data&quot;&gt;<br />
&lt;yaf:forum boardid=&quot;2&quot; runat=&quot;server&quot;/&gt;<br />
&lt;/form&gt;</p>
<p>(Boardid<br />
is whatever you want&#8230; you could have it reference a million different<br />
boards if you create them &#8212; categoryid is also supported.)</p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/yaf-forum-multiple-boards-stand-alone.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
