.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Steve Jackman
Imran Ghani
Santhakumar Munuswamy

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Error."controlID" does not exist in current context.

Posted By: SureshM     Posted Date: April 08, 2011    Points:5   Category :ASP.Net
Hi friends,

I have an image control in aspx page, but in the cs page it shows an error "Imcross does not exists in the current context".

this is my code:

<asp:ImageButton ID="ImCross" runat="server" ImageUrl="~/App_Themes/2fo2/images/cross.gif" />

Responses
Author: Sunil Yadav       [Moderator]      
Posted Date: April 08, 2011     Points: 20   

Hi,

Check whether the CodeBehind file path is set correctly.

hope this helps.


Author: Maverick             
Posted Date: April 11, 2011     Points: 20   

Hello,

Please check the codebehind property of the aspx page is set correctly.

Thanks,
Maverick

Thanks,
Maverick
Author: Kannan C S             
Posted Date: April 13, 2011     Points: 20   

Hello Suresh,

Please check the designer.cs file ,the control is generated or not in the design file .If not please add manualy.........



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend