ASP.NET - ctrlName does not exist
Asked By Murali Joshi
03-Feb-12 02:14 AM
Hi All,
The controls I have designed in my aspx page do not reflect
in the code. The lines where Iam using the control show an error saying -
"The name <ctrlName> does not exist in the current context".
I've checked the spellings. They are same in both places. I cannot make the cause for this problem.
any solution??
Thanks in advance.
dipa ahuja replied to Murali Joshi
Close the web form and Re-build the application and then try to write in the code behind.
Danasegarane Arunachalam replied to Murali Joshi
Post a screen shot. That will help to solve the issue
Reena Jain replied to Murali Joshi
Hi,
Always try to provide full detail or code part where you are getting the problem.
The error because of name( 'ctrlName' )
that does not exist in the class, namespace, or scope. Check the
spelling of the name and check your using statements and assembly
references to make sure that the name you are trying to use is
available. One common mistake is to declare a variable within a loop or a
try block and then attempt to access it from an enclosing code block or
another code block

Net hi friends Any one send frequently asked Important questions in C# .Net, ADO .Net, Asp .Net and Sql Server. . . . . . . . tx in Advance. . . . . . Hi, Find this. . (B)What is an IL? (B How can we know a state of a thread? (A) What is use of Interlocked class ? (A) What is a monitor object? (A) What are wait handles? (A) What is ManualResetEvent and Webservices (B)What is an application domain? (B) What is .NET Remoting? (B) Which class does the remote object has to inherit? (I) what are two different types of remote A) What is scavenging? (B) What are different types of caching using cache object of ASP.NET? (B) How can you cache different version of same page using ASP.NET cache object? (A) How will implement Page Fragment Caching? (B) Can you compare ASP.NET
to get assembly info which namespace we should import? System.Reflection Namespace How do you declare a static variable and what is its lifetime? Give an example. Answer1 static int Myint time is during the entire application. br> Answer2 The static modifier is used to declare a static member, which belongs to the type itself rather than to a specific object cannot be used with indexers, destructors, or types. In C#, the static keyword indicates a class variable. In VB, the equivalent keyword is Shared. Its scoped to the class in which it occurs. Example a. Static int var / / in c#.net b. static void in Sql server as var_name int How do you separate business logic while creating an ASP.NET application? There are two level of asp.net debugging 1. Page level debugging For this we have to edit the page level debugging
Migration from ASP to ASP.net How to convert ASP site to ASP.NET site using C# http: / / www.asp.net / downloads / archived-v11 / migration-assistants / asp-to-aspnet hi, ASP.NET framework is very much different from unstrucured ASP and there is no correct way to
share session between Classic ASP applications and ASP.NET applications? I want to share session state between Classic ASP applications and ASP.NET applications. Can we share ? if yes , How ? Yes, it can. See the article at the user session, and can be used to identify session state for both classic ASP and ASP.NET. Session state information is stored in memory in ASP script and can't be shared with other applications, such as ASP.NET. If the session state is stored in a common format in Microsoft® SQL Server, the
ASP.NET DataList and DataRepeater Controls This is the third article in a three part series of articles pertaining to the understanding and application of ASP.NET 2.0 data controls. This article will address common functionality that may be required from ASP.NET DataList and DataRepeater data controls ASP.NET 2.0 Data Controls Author: Douglas Minnaar The intent of this series is to provide