Wednesday, August 15, 2012

The name "button Name" doesnot exist in the current context

The name "button Name" doesnot exist in the current context

Hi all

I am new to silverlight.

I am using Silverlight 4, WCF RIA and EF

and I am using one aspx page in my project in "Projectname.Web" which is already created in asp.net project

on this aspx page I am getting the above error for command buttons, radiobuttons, labels and div

So please help me for resolving this error.

Answers & Comments...

Answer: 1

Somewhere in your code you are trying to find a button called "button Name" but there is on button with the x:Name="button Name" attribute defined.  I would do a global search in your project for "button Name" to see where/what you need to fix.  Also, you should not use spaces in the name attribute, read here for more info:

http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.name(v=VS.95).aspx

by :




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog