Jay
asked on
Compiler Error Message: CS0103: The name 'pnlEvents' does not exist in the current context
After I added a sidebar and repositioned my items I had this error!
Codes from the source
<tr>
<td>
<div class="col-sm-4">
<div class="thumbnail bg-grey text-center">
<h2>$14</h2>
<p>Basic License</p>
<a href="#" class="btn btn-success" role="button">Buy Now</a>
</div>
</div>
<div class="col-sm-8">
<asp:Panel ID="Panel1" runat="server" cssClass="pnlEvents" ></asp:Panel>
</div>
</td>
</tr>
My code behind error
Line 52:
Line 53: //Add dynamic Panes to static Parent panel
Line 54: pnlEvents.Controls.Add(eve ntPanel);
Line 55:
Line 56: }
Codes from the source
<tr>
<td>
<div class="col-sm-4">
<div class="thumbnail bg-grey text-center">
<h2>$14</h2>
<p>Basic License</p>
<a href="#" class="btn btn-success" role="button">Buy Now</a>
</div>
</div>
<div class="col-sm-8">
<asp:Panel ID="Panel1" runat="server" cssClass="pnlEvents" ></asp:Panel>
</div>
</td>
</tr>
My code behind error
Line 52:
Line 53: //Add dynamic Panes to static Parent panel
Line 54: pnlEvents.Controls.Add(eve
Line 55:
Line 56: }
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.