<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.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>Getting Started</title><link>http://forums.asp.net/15.aspx</link><description>The perfect forum for ASP.NET novices. No question too simple! &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=21&amp;amp;c=17" target=_blank&gt;Email List&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: create a textbox dynamically at runtime how visible that textbox</title><link>http://forums.asp.net/thread/2361412.aspx</link><pubDate>Fri, 16 May 2008 05:14:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2361412</guid><dc:creator>rajeshthangarasu</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2361412.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2361412</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;b&gt;You have to place your dynamically created controls inside a panel or placeholder&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;b&gt;eg:&lt;/b&gt;&lt;/u&gt;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;   	     TextBox tbox = &lt;span class="kwd"&gt;new&lt;/span&gt; TextBox();
             tbox.Text = &lt;span class="st"&gt;&amp;quot;My Text Box&amp;quot;&lt;/span&gt;;
             PlaceHolder1.Controls.Add(tbox);

&lt;/pre&gt;&amp;nbsp;&lt;br /&gt;&lt;/b&gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: create a textbox dynamically at runtime how visible that textbox</title><link>http://forums.asp.net/thread/2361321.aspx</link><pubDate>Fri, 16 May 2008 03:51:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2361321</guid><dc:creator>Vince Xu - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2361321.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2361321</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think you didn&amp;#39;t add the TextBox into page: Page.Controls.Add(TextBox1);&lt;/p&gt;
&lt;p&gt;Hope it helps.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: create a textbox dynamically at runtime how visible that textbox</title><link>http://forums.asp.net/thread/2356487.aspx</link><pubDate>Wed, 14 May 2008 08:06:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2356487</guid><dc:creator>h_7asoona</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2356487.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2356487</wfw:commentRss><description>&lt;p&gt;I think that Patricipant replay is very good&amp;nbsp; &amp;amp;&amp;nbsp; achive the goal....&amp;nbsp; only I wanna add acomment&amp;nbsp; if&amp;nbsp; you&amp;nbsp; want&amp;nbsp; to add the text&amp;nbsp; in a specific plac only choose your &amp;lt;td&amp;gt; you want to put your text on it&amp;nbsp; from the design .... right click on this TD &amp;amp; choose&amp;nbsp; Run as server control &amp;amp; it&amp;#39;s by default have the ID (td1)....&amp;nbsp; so write in&amp;nbsp; code ....&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;TextBox&lt;/font&gt;&lt;font size="2"&gt; Newtext= &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;TextBox&lt;/font&gt;&lt;font size="2"&gt;();&lt;/p&gt;Newtext.Text = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Hassan&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;Newtext.ID=&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;textbox100&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/p&gt;Newtext.Visible = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;Newtext.Style[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Position&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;] = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Absolute&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;TD1.Controls.Add(Newtext);&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: create a textbox dynamically at runtime how visible that textbox</title><link>http://forums.asp.net/thread/2356365.aspx</link><pubDate>Wed, 14 May 2008 07:20:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2356365</guid><dc:creator>banoosuresh</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2356365.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2356365</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;specify the size for the text box , it will be visible&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: create a textbox dynamically at runtime how visible that textbox</title><link>http://forums.asp.net/thread/2356363.aspx</link><pubDate>Wed, 14 May 2008 07:19:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2356363</guid><dc:creator>c#shiv</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2356363.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2356363</wfw:commentRss><description>&lt;p&gt;You need to add that control on page in panel or placeholer etc.&amp;nbsp; You can set its visibility by setting Visible property of TextBox to true/false.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here is an example for you.&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    	     &lt;/b&gt;TextBox tb = &lt;span class="kwd"&gt;new&lt;/span&gt; TextBox();
&lt;b id="2"&gt;2    &lt;/b&gt;        tb.Text = &lt;span class="st"&gt;&amp;quot;Dynamically Created&amp;quot;&lt;/span&gt;;
&lt;b id="3"&gt;3    &lt;/b&gt;        PlaceHolder1.Controls.Add(tb);
&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;PlaceHolder1 has been set on Page. By default visibility of TextBox control is true here.&lt;/pre&gt;</description></item><item><title>Re: create a textbox dynamically at runtime how visible that textbox</title><link>http://forums.asp.net/thread/2356358.aspx</link><pubDate>Wed, 14 May 2008 07:18:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2356358</guid><dc:creator>dinesh_sp</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2356358.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2356358</wfw:commentRss><description>&lt;p&gt;Hi Devang,&lt;/p&gt;
&lt;p&gt;dim tbox as new textbox&lt;/p&gt;
&lt;p&gt;tbox.text=&amp;quot;abcd&amp;quot;&lt;br /&gt;page.form.controls.add(tbox)&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;This would add texbox on run time on page. Also if you want textbox on specific place use placeholder or panel and code is very similar&lt;br /&gt;panel1.controls.add(tbox)&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: create a textbox dynamically at runtime how visible that textbox</title><link>http://forums.asp.net/thread/2356359.aspx</link><pubDate>Wed, 14 May 2008 07:18:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2356359</guid><dc:creator>banoosuresh</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2356359.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2356359</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;specify the size for the text box , it will be visible&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: create a textbox dynamically at runtime how visible that textbox</title><link>http://forums.asp.net/thread/2356352.aspx</link><pubDate>Wed, 14 May 2008 07:16:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2356352</guid><dc:creator>yeotumitsu@sify.com</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2356352.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2356352</wfw:commentRss><description>&amp;nbsp;&amp;nbsp;&amp;nbsp; TextBox1 = new TextBox();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextBox1.ID = &amp;quot;TextBox1&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextBox1.Style[&amp;quot;Position&amp;quot;] = &amp;quot;Absolute&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextBox1.Style[&amp;quot;Top&amp;quot;] = &amp;quot;25px&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextBox1.Style[&amp;quot;Left&amp;quot;] = &amp;quot;100px&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Form1.Controls.Add(TextBox1);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;</description></item><item><title>create a textbox dynamically at runtime how visible that textbox</title><link>http://forums.asp.net/thread/2356335.aspx</link><pubDate>Wed, 14 May 2008 07:08:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2356335</guid><dc:creator>devangopinathan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2356335.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2356335</wfw:commentRss><description>&lt;p&gt;hi to all&lt;/p&gt;
&lt;p&gt;In my application i created a textbox dynamically at runtime how visible that textbox. please guide me.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;by &lt;/p&gt;
&lt;p&gt;devan.g&lt;/p&gt;</description></item></channel></rss>