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

<channel>
	<title>Barking Larry</title>
	<atom:link href="http://barkinglarry.com/wordpress/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://barkinglarry.com/wordpress</link>
	<description>My beginnings in Android web development</description>
	<pubDate>Thu, 30 Apr 2009 14:41:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ASP.NET 3.5 ListView and Databinding a DropdownList inside InsertTemplate</title>
		<link>http://barkinglarry.com/wordpress/?p=50</link>
		<comments>http://barkinglarry.com/wordpress/?p=50#comments</comments>
		<pubDate>Thu, 30 Apr 2009 14:38:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[3.5]]></category>

		<category><![CDATA[ASP.NET]]></category>

		<category><![CDATA[DropDownList]]></category>

		<category><![CDATA[InsertTemplate]]></category>

		<category><![CDATA[ListView]]></category>

		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://barkinglarry.com/wordpress/?p=50</guid>
		<description><![CDATA[


What I was finding for binding a dropdown list in an insertemplate for a 3.5 Listview has been either erroneous or clunky. First the issue:
When triggering an Insert Template to appear, there is no event that occurs as the form is rendered, like the the Update form. So any dropdown list, pretty much needs to [...]]]></description>
			<content:encoded><![CDATA[<div style="float:right;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "pub-1213643583738263";
google_ad_slot = "8050392339";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p>What I was finding for binding a dropdown list in an insertemplate for a 3.5 Listview has been either erroneous or clunky. First the issue:</p>
<p>When triggering an Insert Template to appear, there is no event that occurs as the form is rendered, like the the Update form. So any dropdown list, pretty much needs to be filled before fact. Or not&#8230;..</p>
<p>I created a simple web control inherited from the dropdown, and have it load from a datasource on it&#8217;s load. With a couple of checks, it loads once, and doesn&#8217;t repeat the databind. While the code I  put here probably won&#8217;t work exactly as is outside of my app&#8217;s context (custom object collections are retrieved a bound) You&#8217;ll get the idea. Once you create the control, simply put it in the template. No additional work needed!</p>
<pre><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">
Imports</span></span></span></span><span style="font-size: x-small;"> System</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">
Imports</span></span></span></span><span style="font-size: x-small;"> System.Collections.Generic</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">
Imports</span></span></span></span><span style="font-size: x-small;">System.ComponentModel</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">
Imports</span></span></span></span><span style="font-size: x-small;"> System.Text</span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Imports</span></span></span></span><span style="font-size: x-small;"> System.Web</span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Imports</span></span></span></span><span style="font-size: x-small;"> System.Web.UI</span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Imports</span></span></span></span><span style="font-size: x-small;">System.Web.UI.WebControls  <span style="font-size: x-small;">&lt;DefaultProperty(</span></span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"Text"</span></span><span style="font-size: x-small;">), ToolboxData(</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"&lt;{0}:ServerControl1 runat=server&gt;&lt;/{0}:ServerControl1&gt;"</span></span><span style="font-size: x-small;">)&gt; _</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">
Public</span></span></span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Class</span></span><span style="font-size: x-small;">TypeDropDownList<span style="font-size: x-small;">
</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Inherits</span></span><span style="font-size: x-small;">DropDownList<span style="font-size: x-small;">&lt;Bindable(</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">True</span></span><span style="font-size: x-small;">), Category(</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"Data"</span></span><span style="font-size: x-small;">), DefaultValue(</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">""</span></span><span style="font-size: x-small;">), Localizable(</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">True</span></span><span style="font-size: x-small;">)&gt; </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Property</span></span><span style="font-size: x-small;">TypeName() </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">As</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">String</span></span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">   Get</span></span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">      Dim</span></span><span style="font-size: x-small;"> s </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">As</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">String</span></span><span style="font-size: x-small;"> = </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">CStr</span></span><span style="font-size: x-small;">(ViewState(</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"TypeName"</span></span><span style="font-size: x-small;">))<span style="font-size: x-small;">
</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">      If</span></span><span style="font-size: x-small;"> s </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Is</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Nothing</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Then</span></span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">        Return</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"["</span></span><span style="font-size: x-small;"> + </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Me</span></span><span style="font-size: x-small;">.ID + </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"]"</span></span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">      Else</span></span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">        Return</span></span><span style="font-size: x-small;"> s<span style="font-size: x-small;">
</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">      End</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">If</span></span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">  End</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Get</span></span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">  Set</span></span><span style="font-size: x-small;">(</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">ByVal</span></span><span style="font-size: x-small;"> Value </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">As</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">String</span></span><span style="font-size: x-small;">)<span style="font-size: x-small;">ViewState(</span></span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"TypeName"</span></span><span style="font-size: x-small;">) = Value</span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">  End</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Set</span></span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">End</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Property</span></span>
<span style="font-size: x-small;"><span style="font-size: x-small;">&lt;Bindable(</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">True</span></span><span style="font-size: x-small;">), Category(</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"Data"</span></span><span style="font-size: x-small;">), DefaultValue(</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"False"</span></span><span style="font-size: x-small;">), Localizable(</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">True</span></span><span style="font-size: x-small;">)&gt; </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Property</span></span><span style="font-size: x-small;">IsLoaded() </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">As</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Boolean</span></span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Get</span></span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">   If</span></span><span style="font-size: x-small;">ViewState(</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"IsLoaded"</span></span><span style="font-size: x-small;">) </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">IsNot</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Nothing</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Then</span></span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">     Return</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">CBool</span></span><span style="font-size: x-small;">(ViewState(</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"IsLoaded"</span></span><span style="font-size: x-small;">))<span style="font-size: x-small;">
</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">   Else</span></span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">     Return</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">False</span></span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">   End</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">If</span></span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">End</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Get</span></span><span style="font-size: x-small;"><span style="font-size: x-small;">
</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Set</span></span><span style="font-size: x-small;">(</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">ByVal</span></span><span style="font-size: x-small;"> Value </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">As</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Boolean</span></span><span style="font-size: x-small;">)<span style="font-size: x-small;">ViewState(</span></span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"IsLoaded"</span></span><span style="font-size: x-small;">) = Value<span style="font-size: x-small;">
</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">End</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Set</span></span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">End</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Property</span></span>

<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Private</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Sub</span></span><span style="font-size: x-small;"> ServerControl1_Load(</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">ByVal</span></span><span style="font-size: x-small;"> sender </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">As</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Object</span></span><span style="font-size: x-small;">, </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">ByVal</span></span><span style="font-size: x-small;"> e </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">As</span></span><span style="font-size: x-small;">System.EventArgs) </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Handles</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Me</span></span><span style="font-size: x-small;">.Load<span style="font-size: x-small;">
</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">	Dim</span></span><span style="font-size: x-small;">opRes </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">As</span></span><span style="font-size: x-small;">dbhJRBusiness.OperationResult<span style="font-size: x-small;">
</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">	If</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Not</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Me</span></span><span style="font-size: x-small;">.IsLoaded </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Then</span></span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">		Dim</span></span><span style="font-size: x-small;">lItems </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">As</span></span><span style="font-size: x-small;"> List(</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Of</span></span><span style="font-size: x-small;">dbhJRBusiness.DataContracts.TypeContract)<span style="font-size: x-small;">
</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">		Dim</span></span><span style="font-size: x-small;">otyp </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">As</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">New</span></span><span style="font-size: x-small;">dbhJRBusiness.Entities.TypeEntity(</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Me</span></span><span style="font-size: x-small;">.TypeName) opRes = otyp.GetListItems</span></pre>
<pre><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">		If </span></span><span style="font-size: x-small;">opRes.Success = </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">True</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Then</span></span><span style="font-size: x-small;"><span style="font-size: x-small;">lItems =</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">CType</span></span><span style="font-size: x-small;">(opRes.data, List(</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Of</span></span><span style="font-size: x-small;">dbhJRBusiness.DataContracts.TypeContract))<span style="font-size: x-small;">
</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">			Me</span></span><span style="font-size: x-small;">.DataSource = lItems<span style="font-size: x-small;">
</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">			Me</span></span><span style="font-size: x-small;">.DataBind()<span style="font-size: x-small;">
</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">			Me</span></span><span style="font-size: x-small;">.IsLoaded = </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">True</span></span>

<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">		End</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">If</span></span>
<span style="font-size: x-small;"><span style="font-size: x-small;">	otyp =</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Nothing</span></span>
<span style="font-size: x-small;"><span style="font-size: x-small;">
</span></span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">	End</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">If</span></span>
<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">End</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Sub<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">
End </span></span></span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">Class</span></span></pre>
<pre>
<span style="color: #000000;"><span style="font-size: x-small;"><span style="font-size: x-small;">And here is what I've put in the aspx. Note the simple way to find to the value.</span></span> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small;"><span style="font-size: x-small;"> </span></span></span></span>

 

<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">&lt;</span></span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">isd</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">:</span></span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">TypeDropDownList</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;"><span style="font-size: x-small; color: #ff0000;">runat</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">="server"</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;"><span style="font-size: x-small; color: #ff0000;">DataTextField</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">="LongDesc"</span></span><span style="font-size: x-small;"> </span> </span></span>

<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #ff0000;"><span style="font-size: x-small; color: #ff0000;">SelectedValue</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">='</span></span><span style="font-size: x-small;">&lt;%# DataBinder.Eval(Container.DataItem, "AddressTypeGUID") %&gt;</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">'</span></span> </span></span>

<span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #ff0000;"><span style="font-size: x-small; color: #ff0000;">DataValueField</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">="Id"</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;"><span style="font-size: x-small; color: #ff0000;">ID</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">="ddlAddresstype"</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;"><span style="font-size: x-small; color: #ff0000;">TypeName</span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">="AddressType"</span></span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">/&gt;</span></span> </span></span>

 Hope this helps! I'll respond to any questions, but please be patient!</pre>
]]></content:encoded>
			<wfw:commentRss>http://barkinglarry.com/wordpress/?feed=rss2&amp;p=50</wfw:commentRss>
		</item>
		<item>
		<title>Android 1.5 is here!</title>
		<link>http://barkinglarry.com/wordpress/?p=48</link>
		<comments>http://barkinglarry.com/wordpress/?p=48#comments</comments>
		<pubDate>Tue, 28 Apr 2009 03:38:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://barkinglarry.com/wordpress/?p=48</guid>
		<description><![CDATA[


So I see that Google has published the new OS. I&#8217;ve downloaded it, and plan to assess the new features and maybe how I can put a few apps out fast. TwitWit has graced me with the skillset needed to do some cool stuff.
]]></description>
			<content:encoded><![CDATA[<p>So I see that Google has published the new OS. I&#8217;ve downloaded it, and plan to assess the new features and maybe how I can put a few apps out fast. TwitWit has graced me with the skillset needed to do some cool stuff.</p>
]]></content:encoded>
			<wfw:commentRss>http://barkinglarry.com/wordpress/?feed=rss2&amp;p=48</wfw:commentRss>
		</item>
		<item>
		<title>Thanks for the responses</title>
		<link>http://barkinglarry.com/wordpress/?p=43</link>
		<comments>http://barkinglarry.com/wordpress/?p=43#comments</comments>
		<pubDate>Tue, 28 Apr 2009 03:30:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://barkinglarry.com/wordpress/?p=43</guid>
		<description><![CDATA[So sorry it&#8217;s been a while. Work has dealt me an overtime card that could last a couple of months, so I&#8217;ve been taking advantage of it. I think it&#8217;s a good thing, because it&#8217;s given me an opportunity to assess my goals with Android.  I&#8217;m a little discouraged by the (worthless) celebrity fanfare it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>So sorry it&#8217;s been a while. Work has dealt me an overtime card that could last a couple of months, so I&#8217;ve been taking advantage of it. I think it&#8217;s a good thing, because it&#8217;s given me an opportunity to assess my goals with Android.  I&#8217;m a little discouraged by the (worthless) celebrity fanfare it&#8217;s received. It&#8217;s become&#8230;shallow. Mind you there are a few celebs out there who get it (BrentSpiner, donttrythis, PennGillette) but, the others have just ruined it for everyone else. I may continue efforts on TwitWit, for notoriety on the Twitter site, But plan to focus on areas that are scarce with development on the Android OS. Apparently, I&#8217;ve been secretive on my bio page. so I&#8217;ve updated it.</p>
]]></content:encoded>
			<wfw:commentRss>http://barkinglarry.com/wordpress/?feed=rss2&amp;p=43</wfw:commentRss>
		</item>
		<item>
		<title>Uploading to TwitXR</title>
		<link>http://barkinglarry.com/wordpress/?p=40</link>
		<comments>http://barkinglarry.com/wordpress/?p=40#comments</comments>
		<pubDate>Tue, 07 Apr 2009 07:09:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://barkinglarry.com/wordpress/?p=40</guid>
		<description><![CDATA[Found these links helpful for creating an upload class capable of supporting TwitXR .
Upload multipart form using httpclient
Converting file to ByteArray
]]></description>
			<content:encoded><![CDATA[<p>Found these links helpful for creating an upload class capable of supporting TwitXR .<br />
<a href="http://groups.google.com/group/android-beginners/browse_thread/thread/6e6f74676bf6e26b">Upload multipart form using httpclient</a><br />
<a href="http://www.coderanch.com/t/276442/Streams/java/Reading-file-into-byte-array">Converting file to ByteArray</a></p>
]]></content:encoded>
			<wfw:commentRss>http://barkinglarry.com/wordpress/?feed=rss2&amp;p=40</wfw:commentRss>
		</item>
		<item>
		<title>Decision on Pictures</title>
		<link>http://barkinglarry.com/wordpress/?p=38</link>
		<comments>http://barkinglarry.com/wordpress/?p=38#comments</comments>
		<pubDate>Mon, 06 Apr 2009 02:30:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[TwitWit]]></category>

		<category><![CDATA[TwitXR]]></category>

		<guid isPermaLink="false">http://barkinglarry.com/wordpress/?p=38</guid>
		<description><![CDATA[I think I&#8221;ll go with TwitXR over TwitPic for their api. I&#8217;m no security expert, it seems to me that TwitXR api is more secure than others. TwitXR seems to at least cover themselves with some basic authentication, which I&#8217;m accustomed to. Also, I think this first version will not cache the images to the [...]]]></description>
			<content:encoded><![CDATA[<p>I think I&#8221;ll go with TwitXR over TwitPic for their api. I&#8217;m no security expert, it seems to me that TwitXR api is more secure than others. TwitXR seems to at least cover themselves with some basic authentication, which I&#8217;m accustomed to. Also, I think this first version will not cache the images to the sd card. Maybe an option later.</p>
]]></content:encoded>
			<wfw:commentRss>http://barkinglarry.com/wordpress/?feed=rss2&amp;p=38</wfw:commentRss>
		</item>
		<item>
		<title>Date formatting in Android for Twitter</title>
		<link>http://barkinglarry.com/wordpress/?p=31</link>
		<comments>http://barkinglarry.com/wordpress/?p=31#comments</comments>
		<pubDate>Tue, 31 Mar 2009 04:05:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Android]]></category>

		<category><![CDATA[Date Format]]></category>

		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://barkinglarry.com/wordpress/?p=31</guid>
		<description><![CDATA[This one kept me up at night. I thought I had the right format string, but my dates never worked write, though the strings were ok. Then I found this at http://svn.liferay.com/browse/plugins/trunk/portlets/twitter-portlet/docroot/WEB-INF/src/com/liferay/twitter/service/impl/FeedLocalServiceImpl.java?r=23183
 SimpleDateFormat sdf = new SimpleDateFormat( &#8220;EEE MMM d hh:mm:ss Z yyyy&#8221;);  �
Date createDate;
createDate = sdf.parse(&#60;yourTwitterCreatedAtDateStringGoesHere&#62;);
]]></description>
			<content:encoded><![CDATA[<p>This one kept me up at night. I thought I had the right format string, but my dates never worked write, though the strings were ok. Then I found this at <a href="http://svn.liferay.com/browse/plugins/trunk/portlets/twitter-portlet/docroot/WEB-INF/src/com/liferay/twitter/service/impl/FeedLocalServiceImpl.java?r=23183">http://svn.liferay.com/browse/plugins/trunk/portlets/twitter-portlet/docroot/WEB-INF/src/com/liferay/twitter/service/impl/FeedLocalServiceImpl.java?r=23183</a></p>
<p> SimpleDateFormat sdf = new SimpleDateFormat( &#8220;EEE MMM d hh:mm:ss Z yyyy&#8221;);  �<br />
Date createDate;<br />
createDate = sdf.parse(&lt;yourTwitterCreatedAtDateStringGoesHere&gt;);</p>
]]></content:encoded>
			<wfw:commentRss>http://barkinglarry.com/wordpress/?feed=rss2&amp;p=31</wfw:commentRss>
		</item>
		<item>
		<title>Ways to Implement an OnClick Listener in Android</title>
		<link>http://barkinglarry.com/wordpress/?p=25</link>
		<comments>http://barkinglarry.com/wordpress/?p=25#comments</comments>
		<pubDate>Sun, 29 Mar 2009 17:10:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Android]]></category>

		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://barkinglarry.com/wordpress/?p=25</guid>
		<description><![CDATA[I hate inline solutions, so I went in search of alternatives to the popular inline onclick listener.
I found the start of what I was looking for in this blog post
http://tseng-blog.nge-web.net/blog/2009/02/14/implementing-listeners-in-your-android-java-application/
I&#8217;m going to use a hybrid of inline. While I&#8217;ll create an online listener, they will always call a function outside the listener. This way, I [...]]]></description>
			<content:encoded><![CDATA[<p>I hate inline solutions, so I went in search of alternatives to the popular inline onclick listener.</p>
<p>I found the start of what I was looking for in this blog post</p>
<p><a href="http://tseng-blog.nge-web.net/blog/2009/02/14/implementing-listeners-in-your-android-java-application/">http://tseng-blog.nge-web.net/blog/2009/02/14/implementing-listeners-in-your-android-java-application/</a></p>
<p>I&#8217;m going to use a hybrid of inline. While I&#8217;ll create an online listener, they will always call a function outside the listener. This way, I &#8216;ve have the entire scope of the class available.</p>
]]></content:encoded>
			<wfw:commentRss>http://barkinglarry.com/wordpress/?feed=rss2&amp;p=25</wfw:commentRss>
		</item>
		<item>
		<title>Developers for Wordpress?</title>
		<link>http://barkinglarry.com/wordpress/?p=21</link>
		<comments>http://barkinglarry.com/wordpress/?p=21#comments</comments>
		<pubDate>Sat, 28 Mar 2009 23:39:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://barkinglarry.com/wordpress/?p=21</guid>
		<description><![CDATA[It turns out that there doesn&#8217;t seem to be a lot of support from developers for Wordpress. I found an issue with some plug-ins that was occurring when under iis7, and using php. Apparently, a post tag wasn&#8217;t being passed in the variable. simply hard-coding it into the plug-in&#8217;s form action page fixed it nicely. [...]]]></description>
			<content:encoded><![CDATA[<p>It turns out that there doesn&#8217;t seem to be a lot of support from developers for Wordpress. I found an issue with some plug-ins that was occurring when under iis7, and using php. Apparently, a post tag wasn&#8217;t being passed in the variable. simply hard-coding it into the plug-in&#8217;s form action page fixed it nicely. Well, maybe I&#8217;ll need to make a bigger presence as well. And all I wanted to do is setup a blog!</p>
]]></content:encoded>
			<wfw:commentRss>http://barkinglarry.com/wordpress/?feed=rss2&amp;p=21</wfw:commentRss>
		</item>
		<item>
		<title>Project TwitWit</title>
		<link>http://barkinglarry.com/wordpress/?p=10</link>
		<comments>http://barkinglarry.com/wordpress/?p=10#comments</comments>
		<pubDate>Fri, 27 Mar 2009 03:46:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Android]]></category>

		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://barkinglarry.com/wordpress/?p=10</guid>
		<description><![CDATA[My current project is one for the Android platform called TwitWit. It is a twitter client. Why another one of those you ask? Well, for the most part, it is a good pilot project to get accustomed the Android OS. Consider it a stepping stone for bigger and better. I&#8217;ll post screen shot soon. I&#8217;ll leave [...]]]></description>
			<content:encoded><![CDATA[<p>My current project is one for the Android platform called TwitWit. It is a twitter client. Why another one of those you ask? Well, for the most part, it is a good pilot project to get accustomed the Android OS. Consider it a stepping stone for bigger and better. I&#8217;ll post screen shot soon. I&#8217;ll leave this post open for comments, so if anyone has a &#8220;gotta have&#8221; feature that no one else has, please post!</p>
]]></content:encoded>
			<wfw:commentRss>http://barkinglarry.com/wordpress/?feed=rss2&amp;p=10</wfw:commentRss>
		</item>
		<item>
		<title>Welcome</title>
		<link>http://barkinglarry.com/wordpress/?p=7</link>
		<comments>http://barkinglarry.com/wordpress/?p=7#comments</comments>
		<pubDate>Wed, 25 Mar 2009 20:09:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=3</guid>
		<description><![CDATA[Yes, this is my first endeavor at a blog. I&#8217;m not sure where it&#8217;s going, but it will definitely be oriented towards development.
]]></description>
			<content:encoded><![CDATA[<p>Yes, this is my first endeavor at a blog. I&#8217;m not sure where it&#8217;s going, but it will definitely be oriented towards development.</p>
]]></content:encoded>
			<wfw:commentRss>http://barkinglarry.com/wordpress/?feed=rss2&amp;p=7</wfw:commentRss>
		</item>
	</channel>
</rss>
