<?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>Client Side Web Development</title><link>http://forums.asp.net/130.aspx</link><description>Client-side programming discussions, including CSS, DHTML, JScript/Javascript, etc. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=18&amp;c=16" 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: On javascript closed, cannot assign value to hidden textbox</title><link>http://forums.asp.net/thread/3273805.aspx</link><pubDate>Fri, 03 Jul 2009 16:04:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273805</guid><dc:creator>agr001</dc:creator><author>agr001</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273805.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=3273805</wfw:commentRss><description>&lt;p&gt;You can use an asp:textbox control don&amp;#39;t set it to visible=&amp;quot;false&amp;quot; on the server. &amp;nbsp;Rather add a style attribute to set it&amp;#39;s visibility to hidden.&lt;/p&gt;&lt;p&gt;e.g.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre name="code" class="vb.net"&gt;       ctrlNameHidden.Attributes.Add(&amp;quot;style&amp;quot;, &amp;quot;display:none;&amp;quot;)
&lt;/pre&gt;&lt;p&gt;put this in the page load event&amp;nbsp;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Your could also use something like this&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre name="code" class="xhtml"&gt;&amp;lt;input type=&amp;quot;hidden&amp;quot; id=&amp;quot;ctrlNameHidden&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;Hope this helps&amp;nbsp;&lt;/p&gt;&lt;p&gt;Andrew&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description></item><item><title>Re: On javascript closed, cannot assign value to hidden textbox</title><link>http://forums.asp.net/thread/3273565.aspx</link><pubDate>Fri, 03 Jul 2009 13:14:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273565</guid><dc:creator>charge22</dc:creator><author>charge22</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273565.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=3273565</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I dont think assigning values to hidden text box is possible.&lt;/p&gt;&lt;p&gt;Why dont you use hidden controls instead? I am sure it will work.&lt;/p&gt;&lt;p&gt;Do let me know in either case.&lt;/p&gt;&lt;p&gt;Cheers!&lt;/p&gt;&lt;p&gt;---------------------------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;Please mark as answer if it helps!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>On javascript closed, cannot assign value to hidden textbox</title><link>http://forums.asp.net/thread/3273305.aspx</link><pubDate>Fri, 03 Jul 2009 10:31:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273305</guid><dc:creator>ryanlcs</dc:creator><author>ryanlcs</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273305.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=3273305</wfw:commentRss><description>&lt;p&gt;I hava a button to pop up a child window, on the event on close on that pop up window, &amp;nbsp;i will assign a value to a textbox on the parent window. After assign, i will close the child window.&lt;/p&gt;
&lt;p&gt;But I got problem, if the textbox on parent window is visible, i can assign the value, BUT if the textbox is not visible, I cant assign and close the child window, and I need that textbox to be invisible, please advice me.&lt;/p&gt;&lt;pre class="vb.net" name="code"&gt;&amp;quot;window.opener.Form1.&amp;quot; &amp;amp; _
HttpContext.Current.Request.QueryString(&amp;quot;ctrlNameHidden&amp;quot;) &amp;amp; &amp;quot;.value = &amp;#39;&amp;quot; &amp;amp; _
strDTM &amp;amp; &amp;quot;&amp;#39;;window.close();&amp;quot;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks You.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>