Search This Blog

Saturday, June 30, 2012

Crystal Reports for VS2010

Crystal Reports has been excluded In VS2010. 
To download Crystal Reports, click on the following link:

Friday, June 29, 2012

Javascript, firefox, and ASP.NET MVC 3 development

I am currently part of a development team extending functionality of ASP.NET MVC project allowing users to review data reports.  

The cool parts of this job are: 
  • MVC from 1.1 to 3.0 in this version
  • Getting to move up to VS 2010.  (before anyone comments I know I want VS 2012 and MVC4) 
  • Learning the ends and outs of a complex web site/service by analyzing extending code.  (So much better than the 'Hello World' using .net).
  • Being able to leverage by SQL and C# knowledge so I'm not completely dead weight until I become proficient in javascript.
Things I learned so far:
  • Javascript, are you kidding?  This is why smart device development is such a good idea.  Gets away from a rather poor scripting language. 
  • I hate using FireFox but I love it for debugging.  It is too bad the rapid release process has destroyed one of my favorite browsers.  
  • Browsers I'm currently concerned with supporting: IE9/IE10, Chrome, and Safari.  
  • Two things I love about Javascript: debugger and alert().  The rest can go away.
  • The joy of getting a html button wired to a javascript function to hit Controller.Action()
  • Much deeper understanding and appreciation for large sites as Google and Facebook.
  • http://stackoverflow.com/  is still my best friend!

Defining a function call in javascript

Current project at work has me learning more Javascript.
Here is a simple example of defining a function call for a button in a separate script file.
The project is ASP.NET MCV3 project and the javascript files are incorporated in Site.Master file.

Simple function call in Javascript:

<script type="text/javascript" src="<%= Portal.UrlHelper.VirtualPath %>/Scripts/portal-about.js?ver=<%= Portal.VersionHelper.Version %>">script>

portal-about.js
(function() {

    Portal.about = function() {
    
    };

})();

Strange new world at least for me ;)