assembely not available all the time ?http://forums.asp.net/t/1809169.aspx/1?assembely+not+available+all+the+time+Wed, 06 Jun 2012 10:13:20 -040018091695004812http://forums.asp.net/p/1809169/5004812.aspx/1?assembely+not+available+all+the+time+assembely not available all the time ? <p>Hello,</p> <p>PreviousPage.<span style="text-decoration:underline">FindControl</span></p> <p>error : does not contain a definition for 'FindControl' and no extension method 'FindControl' accepting a first argument of type are you missing a assembely reference or using directive.</p> <p>is it something wrong with the visual studio , we use vs 11</p> <p>the application was fine earlier but sometimes this error appears.</p> <p>the application works fine with the following code and similar page gives error as explained above,</p> <p>using System;<br> using System.Collections.Generic; <br> using System.Linq;<br> using System.Web; <br> using System.Web.UI; <br> using System.Web.UI.WebControls;</p> <p>public partial class ControlValue : System.Web.UI.Page <br> {&nbsp; protected void Page_Load(object sender, EventArgs e)&nbsp;<br> { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var textbox = PreviousPage.FindControl(&quot;txtbxControl&quot;) as TextBox; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (textbox != null) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lblControl.Text = textbox.Text; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } &nbsp;&nbsp;&nbsp; } }&nbsp;</p> <p>&nbsp;</p> <p>regards,</p> <p>&nbsp;</p> <p>&nbsp;</p> <p></p> 2012-05-30T21:49:58-04:005007281http://forums.asp.net/p/1809169/5007281.aspx/1?Re+assembely+not+available+all+the+time+Re: assembely not available all the time ? <p>Hi</p> <p>PreviousPage Gets the page that transferred control to the current page.</p> <p>You can debug your programe, check your PreviousPage,&nbsp;make sure you can get instance.</p> <p>If you are sure about it's only have the issue in VS11.</p> <p>I suggest you submit the problem to <a href="http://connect.microsoft.com/">connect</a>.</p> <p>Thanks.</p> 2012-06-01T08:49:37-04:005008936http://forums.asp.net/p/1809169/5008936.aspx/1?Re+assembely+not+available+all+the+time+Re: assembely not available all the time ? <p>cool, have posted on connect.</p> <p>thanks</p> 2012-06-02T16:37:21-04:005013634http://forums.asp.net/p/1809169/5013634.aspx/1?Re+assembely+not+available+all+the+time+Re: assembely not available all the time ? <p>Hi</p> <p>The vs2012 RC had released.</p> <p>So how about your problem on 2012?</p> <p>&nbsp;</p> 2012-06-06T10:13:20-04:00