Quantcast
Viewing latest article 3
Browse Latest Browse All 5

Re: How to Solve This Error 'myLabel' does not exist in the current context

Thanks For Replaying me Sreejukg.

<%@ Page Title="" Language="C#" MasterPageFile="~/Home.master" AutoEventWireup="true" CodeFile="Package.aspx.cs" Inherits="Package" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Body" Runat="Server">

<td>
<asp:UpdatePanel ID="UpdatePanel4" runat="server" UpdateMode="Conditional">
<ContentTemplate>

<table>
<tr>
<td>
<asp:DropDownList ID="ddlComparePackage2" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlComparePackage2_SelectedIndexChanged">
<asp:ListItem>7 Months</asp:ListItem>
<%--<asp:ListItem>6 Months</asp:ListItem>--%>
</asp:DropDownList>
<div class="clearfix">
</div>
<b>Rs.
<asp:Label ID="lbCost2" runat="server" Text=""></asp:Label>

</b>
<%--<b>
<asp:Label ID="lbCost21" runat="server" Text=""></asp:Label>
</b>--%>
</td>
</tr>
<tr>
<td>
<asp:label id="myLabel" runat="server" />

<%-- <img runat="server" src="images/check.png" />--%>
</td>
</tr>


<tr>
<td>
<asp:Label ID="lblPack2SMS" runat="server" Text=""></asp:Label>
<%--<img src="images/check.png" />--%>
</td>
</tr>
<tr>
<td>
<asp:Image ID="imgvideo1" ImageUrl="~/images/cancel.png" autopostback="true" runat="server" class="img-responsive" style="width:17px" />
<%--<img src="images/check.png" />--%>
</td>
</tr>
<tr>
<td>
<asp:Image ID="IsEmail1" ImageUrl="~/images/cancel.png" autopostback="true" runat="server" class="img-responsive" style="width:17px" />
<%--<img src="images/check.png" />--%>
</td>
</tr>
<tr>
<td>
<asp:Button ID="Button1" OnClick="btn2_Select" runat="server" Text="Select" />
<%--<button class="btn btn-warning" id="btnSelectPackage2" onclick="window.location.href='PaymentOptions.aspx'" type="button" data-toggle="modal" data-target="#PackageDetails">
Select
</button>--%>
</td>
</tr>
</table>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddlComparePackage2"/>
</Triggers>
</asp:UpdatePanel>
</td>

</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>

</asp:Content>

this is My .aspx Code

But Again I Got Same Error

Thanks & Regards Samba


Viewing latest article 3
Browse Latest Browse All 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>