Stories Tagged with 'ASP.NET'


New ASP.NET 2.0 Version of The ADO Guy

Welcome to the new version of The ADO Guy.  Most of the changes are under the covers, but there are a few things to note:

Please let me know what you like and don't like.  A couple of things aren't working yet:

New Features Implemented

Url: http://wildermuth.com

I've added a couple of new features (thanks to Chris Sells for QA'ing it for me):

New ASP.NET 2.0 Web Projects Beta

Url: http://www.cerkit.com/cerkitBlog/PermaLink,guid...

SqlDataSources Unusable if Tables Allow NULL's

 I've been working on a problem for a client's project.  We are doing pretty raw RAD design for a small intranet project so I thought, hey let's just do SqlDataSources to get the pages up and running fast.  This works fine *if* we don't want any concurrency. 

Let me repeat that, this works fine *if* we do not want concurrency. 

ObjectDataSources Don't Work with Typed DataSets

Url: http://msdn.microsoft.com/newsgroups/default.as...

According to this post (this highlights my belief that MS is discouraging DataSets enough though they are using them everywhere (e.g. inside DataSources)).  SInce Typed DataSets don't work out of the box with ObjectDataSources, we are left with three uncomfortable solutions:

Why are ASP.NET 2.0 Projects so different from regular projects...

I am working on a portal project with ASP.NET 2.0 and I am loving it.  Lots of stuff is in the box that I need.  The project is using VB.NET so I wanted to make sure that everything was Option Explcit On and Option Strict On...but since it is a Web Application, the normal property pages are nowhere to be found (unless I am missing it).  If I create any other project type (I think), I can look at the project property pages and see the Compile tab:

VB.NET Property Pages

ASP.NET 2.0: How SqlProfileProvider Stores its Data...

This probably isn't entirely correct since I am just looking at the output (e.g. the database rows) to determine this.  For each object in profile (i.e. Users), there is a single row in the aspnet_Profile table.  This table is made up like so:

The three middle columns are used to store the properties and their values.  PropertyNames stores a list of properties with hints on how to retrieve it from the String or Binary column.  For example:

Button.OnClientClick() in ASP.NET 2.0 Rocks...

This new property (*not* event), allows you to wire up clientside code to be executed before the server-side onclick is handled.  In the old days we had to do this manually.  For example, this is how you would hook up a simple confirmation dialog:

This allows you to cancel the server-side event if the user says nope!  Cool!

Postposed Features of ASP.NET 2.0

Url: http://msdn.microsoft.com/asp.net/whidbey/beta2...

Of particular interest is the DataSetDataSource object which is being postponed.  Though you can use the ObjectDataSource to bind to a Typed DataSet so it's not that much of a death-knell.  Check it out...

New ASP.NET 2.0 Things I love!

I've been digging deep in to ASP.NET 2.0 the last couple weeks and I have been pleasantly surprised by a number of nice changes that probably didn't make the new features lists:

In addition, I was surprised by the intuitive forms authentication controls.  I was using the PasswordReminder control and wanted to capture the reminder and change the password to reset the password instead of remind them of their password since we were just storing the hashes.  But after digging in deep, I found out that since I setup the personalization to store as hashes, it was resetting the password. 

Announcing: GiveAQuiz.com!

Url: http://giveaquiz.com

GiveAQuiz.com

Time Zones and Servers

Wonder-121-Time-Zone-Static-ImageI am getting married and that means I get a bunch of development tasks to do for the wedding planning. I guess it’s my own fault, I did propose with an app.

One of the tasks I had to do was create a new page on my wedding site for the day of the wedding to include things like directions and parking. Pretty simple HTML stuff, but one thing I wanted to be sure of was to only show the page on the day of the wedding. This should be easy, but the time zone of the server has kicked my ass before.

Phil Haack and a Bad Joke on This Week's Podcast

As a fan of the direction of ASP.NET, I’ve been an avid fan of Phil Haack’s for some time now. His clarity of communicating why the web should work definitely helped ASP.NET become the great framework it is today. He’s now doing the same thing at GitHub!

I get to finally use my bad joke about his last name on this week’s podcast. We also talk about his start, the move to Seattle to work at Microsoft and how to keep Californian’s out of Washington state.

New Course on .NET Code Reviews

DiscussOne of the things that I help companies with are code reviews. I love doing code reviews. It let’s me look at a large codebase with fresh eyes and help a company out with a set of recommendations for improving their process, teams and code.

After doing enough of these some patterns emerged. From this has come my new Pluralsight course on Lessons Learned from Real World .NET Code Reviews.

Mapping Between Entities and View Models

As many of you know, my recent course on Pluralsight dealt with Best Practices in ASP.NET: Entities, Validation and View Models. As I’ve worked with clients, there seem to be a non-ending list of ways to deal with data in ASP.NET.

One of the topics that I am passionate about as it relates to the course is how to manage the Model to Entity relationship. While being pragmatic is important, I still believe that there are many situations where you want a separate Model for a view (server or client-side) instead of just using the Entities that you’re storing data with.

New ASPNET5 Course Coming

I’m diligently working towards my new Pluralsight course and I am very excited about it. The new course is an end-to-end building of a web app using ASP.NET 5, MVC6, Entity Framework 7, Angular 1.4, and Bootstrap 3.x.

This course is a bit different than other courses I’ve done because we’re releasing it before the RTM of ASP.NET 5. Because of this, I wanted to let my students know what to expect.

ASP.NET 5 Identity and REST APIs

deadboltAs I’ve been digging into building apps with ASP.NET 5, I’ve had to get used to some of the new metaphors. Some of these make sense (especially if you’ve used Node before), but some are brand new to me. One of these metaphors I ran into was the idea of Identity notifications. 

The problem I was running into was one I thought many people would run into: using Identity (e.g. authentication/authorization) with REST APIs. Here is the scenario:

A Look at ASP.NET 5: Part 4 - MVC 6

measurewoodI had planned on finishing these a long time ago, but working on my Pluralsight course about ASP.NET 5 distracted me. Sorry about that.

If you’ve been doing web development in .NET, you probably have at least a passing experience with ASP.NET’s MVC framework. At it’s core, it’s a common way to build and architect web applications. The new stack is built on the same metaphors from the older versions. If you’ve been using MVC before, you won’t be lost and some of the additions are welcome.

A Look at ASP.NET 5: Part 5 - The API

hddcable

The more I work with ASP.NET 5, the more it looks and feels like the old ASP.NET stack except for the hosting. That’s a good thing in most cases, but writing the API that changes.

Upgrading from ASP.NET 5 Beta 7 to Beta 8

officetoolsIf you’ve been following along, you know by now that I’m investing my time into learning ASP.NET 5. Now that the ASP.NET team have released a new version, let me help you move your code to the new version.

The update this time includes some simple package changes but also some major API changes. I am sure I can’t cover them all here, but hopefully I’ll help you avoid the major ones.

The Week at DEVIntersection

PrintI want to thank all the great attendees I met at this week’s DEVIntersection (Fall 2015) conference in Vegas! Richard Campbell and company put on a great show!

I had the opportunity to do three talks and two of them went well (if you were at my Bootstrap talk, you know what I’m talking about). In any case, I wanted to share the slide and code with the attendees so here it is:

ASP.NET 5 and Bower

ps_logoAs most of you already know, I have a new course on ASP.NET 5. I’ve just released a teaser video that shows how the Bower.json editor in Visual Studio works.

The course was recently updated to use the ASP.NET Beta 8 bits. I am looking forward to the next update of ASP.NET and expect to continue to update the course all the way through the RTM.

Upgrading ASP.NET 5 Beta 8 to RC1

UPDATED: Missed fixes.

It’s that time again. ASP.NET 5 has a new release and this one has a go-live license! As announced today, the RC1 is available and a new RC2 is coming in the future.

ASP.NET 5 Webinar

I had a great time today talking about ASP.NET 5 on a Pluralsight webinar. Over 1,000 people were able to attend. Thank you all for tuning in!

The webinar showed the very basics of what ASP.NET 5 is and why it exists. I had fun answering all the questions and wish we had time to answer more.

Upgrading ASP.NET 5 Beta4 to Beta5

officetoolsFor my upcoming course, I have a decent sized example that I’ll be teaching from. In the process of watching ASP.NET 5 go through the sprints, I have to upgrade the project at every step. I feel at some point I should be getting better at dealing with the sprints, but not yet ; )

Here is a short post that includes the different things I had to deal with in upgrading the project. It’s not just the ASP.NET 5 update, but also EF7 and a couple of small details.


Application Name WilderBlog Environment Name Production
Application Ver 1.1.0.0 Runtime Framework .NETCoreApp,Version=v1.1
App Path D:\home\site\wwwroot Runtime Version .NET Core 4.6.24628.01
Operating System Microsoft Windows 6.2.9200 Runtime Arch X86