<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Dynamically create ASP.NET user control using ASP.NET Ajax and Web Service</title><link>http://weblogs.asp.net/sanjeevagarwal/archive/2008/07/22/Dynamically-create-ASP.NET-user-control-using-ASP.NET-Ajax-and-Web-Service.aspx</link><description>Thanks for your tremendous response for my first post on asp.net blog Reduce ASP.NET Page size and complexity using JQuery-Part 1 . Within last 10 days it's got more then 1500 views. To subscribe my blog through mail, Please click here subscribe blog</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: Dynamically create ASP.NET user control using ASP.NET Ajax and Web Service</title><link>http://weblogs.asp.net/sanjeevagarwal/archive/2008/07/22/Dynamically-create-ASP.NET-user-control-using-ASP.NET-Ajax-and-Web-Service.aspx#7253181</link><pubDate>Fri, 13 Nov 2009 06:44:38 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7253181</guid><dc:creator>Ishan</dc:creator><author>Ishan</author><description>&lt;p&gt;Hi Sanjeev,&lt;/p&gt;
&lt;p&gt;Great solution.&lt;/p&gt;
&lt;p&gt;Just wondering that how do we access the values present in the user control loaded this way?&lt;/p&gt;
&lt;p&gt;Lets say - you added 5 user controls which have got 2 textboxes each. Now you want to save all the values present in these 10 textboxes. How do we do that?&lt;/p&gt;
&lt;p&gt;Please help :)&lt;/p&gt;
&lt;p&gt;Thanks - Ishan&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7253181" width="1" height="1"&gt;</description></item><item><title>re: Dynamically create ASP.NET user control using ASP.NET Ajax and Web Service</title><link>http://weblogs.asp.net/sanjeevagarwal/archive/2008/07/22/Dynamically-create-ASP.NET-user-control-using-ASP.NET-Ajax-and-Web-Service.aspx#7233670</link><pubDate>Tue, 20 Oct 2009 09:22:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7233670</guid><dc:creator>Nuwan</dc:creator><author>Nuwan</author><description>&lt;p&gt;Thanks for wonderful piece of code. But this is not useful if you want to do any server-side execution in the user control.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7233670" width="1" height="1"&gt;</description></item><item><title>re: Dynamically create ASP.NET user control using ASP.NET Ajax and Web Service</title><link>http://weblogs.asp.net/sanjeevagarwal/archive/2008/07/22/Dynamically-create-ASP.NET-user-control-using-ASP.NET-Ajax-and-Web-Service.aspx#7169642</link><pubDate>Fri, 14 Aug 2009 19:11:52 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7169642</guid><dc:creator>m7e7</dc:creator><author>m7e7</author><description>&lt;p&gt;How Do u pass a QueryString to the userControl.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7169642" width="1" height="1"&gt;</description></item><item><title>re: Dynamically create ASP.NET user control using ASP.NET Ajax and Web Service</title><link>http://weblogs.asp.net/sanjeevagarwal/archive/2008/07/22/Dynamically-create-ASP.NET-user-control-using-ASP.NET-Ajax-and-Web-Service.aspx#7155931</link><pubDate>Tue, 28 Jul 2009 14:51:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7155931</guid><dc:creator>Carlos Pilão</dc:creator><author>Carlos Pilão</author><description>&lt;p&gt;Where can i find a way of merging viewstate of dynamic control with page viewstate??? If so, this is the right behaviour???&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7155931" width="1" height="1"&gt;</description></item><item><title>re: Dynamically create ASP.NET user control using ASP.NET Ajax and Web Service</title><link>http://weblogs.asp.net/sanjeevagarwal/archive/2008/07/22/Dynamically-create-ASP.NET-user-control-using-ASP.NET-Ajax-and-Web-Service.aspx#7134186</link><pubDate>Thu, 25 Jun 2009 16:32:43 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7134186</guid><dc:creator>vishal Sharma</dc:creator><author>vishal Sharma</author><description>&lt;p&gt;I added asp.net button control (runat server) on my user control but this is not working and giving me error runat server form tag required to render button control. what is the solution for this.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7134186" width="1" height="1"&gt;</description></item><item><title>re: Dynamically create ASP.NET user control using ASP.NET Ajax and Web Service</title><link>http://weblogs.asp.net/sanjeevagarwal/archive/2008/07/22/Dynamically-create-ASP.NET-user-control-using-ASP.NET-Ajax-and-Web-Service.aspx#7108127</link><pubDate>Thu, 04 Jun 2009 15:03:12 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7108127</guid><dc:creator>Dannster</dc:creator><author>Dannster</author><description>&lt;p&gt;I've just found something out that may help some people.&lt;/p&gt;
&lt;p&gt;If you don't need postbacks from the dynamically loaded control you can just remove the second __VIEWSTATE field from the dom using jQuery with this line...&lt;/p&gt;
&lt;p&gt;$(&amp;quot;input[@name='__VIEWSTATE']:eq(1)&amp;quot;).remove();&lt;/p&gt;
&lt;p&gt;Put this in your ajax success function after the new html has been added to the target div and it will stop the error happening. &lt;/p&gt;
&lt;p&gt;I tried to merge the 2 viewstates using jQuery but it still broke.&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7108127" width="1" height="1"&gt;</description></item><item><title>re: Dynamically create ASP.NET user control using ASP.NET Ajax and Web Service</title><link>http://weblogs.asp.net/sanjeevagarwal/archive/2008/07/22/Dynamically-create-ASP.NET-user-control-using-ASP.NET-Ajax-and-Web-Service.aspx#7108052</link><pubDate>Thu, 04 Jun 2009 13:38:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7108052</guid><dc:creator>Dannster</dc:creator><author>Dannster</author><description>&lt;p&gt;Hi Sanj&lt;/p&gt;
&lt;p&gt;How do you merge viewstates mate? I can't find anything on the web about this.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7108052" width="1" height="1"&gt;</description></item><item><title>re: Dynamically create ASP.NET user control using ASP.NET Ajax and Web Service</title><link>http://weblogs.asp.net/sanjeevagarwal/archive/2008/07/22/Dynamically-create-ASP.NET-user-control-using-ASP.NET-Ajax-and-Web-Service.aspx#7106826</link><pubDate>Wed, 03 Jun 2009 06:24:43 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7106826</guid><dc:creator>OMAIR</dc:creator><author>OMAIR</author><description>&lt;p&gt;dear, you have given a good thought, but to handle control's event, what should we have to do as i got this message:&lt;/p&gt;
&lt;p&gt;The state information is invalid for this page and might be corrupted&lt;/p&gt;
&lt;p&gt;would you please help me for this?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7106826" width="1" height="1"&gt;</description></item><item><title>re: Dynamically create ASP.NET user control using ASP.NET Ajax and Web Service</title><link>http://weblogs.asp.net/sanjeevagarwal/archive/2008/07/22/Dynamically-create-ASP.NET-user-control-using-ASP.NET-Ajax-and-Web-Service.aspx#7071489</link><pubDate>Mon, 04 May 2009 02:36:40 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7071489</guid><dc:creator>jamalovitch</dc:creator><author>jamalovitch</author><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;thanks for this post, it's very helpful.&lt;/p&gt;
&lt;p&gt;I have a trouble with viewstate when i want to update my gridview in the user control. Can you help me please?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7071489" width="1" height="1"&gt;</description></item><item><title>re: Dynamically create ASP.NET user control using ASP.NET Ajax and Web Service</title><link>http://weblogs.asp.net/sanjeevagarwal/archive/2008/07/22/Dynamically-create-ASP.NET-user-control-using-ASP.NET-Ajax-and-Web-Service.aspx#7028935</link><pubDate>Mon, 06 Apr 2009 06:51:56 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7028935</guid><dc:creator>Luke</dc:creator><author>Luke</author><description>&lt;p&gt;Hey great article. &lt;/p&gt;
&lt;p&gt;I took your base code and extended it slightly into a tabs example. I also removed the controls viewstate entirely to fix the corrupt viewstate errors I was experiencing on postback.&lt;/p&gt;
&lt;p&gt;Luke&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7028935" width="1" height="1"&gt;</description></item></channel></rss>