Posted on: 3/26/2011 2:48:05 AM | Views : 256

Hi,
I've seen other threads regarding this but I'm still confused by my problem.  Here's a code snippet from my aspx:
<body> <form id="myForm" runat="server"> <div> </div> </form> </body> My code behind snippet is this:
protected void Page_Load(object sender, EventArgs e) { pageContainer = this.myForm; initWebPart(); }  
As you can see "myForm" is the name of my form specified in aspx.  In my .cs file, myForm can be selected from the list.  So, why do I get an error saying there's no definition?
Adding to the above, I've created this page from scratch and copied code from another project.  The form was originally called something else.  I was getting the same error so I changed it from 'form1' to 'myform' to see if that made a difference.&nbs ...

Go to the complete details ...