In the second part of this series, we will continue to examine and explore more of Silverlight 2.0’s controls.
Read the article here
In the second part of this series, we will continue to examine and explore more of Silverlight 2.0’s controls.
In this article (Part 2) the MS Chart control will be bound to the SqlDataSource created in Part 1.
When a visitor registers a new account on an ASP.NET website that uses the Membership system, they are prompted (by default) for their username, password, e-mail address,
and other pertinent information. Along with functionality for registering new accounts, the ASP.NET Membership system provides page developers techniques for modifying
information about users. For instance, with just a couple of lines of code you can change an existing user’s e-mail address, approve a user, or unlock them (if their account was
locked out). However, there are certain bits of user information that cannot be modified through the Membership API, such as the username.
For most sites this is a non-issue. Once a visitor has registered an account that username is fixed; if they want a different username, well, they’ll just have to register
a new account. But consider a website that has customized the account creation process so that instead of prompting the user for both a username and e-mail address, the user
is only asked to enter an e-mail address and that it is used as both their username and e-mail address on file. Anytime a user switched e-mail addresses - which can happen
when changing jobs, changing ISPs, or moving to the new, hip, web-based e-mail provider of the day - they need to also change their username on your site.
In order to change a user’s username we’ll need to bypass the Membership API and work directly with the user store. This article shows how to interface directly with the
SQL Server database schema used by the SqlMembershipProvider to change an existing user’s username. Read on to learn more!
Read More >
In this article, Sergey examines the 3D capabilities in Silverlight 3 that were not supported in previous versions of Silverlight. It became possible in Silverlight 3 to create 3D projections of content in an application. Sergey provides a detailed explanation of the various aspects with relevant source code examples along with screen shots including the usage of animation.
I really advocate folks reading as much source as they can because you become a better writer by reading as much as writing. That's the whole point of the Weekly Source Code - reading code to be a better developer. Reading code in Open Source projects is a good way to learn, especially if the project has been around a while and been successful, or if you already respect the team of people working on it. Less reliably, you can find snippets of code by searching and sharing code. David Ebbo is scary clever . You know someone is smart when they come up with something you don't think you yourself could come up with on your own, but you still kick yourself for not thinking of it in the first place. David's been experimenting with ways…(read more)
A while back I wrote about a subtle JSON vulnerability which could result in the disclosure of sensitive information. That particular exploit involved overriding the JavaScript Array constructor to disclose the payload of a JSON array, something which most browsers do not support now. However, there’s another related exploit that seems to affect many more browsers. It was brought to my attention recently by someone at Microsoft and Scott Hanselman and I demonstrated it at the Norwegian Developers Conference last week, though it has been demonstrated against Twitter in the past . Before I go further, let me give you the punch line first in terms of what this vulnerability affects. This vulnerability requires that you are exposing a JSON service…(read more)
When working on my MVC T4 template , I was not able to use reflection to discover the Controllers and Actions, because the code that the template generates is itself in the same assembly as the controllers. So that causes a bit of a chicken and egg problem. Instead, I had to get out of my element and learn something I was not familiar with: the Visual Studio File Code Model API. It’s very different from using reflection, because instead of working at the assembly level, you work at the source file level. You have to first locate the source file you want to look into. You can then ask for the namespaces that it contains, and the classes that they contain, and finally the various members in those classes. To be honest,…(read more)
Recently a friend of mine at Microsoft asked about tips for how to land a great Program Management job at Microsoft. It has been a while since I did a “PM Tips” post, so I thought I’d use the opportunity to share my thoughts and get your feedback. I have done lots of PM interviews over the years and through the process I have developed a few things I look for to spot great program managers. In fact I have often mentioned to co-workers in Dev or test and even people I meet at social events that they would be great PMs… most of the time they look at me like I am crazy… but sometimes, they turn out to be, in fact, really great PMs. Getting the Interview Know what you are looking for – Given this economy, I know many folks…(read more)
In designing .NETOOP we have this issue: Since .NETOOP will be an adaptable application designed to meet the needs of many users, some of the things that one might hard code in an application like “Web Site Name” will need to be set at installation time. For “system” configuration settings we have the web.config file. For language and culture variations we have resource files. But this type of site configuration doesn’t really fit nicely into either of these categories. We could use……. web.config .res files .xml files a table in the database. There are a number of considerations. Since these are not really the same kind of configurations issues that we normally put in the web.config file (like a connection string) it would seem that…(read more)