.NET architecture, programming tips and tricks around Microsoft technology stack - Azure, WCF Services, SQL and strategy work.
Thursday, December 21, 2006
XNA Game Studio Express 1.0 was officially released on December 11, 2006 (get it here).
You can download the XNA Game studio express 1.0 from http://msdn.microsoft.com/directx/XNA/default.aspx or you can check this independent site -
http://www.xnadevelopment.com/
This is free for download!!!
Explore the tutorials on XNA development www.xnadevelopment.com/ and learn how XNA uses .net Compact framework.
So, if you want some fun this X'mas go ahead and develop some games and impress your friends :)
Cheers- Dipesh
Friday, November 24, 2006
Gotcha - How to add uninstall option in the “User’s Program Menu” for web setup project?
The user doen’st have to go to control panel/add remove programs/ and then choose to uninstall the app, but just go to Start button, navigate to the app and choose uninstall!
Solution -
1. Create simple project UninstallApp.
2. Add in Main(){string[] arguments = Environment.GetCommandLineArgs();foreach(string argument in arguments){string[] parameters = argument.Split('=');if (parameters[0].ToLower() == "/u"){string productCode = parameters[1];string path = Environment.GetFolderPath(Environment.SpecialFolder.System);Process proc = new Process();proc.StartInfo.FileName = string.Concat(path,"\\msiexec.exe");proc.StartInfo.Arguments = string.Concat(" /i ", productCode);proc.Start();}}
3. Create new setup project
4. Add UninstallApp.exe to "Application Folder" in 'File System' part
5. In "User's Program menu" create shortcut to UninstallApp.exe and in properties of this shortcut in parameter 'arguments' insert value "/u=[ProductCode]".
6.Rebuild deployment project.
Thanks to Francisco Jileta and Michael Nielsen for pointing to us on this: http://gaaton.blogspot.com/2006/07/add-uninstall-and-him-shortcut-to-net.html
Hope it helps!
Thursday, October 19, 2006
Microsoft Visual Studio Code Name "Orcas" Community Technology Preview - Development Tools for .NET Framework 3.0
Keep exploring... :)
"IIS 7.0"/ IE 7.0 release much awaited...
** Check this excellent talk on "Channel 9" with Scott Guthrie here: Scott Guthrie - Talking ASP.NET and IIS 7.0 http://channel9.msdn.com/ShowPost.aspx?PostID=44084
*** Check out the IIS 7.0 show here: The .NET Show: IIS7.0 (http://msdn.microsoft.com/theshow/episode.aspx?xml=theshow/en/Episode056/manifest.xml )
* IE 7.0 can be explored and downloaded here: www.microsoft.com/windows/ie/downloads/
Thanks - D
Live webcasts free from "Redmond"...
Sunday, September 17, 2006
2 simple steps to enable notifications from SQL 2005 to ASP.net 2.0
A> Change the SQLDependency from your DB:table name to CommandNotification
B> And in the Global.asax file under Application_Start event start the SQL Dependancy. That's it!
System.Data.SQLClient.SQLDependancy.Start(ConnectionString)
1> NO POLLING FROM THE ASP.net runtime
2> AVOIDS DATABASE TRIPS UNNECESSARILY
3> SQL SERVER 2005 automatically sends notification whenever there is change in the data (at table level)
4> SILENT communication between SQL engine and .net runtime
5> Performance benefit compared to ASP.net polling
Note: You need to have SQLCacheDependancy enabled = True in web.config file
Cheers - DJ
Wednesday, August 30, 2006
Thursday, August 24, 2006
Automatically Update Visual Basic 6 Applications with .NET and ClickOnce
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/atupvb6ap2.asp
Monday, July 17, 2006
Keep Sites Running Smoothly By Avoiding These 10 Common ASP.NET Pitfalls
Keep Sites Running Smoothly By Avoiding These 10 Common ASP.NET Pitfalls -
- LoadControl and Output Caching
- Sessions and Output Caching
- Forms Authentication Ticket Lifetime
- View State: The Silent Perf Killer
- SQL Server Session State: Another Perf Killer
- Uncached Roles
- Profile Property Serialization
- Thread Pool Saturation
- Impersonation and ACL Authorization
- Don’t Just Trust It—Profile Your Database!
The (un)official guide to SQL Reporting Services 2000 & 2005 interop
Check this blog for questions surrounding differences between SQL 2000 and SQL 2005 reporting services: http://blogs.msdn.com/bimusings/archive/2005/12/13/503110.aspx
Thursday, June 15, 2006
Back after a break...
I recently attended 2 day Microsoft Tech Ed session in Mumbai, India... overall good one. Spoke lot about their new products and dozen more which could not make sense to me.,. i am lil dumb may be :)
Anyways what interested me was WinFX track which i attended last day... the presenter spoke lot on WPF, WWF and WCF.
List of new products outlined:
Windows Vista
Windows WorkFlow - not sure if it will be called as .net Framework 3.0
BizTalk 2006
Sharepoint 2007
C# 3.0 / VB 9.0 (not sure when it is going to be released, but plans)
New version of Visual Studio guess code named Orcass
LINQ
Ofcourse along with VS 2005, SQL 2005 and VSTS coming off the market !!!
btw, Did you check the Internet Explorer 7.0 beta copy?
Check this ... http://www.microsoft.com/windows/ie/default.mspx
Cheers - D
Monday, April 24, 2006
ahhhhhhhhhh! long time, i have been missing... my fault...but i will try to be much over this henceforth.
hmmm, so check this Microsoft Certified Architect Program that identifies top industry experts in IT Architecture. These architects can employ multiple technologies to solve business problems and provide business metrics and measurements to describe the success or failure of the projects they drive. The program is currently in beta, and is expected to open to the architect community in early 2006.
http://www.microsoft.com/learning/mcp/architect/default.asp
Also, "Explore the latest posts from architecture bloggers as well...."
http://msdn.microsoft.com/architecture/shareideas/architectureblog/default.aspx
Cheers - D
Thursday, March 30, 2006
Download Free C# Code Snippet Libraries - MSDN
http://msdn.microsoft.com/vstudio/downloads/codesnippets/default.aspx
Sunday, March 19, 2006
Migration from VB6 to .net 2.0 migration...
http://searchvb.techtarget.com/originalContent/0,289142,sid8_gci1159643,00.html?bucket=NEWS
Tuesday, March 14, 2006
COBOL on .Net 2.0 ?
Interested in LOB - > COBOL on .Net 2.0 ?
- Fujitsu has made a lot of money in this area - http://www.netcobol.com/products/windows/netcobol.html
- Microfocus is other main player in this space. Their product now also produces MSIL similar to Fujitsu.
Cheers - D
Interesting Webcasts on migration to .net 2.0...
MSDN Webcast: A First Look at ASP.NET 2.0
MSDN Webcast: Working with New Data-Enabled Controls in ASP.NET 2.0
MSDN Architecture Webcast: Customizing Appearance in ASP.NET 2.0 (Level 200)
MSDN Webcast: patterns & practices Guidelines to ASP.NET Security (Level 200)
Monday, March 13, 2006
Anyways this week is marked as "Migration week" ... ( moving to > .net .20)
This is the a good start by MS to kick start migration activites:
Upgrading from ASP.NET 1.x
Happy Migrating - DJ :)
Wednesday, March 01, 2006
Next Business pie... Migration projects
Migration from VB DNA to .net 2.0 or .net 1.1 to 2.0 (slim chances, i just spent millions developing the app on .net 1.1... and now .net 2.0..ghosh! :) Anyways few enhancements or side by side churning of the pages in asp.net 1.1 and asp.net 2.0 !
Not only Migration from MS technologies, but we must target other areas... such as java to .net 2, Forte to .net 2, .net - SAP, .net - Peoplesoft integration and more.
Let's start the ball rolling and generate few dollars ya... i am tierd :-P
-DJ
Monday, February 27, 2006
"Mendocino" - Microsoft / SAP alliance focusing on the implementation and integration of Microsoft and SAP technologies...
Check this:-
http://www.microsoft-sap.com/technology.aspx
Mendocino press release from SAP:-
http://www.sap.com/company/press/press.epx?pressID=4520
Sunday, February 26, 2006
A framework to build rich Web apps on top of ASP.NET 2.0, "Atlas" First Look... Great video
ASP.NET "Atlas" First Look... Great video here...
Nikhil Kothari provides a brief overview of ASP.NET "Atlas", a framework to build rich Web apps on top of ASP.NET 2.0. The demo shows an app that uses the new server controls from the December CTP to incrementally enrich standard ASP.NET pages and an app that shows client-centric app development.
http://msdn.microsoft.com/msdntv/episode.aspx?xml=episodes/en/20060119AtlasNK/manifest.xml
Need Converting a Data-Oriented Application from VB 6 to VB 2005" - Series Part 1-3
http://msdn.microsoft.com/library/en-us/dnvs05/html/adotonet.asp
Thursday, February 23, 2006
Some excellent LINQ bloggers!
Updated VB 9.0 (LINQ + XML) preview out!
http://www.panopticoncentral.net/archive/2006/02/06/11119.aspx
Updates to the XML integration syntax http://www.panopticoncentral.net/archive/2006/02/22/11276.aspx
The Developer Division Lame Listhttp://www.panopticoncentral.net/archive/2006/02/15/11225.aspx
Just because it comes in your size, doesn't mean you should wear it.
http://www.panopticoncentral.net/archive/2006/02/13/11146.aspx
Check Out the New LINQ Preview from the Visual Basic Team VB 9.0
The January tech preview of Visual Basic support for LINQ is now available for download! This is an additive release to the one that came out in the PDC timeframe. It expands the XML integration in both the language and IDE, provides some editor features for the LINQ syntax, and enables DLinq for Visual Basic.
Future VB9.0:
http://msdn.microsoft.com/vbasic/Future/default.aspxDownload Visual Basic 9.0 LINQ Technology Preview: http://msdn.microsoft.com/vbasic/Future/default.aspx
XLING Overview:
http://msdn.microsoft.com/VBasic/Future/XLinq%20Overview.doc
Tuesday, February 21, 2006
User Interface Controls in Visual Basic 6 and Visual Basic 2005
http://msdn.microsoft.com/vbrun/default.aspx?pull=/library/en-us/dnvs05/html/UIConVB6and05.asp
Monday, February 20, 2006
Simplify Development With The Declarative Model Of Windows Workflow Foundation
This article discusses:
- Windows Workflow Foundation
- What's inside a workflow Compo
- site activities and execution
- Context and state management
Tuesday, February 14, 2006
Sunday, February 12, 2006
Visual Studio Add-In that "Converts C# Code To Visual Basic"
Paste As Visual Basic
http://msdn.microsoft.com/msdnmag/issues/06/02/PasteAs/default.aspx
Great... is it? - DJ
Thursday, February 09, 2006
Microsoft Dynamics GP 9.0...try it (over 90 days of trial version)
Microsoft Dynamics GP 9.0
Highlights:
•Microsoft Dynamics GP 9.0: New version of Microsoft Great Plains empowers your people
•Special offer: Save up to 61% and nurture bigger business on a small budget
•Customer video: Orange County Choppers leaves data-management headaches in the dust
Using Microsoft Dynamics GP
•Microsoft Dynamics training
•Technical information and white papers
About the Product:
•Product overview
•Customer stories
•Demos
•Fact sheets
Wednesday, February 08, 2006
Is .NET 2.0 Gridview more powerful?
Read this article, http://msdn.microsoft.com/msdnmag/issues/04/08/GridView/ it discusses:
- The ASP.NET 2.0 GridView, FormView, and DetailsView
- Differences between the DataGrid and the GridView
- The programming interfaces of these controls
- How to achieve master/detail views
Happy Programming!
Sunday, February 05, 2006
.NET reverse engineering tools
Interested in finding out whats in a DLL, when you just have a .net DLL and NO source code...
Try Lutz Roeder’s .NET Reflector:
http://www.aisto.com/roeder/dotnet/
ORhttp://www.programmersheaven.com/zone28/cat754/19049.htm for .net reverse engineering.
Cheers - D
Thursday, February 02, 2006
Google Maps - AJAX style application
With applications like Google Maps for inspiration, it seems everybody's been talking about what you can do with AJAX. But many don't know that writing AJAX-style applications that can do partial screen refreshes without a trip to the server are easy to write in ASP.NET 2.0 using the built-in Client Callback Manager.
Check this dex article for details...http://www.devx.com/webdev/Article/28451
Tuesday, January 31, 2006
Take a test...Microsoft .net 2.0 Skills Assessment
By completing this Microsoft Skills Assessment, you can receive a Personalized Learning Plan to help you understand if you are ready to implement specific business solutions.
Your Personalized Learning Plan will include the Microsoft Official Curriculum courses, Microsoft Press books, and Microsoft TechNet resources that will help you with your preparation.
Chck this:
http://assessment.learning.microsoft.com/test/home.asp
Microsoft SQL Server 2005
Microsoft Visual Studio 2005
Visual Studio .NET
Desktop Deployment
Monday, January 30, 2006
A Simple RSS Feed
http://msdn.microsoft.com/coding4fun/xmlforfun/simplerss/default.aspx
Sunday, January 29, 2006
Top 10 most popular webcasts by MS
http://www.microsoft.com/events/top10.mspx
Thursday, January 26, 2006
Wednesday, January 25, 2006
Wicked Code asp.net 2.0 -- (feature 5/5)
PROBLEM:
How easy it is to create our own Custom Web Events in .net 2.0?
SOLUTION:
http://msdn.microsoft.com/library/en-us/dnvs05/html/custwebcon.asp
http://www.asp.net/QuickStart/aspnet/doc/monitoring/webevents.aspx
Analyze this code:-
using System;
using System.Web.Management;
using System;using System.Web;
using System.Web.Management;
public partial class WebEvent_aspx
{
void Button1_Click (object sender, EventArgs e)
{
MyWebEvent mwe = new MyWebEvent ("Click!", null, 100001, DateTime.Now); WebBaseEvent.Raise (mwe);
}
}
public class MyWebEvent : WebBaseEvent
{
DateTime _time;
public MyWebEvent (string message, object source, int eventCode, DateTime time) : base (message, source, eventCode)
{ _time = time; }
public override void FormatCustomEventDetails( WebEventFormatter formatter)
{ formatter.AppendLine ("Button clicked at " +_time.ToString()); }
}
Sunday, January 22, 2006
Wicked Code asp.net 2.0 -- (feature 4/5)
How to create our own Custom Expression Builders ?
SOLUTION:
using System;
using System.Web.UI;
using System.Web.Compilation;
using System.CodeDom;
public class VersionExpressionBuilder : ExpressionBuilder
{
public override CodeExpression GetCodeExpressionBoundPropertyEntry entry, object parsedData, ExpressionBuilderContext context)
{
string param = entry.Expression;
if (String.Compare(param, "All", true) == 0)
return new CodePrimitiveExpression
(String.Format("{0}.{1}.{2}.{3}", Environment.Version.Major,Environment.Version.Minor, Environment.Version.Build,Environment.Version.Revision));
else if (String.Compare(param, "MajorMinor", true) == 0)
return new CodePrimitiveExpression
(String.Format("{0}.{1}", Environment.Version.Major, Environment.Version.Minor));
else throw new InvalidOperationException
("Use $ Version:All or $ Version:MajorMinor"); }}
Thursday, January 19, 2006
Wicked Code asp.net 2.0 -- (feature 3/5)
PROBLEM: How do we handle localization in our web sites...?
SOLUTION:
Let's look first at ASP .net 1.x:-
void Application_BeginRequest (Object sender, EventArgs e)
{
try
{
if (Request.UserLanguages.Length > 0)
{
CultureInfo ci = CultureInfo.CreateSpecificCulture(
Request.UserLanguages[0]);
Thread.CurrentThread.CurrentCulture = ci;
Thread.CurrentThread.CurrentUICulture = ci;
}
}
catch (ArgumentException)
{
// Do nothing if CreateSpecificCulture fails
}
}
ASP.net 2.0 (almost no code....) [Auto culture]:-
<%@ Page Culture="auto" UICulture="auto" Language="C#" CompileWith="AutoCulture.aspx.cs" ClassName="AutoCulture_aspx" %>
Obviously, there's more to localizing an entire Web site than simply enabling auto-culture handling. Auto-culture handling does not, for example, localize static Web site content. But ASP.NET 2.0 offers other new localization features as well, including the new
Monday, January 16, 2006
Wicked Code asp.net 2.0 -- (feature 2/5)
Encrypted Configuration Sections
PROBLEM:
Developers are concerned about how to securely store sensitive information in config files like web.config without spending too much time/effort?
SOLUTION:
Did you know that you can encrypt sections of Web.config to prevent connection strings and other potentially injurious data from being stored in plaintext?
ASP.NET also offers you a choice of two encryption modes. One uses triple-DES encryption with a randomly generated key protected by RSA; the other encryption mode uses triple-DES encryption as implemented by the Windows® Data Protection API (DPAPI). You can add support for other encryption techniques by plugging in new data protection providers.
One call to ConfigurationSection.ProtectSection is sufficient to encrypt a configuration section; a subsequent call to ConfigurationSection.UnProtectSection decrypts it. Following a successful call to either method, you call Configuration.Update to write changes to disk.
Sunday, January 15, 2006
Wicked Code asp.net 2.0 (new key features in -- 1/5)
Feature 1:
Updating Browser Displays in (Almost) Real Time
Problem: Developers used to find it real difficult to meet client requirements (banking, stock exchange) for instant refresh of the data (usually in data grid display) and still NOT have the performance hit. Since there was an HTTP postback to the server involved here, how good you code did not matter, and there was always a lil performance hit.
Solution (.net 2.0): XML-HTTP callbacks
Did you realize that the new ASP.NET 2.0 client callback manager provides an elegant solution to the problem of keeping browser displays in sync with constantly changing data on the server?
XML-HTTP callbacks enable browsers to make calls to Web servers without performing full-blown postbacks. The benefits are numerous. XML-HTTP callbacks transmit less data over the wire, thereby using bandwidth more efficiently. XML-HTTP callbacks don't cause the page to flicker because they don't cause the browser to discard the page as postbacks do. Furthermore, XML-HTTP callbacks execute less code on the server because ASP.NET short-circuits the request so that it executes the minimum amount of code necessary. Inside an XML-HTTP callback, for example, a page's Render method isn't called, significantly reducing the time required to process the request on the server.
The scenario generally involves an ASP.NET Web page displaying data that's continually updated on the server. The goal is to create a coupling between the browser and the Web server so that when the data changes on the server, it's automatically updated on the client, too.
Thursday, January 12, 2006
AJAX...Bridging the Thin-Client Performance Gap
Does .net 2.0 supports this in a very efficent way?
Check the gridview controls...use XMLHttpRequest for asynchronous data retrieval with the web server. Avoid postbacks...
Read this small article to have broader know how on AJAX (Ironspeed)
http://www.ironspeed.com/articles/ajax-bridging%20the%20thin-client%20performance%20gap/article.aspx
Wednesday, January 11, 2006
ASP.NET "Whidbey" PDC Presentations
http://www.asp.net/whidbey/pdc.aspx?tabindex=0&tabid=1
You can download slides, demos as well.
Have fun learning !
“Target” chain of stores selects Microsoft .net 2.0 ...
“Migration the way to go….”
http://www.microsoft.com/presspass/press/2006/jan06/01-10MSTargetPR.mspx (press release)
"Microsoft Dynamics CRM 3.0..." Woody Driggs | Accenture
Check these links for more details:
http://news.moneycentral.msn.com/ticker/article.asp?Symbol=US:MSFT&Feed=PR&Date=20051206&ID=5329545
http://www.prnewswire.co.uk/cgi/news/release?id=159807
http://www.microsoft.com/dynamics/crm/default.mspx