What is the difference between x:Name="someName" in SL and ID="someID" in Asp.Net?

I have an Asp.Net background and trying to learn Silverlight.

Can you explain, what is the difference between x:Name="someName" in Silverlight, XAML and ID="someID" in Asp.Net markup?

(If they both make a element unique, why one is called Name and the other is called ID ? )


I gather compatibility with ASP.Net was not one of the requirements considered when they designed Silverlight (which derived in turn from WPF) :)

"ID" is a very technical term whereas "Name" is a bit more human readable. They are after all just the matching name of a member of the code-behind class generated at compile time. ID as a term makes more sense for data keys etc.

Classic ASP, and then ASP.Net, date back to before WPF and way before Silverlight so the naming is going to be a bit more old-school. Being more recent the naming of most elements tends to be a bit more sensible in Silverlight (compared to ASP).

Note: This is all just my opinion based on working with all the above technologies for many years. Hope it helps.

Need Your Help

Sphinx Public API documentation

python documentation python-sphinx

I have a large number of python file and I would like to generate public API documentation for my project. All the functions that are part of the api I have decorated with a decorator.

Isn't there a Go To Last Edit Location shortcut in XCode?

xcode macos ide editor intellij-idea

I'm rather new to XCode and I still miss so many shortcuts and features available in IntelliJ IDEA.