[RESOLVED]The name 'txtTotalPrice' does not exist in the current context

Hi,

In my application im trying to remove one table  with textboxes  .Commented that table but within  that table I have on textbox txtTotalPrice.Removed in code behind also but  it is still showing error . in the below line .I didn’t  understand what does it
mean.

<%@ Page Title="" Language="C#" MasterPageFile="~/attdasPTrack.master" AutoEventWireup="true" CodeFile="ProjectEdit.aspx.cs"  Inherits="ATTDAS_ProjectEdit" %

Remove the commented code also. That should solve the problem.

Reason being, if you do ‘HTML comment’ for server controls, then you have chance to get errors. So, we need to use server side comments in aspx pages to indicate aspx server engine to NOT process the server side controls.

HTML comments: <!– –>

Server side comments: <%– –%>

thanku

Leave a Reply