<?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>Ashraf's Blog &#187; AjaxControlToolkit</title>
	<atom:link href="http://ashrafur.wordpress.com/category/ajaxcontroltoolkit/feed/" rel="self" type="application/rss+xml" />
	<link>http://ashrafur.wordpress.com</link>
	<description>Weblogs of Ashrafur Rahaman</description>
	<lastBuildDate>Wed, 16 Dec 2009 14:32:26 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='ashrafur.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/ee9ead71c89b7a06482cd3fb859f57a3?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Ashraf's Blog &#187; AjaxControlToolkit</title>
		<link>http://ashrafur.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ashrafur.wordpress.com/osd.xml" title="Ashraf&#8217;s Blog" />
		<item>
		<title>Create Accordion dynamically from XML</title>
		<link>http://ashrafur.wordpress.com/2008/04/04/create-accordion-dynamically-from-xml/</link>
		<comments>http://ashrafur.wordpress.com/2008/04/04/create-accordion-dynamically-from-xml/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 18:33:04 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[AjaxControlToolkit]]></category>
		<category><![CDATA[Accordion]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/?p=128</guid>
		<description><![CDATA[In web application accordion is a very nice using. By using that you can make you website good looking and in a small space you cam put many things. Here am giving you example of a dynamic Accordion which i am loading from a XML file.
To create that using AjaxControlToolkit. In AjaxControlToolkit a control named [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=128&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In web application accordion is a very nice using. By using that you can make you website good looking and in a small space you cam put many things. Here am giving you example of a dynamic Accordion which i am loading from a XML file.</p>
<p><a TITLE="Dynamic accordion from xml" HREF="http://ashrafur.files.wordpress.com/2008/04/accordion.gif"><img ALT="Dynamic accordion from xml" SRC="http://ashrafur.files.wordpress.com/2008/04/accordion.gif" /></a>To create that using AjaxControlToolkit. In AjaxControlToolkit a control named Accordion is available , i have just load this dynamically and reading data from XML.<br />
Here are the coder to read data from XML and Load accordion dynamically</p>
<blockquote><p>Accordion accordion = new Accordion();<br />
accordion.ID = &#8220;AccordionID&#8221;;<br />
accordion.SelectedIndex = 0;<br />
accordion.FadeTransitions = true;<br />
accordion.FramesPerSecond = 50;<br />
accordion.TransitionDuration = 250;<br />
accordion.SuppressHeaderPostbacks = true;<br />
string _path = HttpContext.Current.Server.MapPath(@&#8221;Sitemap.xml&#8221;);<br />
FileStream stream = new FileStream(_path, FileMode.Open , FileAccess.Read, FileShare.ReadWrite);<br />
XmlDocument document = new XmlDocument();<br />
document.Load(stream);<br />
XmlNodeList nodeList = document.GetElementsByTagName(&#8220;Item&#8221;);<br />
for (int i = 0; i &lt; nodeList.Count; i++)<br />
{<br />
AccordionPane accorPane = new AccordionPane();<br />
Label lbl = new Label();<br />
lbl.ID = &#8220;lblControl&#8221;;<br />
lbl.Text =  nodeList[i].Attributes["name"].Value;<br />
lbl.Width = 200;<br />
lbl.BackColor = System.Drawing.Color.Wheat;<br />
lbl.Style.Add(HtmlTextWriterStyle.MarginBottom, &#8220;3px&#8221;);<br />
accorPane.HeaderContainer.Controls.Add(lbl);<br />
for (int j = 0; j &lt; nodeList[i].ChildNodes.Count; j++)<br />
{<br />
string name = nodeList[i].ChildNodes[j].Attributes["name"].Value;<br />
Label lbl2 = new Label();<br />
lbl2.ID = &#8220;lblControl2&#8243;;<br />
lbl2.Text = name;<br />
lbl2.Width = 195;<br />
lbl2.BackColor = System.Drawing.Color.WhiteSmoke;<br />
lbl2.Style.Add(HtmlTextWriterStyle.MarginBottom, &#8220;2px&#8221;);<br />
lbl2.Style.Add(HtmlTextWriterStyle.PaddingLeft, &#8220;5px&#8221;);<br />
HyperLink hl = new HyperLink();<br />
accorPane.ContentContainer.Controls.Add(lbl2);<br />
accorPane.ContentContainer.Controls.Add(new LiteralControl(&#8220;&lt;br/&gt;&#8221;));<br />
}<br />
accordion.Panes.Add(accorPane);<br />
}<br />
PlaceHolder1.Controls.Add(accordion);<br />
stream.Close();</p></blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ashrafur.wordpress.com/128/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ashrafur.wordpress.com/128/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/128/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=128&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2008/04/04/create-accordion-dynamically-from-xml/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>
	</item>
		<item>
		<title>The TargetControlID of &#8216;_AccordionExtender&#8217; is not valid. The value cannot be null or empty</title>
		<link>http://ashrafur.wordpress.com/2008/04/01/the-targetcontrolid-of-_accordionextender-is-not-valid-the-value-cannot-be-null-or-empty/</link>
		<comments>http://ashrafur.wordpress.com/2008/04/01/the-targetcontrolid-of-_accordionextender-is-not-valid-the-value-cannot-be-null-or-empty/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 06:35:53 +0000</pubDate>
		<dc:creator>ashraf</dc:creator>
				<category><![CDATA[AjaxControlToolkit]]></category>
		<category><![CDATA[Accordion]]></category>

		<guid isPermaLink="false">http://ashrafur.wordpress.com/?p=123</guid>
		<description><![CDATA[I was workign with a small application where i create Accordion runtime. I i got problem for that the problem was &#8220;The TargetControlID of &#8216;_AccordionExtender&#8217; is not valid. The value cannot be null or empty&#8221;. I wrote codes like that

Finally got the solution just add accordion.ID = &#8220;AccordionID&#8221; and this problem is solved. So the fixed code is look like that

 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=123&subd=ashrafur&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was workign with a small application where i create Accordion runtime. I i got problem for that the problem was &#8220;The TargetControlID of &#8216;_AccordionExtender&#8217; is not valid. The value cannot be null or empty&#8221;. I wrote codes like that</p>
<p><a TITLE="This code is not working for Accordion" HREF="http://ashrafur.files.wordpress.com/2008/04/accordion1-wrong.png"><img ALT="This code is not working for Accordion" SRC="http://ashrafur.files.wordpress.com/2008/04/accordion1-wrong.png" /></a></p>
<p>Finally got the solution just add <strong>accordion.ID = &#8220;AccordionID&#8221; </strong>and this problem is solved. So the fixed code is look like that</p>
<p><a TITLE="Create Accordion at tuntime" HREF="http://ashrafur.files.wordpress.com/2008/04/accordion.png"><img ALT="Create Accordion at tuntime" SRC="http://ashrafur.files.wordpress.com/2008/04/accordion.png" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ashrafur.wordpress.com/123/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ashrafur.wordpress.com/123/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ashrafur.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ashrafur.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ashrafur.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ashrafur.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ashrafur.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ashrafur.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ashrafur.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ashrafur.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ashrafur.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ashrafur.wordpress.com/123/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ashrafur.wordpress.com&blog=1768637&post=123&subd=ashrafur&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ashrafur.wordpress.com/2008/04/01/the-targetcontrolid-of-_accordionextender-is-not-valid-the-value-cannot-be-null-or-empty/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4dbea6e5000e7de0a2e678852c3f6d78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ashraf</media:title>
		</media:content>
	</item>
	</channel>
</rss>