help.net


Musing on .Net

News





hit counters




Open source CMS


Technorati

My blog

Irish blogs

Locations of visitors to this page Get Chitika eMiniMalls

.Net useful

Blogs I read

PocketPC

SQL

Usability

The .Net Coffee Break Show - Using ADO.NET Data Services with Silverlight

Join our next webcast! 15th of October 2008

Developers.ie invites all our members to attend our regular webcast.
 
Our next speaker is Tim Heuer, Silverlight Program Manager for Microsoft. Tim Heuer

Tim will broadcast from Arizona!

Summary:

Using ADO.NET Data Services with Silverlight
As Silverlight 2 releases more organizations will be looking at the platform for business applications. 

Of course, most applications leverage some type of data in the workflow, whether that is simply presenting it or enabling users to operate (create,update,delete) on that data.  We'll take a look at how some pieces of the .NET ecosystem help enable this quickly for Silverlight developers, specifically Silverlight 2, ADO.NET Data Services and .NET Framework 3.5 SP1.


This will be broadcast live on Wednesday 15th of October at 15:00 (Irish time!)

All the connection details to the show will be sent to you a few days prior to the start of the webcast.

This event is free but you need to visit our new Webcasts section to register!

The .NET Coffee Break show with Sidar Ok - Using POCOs as Linq to SQL entities

Join our next webcast! 2nd of October 2008

Developers.ie invites all our members to attend our regular webcast.
 Sidar Ok
Our next speaker is Sidar Ok, with a talk on Using POCOs as Linq to SQL entities.
 
Sidar Ok is a Senior .NET developer in Decare Systems Ireland based in Cork, and is a regular blogger and a contributer to many Open Source projects and MSDN Forums. He holds an MCPD.NET, ASP.NET 3.5 Certified Specialist, and lately developed 2 live enterprise applications who are live now with Linq to SQL. He is going to share his thought and experiences on this.
You can find his blog on http://www.sidarok.com.

In Domain Driven Design, keeping infrastructure related concerns out of the domain is essential, and it is called Persistence Ignorance (PI). To achieve PI, the entities should be pure POCOs.

In this show Sidar will discuss these concepts, how they relate to linq to sql, and show how to achieve implementing persistence operations without having to reference persistence related code in the entities.

This will be broadcast live on Thursday 2nd of October at 11:00 (Irish time!)

All the connection details to the show will be sent to you a few days prior to the start of the webcast.

This event is free but you need to visit our new Webcasts section to register!

 

.NET event in Dublin - Josh Holmes - Developing RIAs with Silverlight 2

 

09/10/2008 - Dublin - Josh Holmes - Developing RIAs with Silverlight 2
Location: Morrisson Hotel Dublin

 

Summary

Rich Internet Applications (RIA) provide a similar user experience than traditional desktop applications combined with the ease of deployment of web/browser based applications. We explore architectural patterns such as state management, fault tolerance, service composition, communications protocols, message formats and go into details how RIAs can be developed using Microsoft Silverlight 2.0.

Speaker: Josh Holmes 
 
Josh HolmesJosh Holmes is a RIA Architect Evangelist with Microsoft focused on building and educating the dev partners with a Rich Internet Application offering. Prior to joining Microsoft in October 2006, Josh was a consultant with SRT Solutions working with a variety of clients ranging from large Fortune 500 firms to smaller sized companies. In most situations, Josh was called in as the technical leader on a project to lead the clients team to success. Josh is a frequent speaker and lead panelist at national and international software development conferences, including VSLive, Software Development Expo (East and West), Basta and the Rich Web Experience, focusing on emerging technologies, software design and development with an emphasis on mobility and RIA (Rich Internet Applications).
 
Josh has written and delivered many training classes over time for both public audiences as well as courses tightly tailored for the client's needs. The topics of these classes ranged from XML to ASP.NET to the Compact Framework. Josh speaks from his experience and conviction based on many production successes that his clients have experienced. Community focused, Josh has founded and/or run many technology organizations from the Great Lakes Area .NET Users Group to the Ann Arbor Computer Society and was on the forming committee for CodeMash. You can contact Josh through his blog at www.joshholmes.com.
 

Google Android alias the Evil Cloud

Like many on this planet, I followed today the official launch of Android by Google.

Personally I am not impressed, and I noticed very quickly some issues. First it's Google, so what you got with your Android Mobile is more or less a portable version of their application.

On this video, Google argue that even if you break or lose your phone your data is safe. And where you think they store it? Of course in Google data centers. Now sorry but that's creepy. I have never been an advocate of the Cloud, but man this is really scary.

By using the T-Mobile device you are giving all your data (contacts, emails, calendar) to Google! Now of course for them it's business as usual, but for me I prefer my Windows Mobile phone (even if it's not perfect) where I can choose what I want to do with my data.

Wait to see Google AdSense will probably be push everywhere too!

Now for the UI design, well not quite right yet. What I see on this video is confusing, ugly in some points, and more like a rip off of what I have n my Windows Mobile phone. Where is the innovation promised by Google?

At least the iPhone has the cutting edge regarding the interface. Also after watching twice the video, I am not convinced about the speedy response. Wait and see in real world is this UI is that fast.

So long Android, I prefer to keep and control my own personal data.

 

What are the hidden features of Asp.Net?

There are always features that would be useful in fringe scenarios, but for that very reason most people don't know them.

What are the ones that you know?

Summary of Answers: Here's a list based on the answers put in by everyone so far:

  • Use of HttpContext.Items for caching request level items.
  • Using HttpContext.IsCustomErrorEnabled
  • Use of HttpModules.
  • Enabling Trace from code based on QueryString Parameters and using Single Code Behinds for multiple ASPX Pages: Link to answer for code samples
  • For testing, you can send emails to a folder rather than a SMTP server with a simple change in the web.config: Link to answer for code sample
  • In ASP.Net 3.5 SP1, customErrors has a redirectMode attribute which allows showing error pages without changing the URL. Also, the form tag now recognizes the action attribute. Great for when you're using URL rewriting.
  • Setting Server Control Properties based on Target Browser: article
  • you can put an asp.net app offline simply by placing a file called app_offline.htm in the root. All new requests redirect to this file.
  • you can throw an HttpException which will be caught by Asp.Net and the corresponding customError Page will be shown. Link to answer for code sample

Read more...

 

Posted: Sep 22 2008, 03:17 PM by help.net | with 1 comment(s)
Filed under:
Setting Server Control Properties Based on Target Browser

You can set a different value for a property for IE than for Firefox - and for anything else. I didn't try all properties, but I did try many that would matter, such as Text and OnClientClick etc, and they do work. Take a look at the following markup:

<asp:Label runat="server" ID="labelText" 
ie:Text="This is IE text"
mozilla:Text="This is Firefox text"
Text="This is general text"
/>

<br />

<asp:Button runat="server" ID="buttonText"
ie:Text="IE Button"
ie:OnClientClick="javascript:alert('Hello IE!');"
mozilla:Text="FF Button"
mozilla:OnClientClick="javascript:alert('Hello Firefox!');"
Text="General Button"
OnClientClick="javascript:alert('Hello everyone else!');"
/>


Notice the "ie:" and "mozilla:" prefixes on the Text and OnClientClick properties.

Read more...

 

Posted: Sep 22 2008, 02:15 PM by help.net | with 1 comment(s)
Filed under:
Taking an ASP.NET Site Offline with a Message

This was another one that I was literally beside myself that I didn't know this one before. A fellow business partner of mine named James Sutton mentioned this one to me. This one's been around since ASP.NET 2.0 as well. If you have an ASP.NET web application site, and you place a text file named "app_offline.htm" in the root of the site, all requests to that website will redirect to that app_offline.htm file. Basically, if you need to take an entire ASP.NET site offline, you can place some nice message in that file. Then, any new requests to a URL, any URL, in that website will redirect to that file allowing you to do maintenance to the site, upgrades, or whatever. It is not really a redirect though. ASP.NET essentially shuts down the site, unloads it from the server, and stops processing any requests to that site. That is, until you delete the app_offline.htm file - then things will continue as normal and your ASP.NET site will load up and start serving requests again. 

A super-cool side effect of this is that any files that are locked by the site, such as a database or other resources, are freed since the application domain has been unloaded from the server. This allows you to remove the locks from those files and replace them, without the need to do a full IISRESET, taking down other sites on the server. One thing to keep in mind with this file however, make sure you out enough content in it so it is larger than 512 bytes or IE will consider it a 404 and will display the 404 instead of the contents of your app_offline.htm file.

Thanks to Ryan Farley for posting this tip...

 

Posted: Sep 22 2008, 02:14 PM by help.net | with no comments
Filed under:
New Image Generator control in ASP.Net 3.5

Storing images in database BLOB field and displaying it on aspx page is one of the common tasks we do in asp.net projects.  Asp.Net itself does not have an in build control to bind the image stored in database. To display an image stored in database, we will write an HttpHandler which will fetch the image from database and do a binary write. We all know that doing a binary write will become cumbersome when the number of images increases and the number of users becomes high. This week Microsoft have released a new control called ASP.NET Generated Image control to display image in ASP.Net page. This article will give you a kick start on this control and some of its features.

 Read more...

 

Posted: Sep 09 2008, 10:59 PM by help.net | with no comments
Filed under:
H.264 and AAC support coming to Silverlight

Great news! But does it means Windows Media Services will be updated or we need to use only Windows Server 2008?

At IBC 2008 we will be demonstrating a technology preview of H.264 video and Advanced Audio Coding (AAC) audio playback support in Silverlight, and H.264 authoring using Microsoft Expression Encoder and Windows Server 2008 for delivery. Until now, Silverlight has supported the SMPTE VC-1 and Windows Media formats, as well as MP3 for audio, enabling customers to take advantage of broad support across the Windows Media ecosystem, including third-party tools, service providers and content delivery networks.

We’ve always wanted Silverlight to support a variety of formats, so today we’re announcing that H.264 and AAC support will be available in a future version of Silverlight, which will offer content owners greater flexibility and choice to deliver video and audio.”

Scott Guthrie

Via Tim Heuer's blog

 

Posted: Sep 09 2008, 10:50 PM by help.net | with no comments
Filed under:
Surface SDK in action

Via Tim Heuer blog, I discovered this cool video of Surface in action. I am amaze by the relatively simple code to produce such incredibel effects.

Check here...

 

More Posts Next page »