<?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>Dynamic DOM &#8211; Sibeesh Passion</title>
	<atom:link href="https://www.sibeeshpassion.com/tag/dynamic-dom/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sibeeshpassion.com</link>
	<description>My passion towards life</description>
	<lastBuildDate>Wed, 02 Jun 2021 15:17:20 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>/wp-content/uploads/2017/04/Sibeesh_Passion_Logo_Small.png</url>
	<title>Dynamic DOM &#8211; Sibeesh Passion</title>
	<link>https://www.sibeeshpassion.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Create HTML DIV Dynamically</title>
		<link>https://www.sibeeshpassion.com/create-html-div-dynamically/</link>
					<comments>https://www.sibeeshpassion.com/create-html-div-dynamically/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Sun, 31 May 2015 13:16:29 +0000</pubDate>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Create div dynamically]]></category>
		<category><![CDATA[Create HTML Div]]></category>
		<category><![CDATA[Creating html div using c#]]></category>
		<category><![CDATA[Dynamic DOM]]></category>
		<guid isPermaLink="false">https://sibeeshpassion.com/?p=2981</guid>

					<description><![CDATA[Introduction This blog explains how we can generate a HTML Div dynamically. For this you must be aware of basic HTML, CSS. Steps Create a static string variable html: [html] public static string html = &#34;&#34;; [/html] Add in the aspx file inside of the from tag. Add a function like this: [csharp] private string LoadDragEventsByUserID(string userId) { try { DataSet ds = Fetch dataset from your server html = string.Empty; for (int i = 0; i &#60;= ds.Tables[0].Rows.Count &#8211; 1; i++) { html += &#34;&#60;div id=&#8217;&#34; + ds.Tables[0].Rows[i][&#34;Your Unique ID&#34;].ToString() + &#34;&#60;/div&#62;&#34;; } return html; } catch { return [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>This blog explains how we can generate a HTML Div dynamically. For this you must be aware of basic HTML, CSS.</p>
<p><strong>Steps</strong></p>
<p>Create a static string variable html:<br />
[html]<br />
public static string html = &quot;&quot;;<br />
[/html]<br />
Add <%=html%> in the aspx file inside of the from tag.</p>
<p>Add a function like this:<br />
[csharp]<br />
private string LoadDragEventsByUserID(string userId)<br />
{<br />
   try<br />
   {<br />
      DataSet ds = Fetch dataset from your server<br />
      html = string.Empty;<br />
      for (int i = 0; i &lt;= ds.Tables[0].Rows.Count &#8211; 1; i++)<br />
      {<br />
         html += &quot;&lt;div id=&#8217;&quot; + ds.Tables[0].Rows[i][&quot;Your Unique ID&quot;].ToString() + &quot;&lt;/div&gt;&quot;;<br />
      }  </p>
<p>      return html;<br />
   }<br />
   catch<br />
   {<br />
      return null;<br />
   }<br />
}<br />
[/csharp]</p>
<p>Please note that your dataset rows will be contained different rows and columns, please change it according to your need. And also create css styles your own. If you need any help regarding style, feel free to ask me.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/create-html-div-dynamically/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
