Tag | Javascript Posts

If C# 3.0 was all about Language Integrated Query (LINQ), then C# 4.0 is all about dynamic programming. What exactly does that mean? It means that C# 4.0 brings some of flexibility and declarative style of programming to C#. But what does that really mean? To sum it up in one keyword: dynamic. C# 4.0 is adding a new dynamic keyword which is used as a data type in much the same way the var keyword is used. Why is this important? The biggest reason is that it allows a C# program to use dynamic dispatch ...
Today for the first time in my entire life I will enter the state of North Carolina. I will be speaking at Raleigh Code Camp about Cheap and Easy Wildcard Search in MOSS (1 of the many talks) using the Query Object Model. I created the user control demo, but I decided to do the webpart demo with STSDev on the fly. I might shove a bit in about what you need to check in STSDev to make sure the webpart is working properly and deploy a webpart properly for those people trying to get started in SharePoint ...
Introduction This part in the series will focus on the SelectionController. Here is where most of the work is done. We've already covered the view interface, IRowSelectionView. Now we will see how the controller interacts with the view. Recap: Custom GridView Guidelines - Preface Custom GridView Guidelines - Part 1 - Preparing the Canvas Custom GridView Guidelines - Part 2 - Selection Interface Capturing Shift and Ctrl Key Status We want to emulate multi-selection as in Windows Explorer. The Shift ...
I just read the MSDN article on the Visual Round Trip Analyzer. This tool is awesome for finding bottlenecks in your web applications. It also allows you to see where your expensive download points are. With this tool I discovered that if I put a parameter after my large javascripts, such as JQuery, I can set the content expiration in the headers for 1 year. Then any time I need to change the javascript file (also works with images, css, etc...) the browser will then treat the file as new and redownload ...
Script Manager Object allows developers to add AJAX Capabilities to ASP.NET page, this object contains end request event in the client side, this event fired when the AJAX request completed. AJAX request may complete successfully, with errors or timeout. End Request event have args object, the args object can be used to examine the request completion. The args object contains the following members: args._errorHandled - Boolean property indicates whether you handled the error or not. args._response ...
Check these really good articles by James Tsai. Understand SharePoint Permissions - Part 1. SPBasePermissions in Hex, Decimal and Binary - The Basics Understand SharePoint Permissions - Part 2. Check SharePoint user/group permissions with Permissions web service and JavaScript Thanks Suranja for sending me these links ...
Here's a simple way to avoid postbacks in your site, still be SEO friendly and degrade gracefully to JavaScript free browsers (and handle middle clicks and copy&paste) in ASP.NET MVC using jQuery. First, we'll create an alternate MasterPage called No.master with no content, only one ContentPlaceHolder: <asp:ContentPlaceHolder ID="MainContent" runat="server" /> Now, we're able to tell via HTTP Headers if a Request is an Ajax Request, so we'll write a new method in our Controller Base class ...
After using Silverlight for a couple months, here is my wish list: 1. SQL Reporting Services viewer in Silverlight. 2. Ability to print from Silverlight. (See #1) 3. 3rd party components that have default styles and/or designers that make it easier to work with the components. Right now you have to figure it all out in xaml... Matt Watson Automotive Software ...
Just an update on our experiences with Silverlight... We have been using Silverlight since SL2 Beta 2 came out and so far it has been great to work with. We have noticed a lot of weird quirky things with Visual Studio, Blend, exception handling, and all sorts of things. But all in all it has been great to work with and our new Silverlight based software is pretty wicked. We look forward to what Silverlight 3 will look like after they have worked out all the kinks. Right now we are paying the price ...
I've created the MyTableClass CSS class(stored in .CSS file) and specified it to a HTML table. .MyTableClass { font-size: 8pt; } However the size of font inside the table was bigger than I specified. Thanks to VS 2008 CSS properties pane - Applied Rules section I was able to find that the rule was overridden by TD element style TD { font-size: 12px; } It was not hard to create hack to override global TD. .MyTableClass TD { font-size: 8pt; } I feel that having global element rule is not a good idea. ...
I recently wrote an internal memo identifying accessibility problems with Telerik RadWindows for the website I'm currently working on. I post the items here hoping that they might be useful for some of you out there. Some of this is specific to our environment (IE6) and design standards but may be helpful for you too. Some apply to other modal window implementations as well. 1. Modal windows complicate the page. One of the primary axioms of designing for accessibility is simplification. I also experienced ...
In this issue: Rich Griffin, Nikolay Raychev, David Anson, Manish Dalal, and Terence Tsang. I apologize for not posting this on Monday, but Scott Barnes is asking for everyone's assistance on a poll: Calling all Silverlight/WPF Developers & Designers. Then today Tim Heuer posted this: Hey Startups – get some BizSpark ... wow... if you're a startup, check that out! From SilverlightCream.com: Silverlight themes 101 - Resource Dictionary Visual Studio Item Template Rich Griffin posted an item template ...
I am sure most of developers would love to get free softwares from Micrsoft.But professionals generally get softwares from their companies .Even Then,If u r a college student,OR u r a professor/teacher or u r below 26,This offer is for u . Microsoft is giving out free softwares to all above people which include Visual Studio 2008 pro,Wiindows server standard, Expression studio2 ,XNA etc. The softwares are available under the banner of dreamspark. For more info visit : http://www.dreamspark.com It ...
I thought I would share the sessions at the PDC I really enjoyed and would recommend for viewing for those that didn't attend. And you know who you are. :) And those who did attend but didn't get to watch these. I'm sure there are more that were great, but these are the ones that stuck out to me. Deep Dive: Dynamic Languages in Microsoft .NET Jim Hugunin gives a great session on Dynamic Languages. This was the best talk I went to the entire PDC so I'm listing it first, but you should watch The Future ...
I will be speaking at GLUG.NET Lansing on November 20th, 2008.  My topic will be a talk I have given once before -- Castle Active Record (Don't Get Good at a CRUDy Job).  Thanks to Jeff McWherter for signing me up for this gig.  I look forward to meeting those in the Lansing area.
Annuouncing a newly added a Codeplex project "Denum" code generator. The Denum is a class / pattern for representing fairly static metadata from a database in an in-memory structure. The structure behaves much like an Enum, but contains static members for each data member so that compile time type checking helps in transparency and coherency of your application logic and the build itself against the database version ...
I'm really just getting started with flash and in the process of doing some research I came across what seems to be very interesting. A free tool that allows a .NET developer to write code that will be translated into ActionScript on-the-fly. It also does C# to JavaScript, and C# to Java. Interesting. The JsC homepage has a lot more information on this ...
If you're going to reformat source code, please don't do anything else at the same time I can't tell you how many times that I have run into this while doing code reviews. Keep your formatting changes and your real code changes separate for the sake of code reviewers, anyone who will have to look at the change history of your source code, and for your own sanity. As an aside, Beyond Compare does a pretty good job of ignoring white-space changes if you select the option ...
So I've been following PDC this week as much as possible, and came across this gem on Vance Morrison's Blog. Slides for our All Day PDC 2008 talks on: Performance By Design I recommend the Parallel Talk as it is more in depth than mine (they had more than 10 minutes for their presentation ). Two things to take away: You can run your Garbage Collector on a separate thread: EXE.Config <gcServer enabled="true" /> Shared state is the enemy! The ASP.Net slides are good too, and go into great length ...
Some days back, one of my team members came to me saying he need a function which is capable of remove the html tags using javascript. I mean if we pass “<span style=’mystyle’> this is demo </span>” this string to the function. It supposes to return only “This is demo” and the main thing is with having no formatting at all, Just the simple text between tags. So, Initially I make it happen using regular expression but the strategy fails when some think like &nbsp; comes in. after snatching ...
Presentation by Anders Hejlsberg. It is 10 years later since they started C# C# 1.0 was about introducing the general concept of managed code. C# 2.0 was about finishing C# 1.0 but didn't have time to do. C# 3.0 is really about radical new thinking in the language - LINQ. They learned a lot about functional programming through this exercise. Today is about C# 4.0. Some of the trends that have shaped their thinking on C# 4.0. Declarative Dynamic - resurgence of dynamic programming languages Concurrent ...
Normal 0 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} Mono Presentation Last Thursday ...

jQuery a fast and concise JavaScript Library has release a version with autocomplete documentation for Visual Studio. You can find it here next to al other versions.

Please don't use the Visual Studio version on production machines, it's way bigger than the other versions of jQuery.
This keynote is all about Windows 7 (the Vista that shoulda been) and new things from ScottGu's team. While yesterday was about the back-end infrastructure of the new cloud platform Azure from Microsoft, today's keynote focused on the front end of Microsoft. One funny question from Ray Ozzie was wondering what we would do at work all day if we didn't have a computer on our desk. Here are some random notes from the keynote. "The PC will be more relevant in the next era." - Ray Ozzie Today we barely ...

Note: The Wireless network at the keynote failed miserably, so this will be posted with a delay.

Scott Guthrie about tools and app development

 New APIs for multitouch and other Windows 7 API.

Note: Lots of attention put in Win32 development with C++.

Read the rest of this entry »

NOTICE: Due to a scheduling conflicts as Halloween activities the October meeting has been moved 1 week to Wednesday, November 5th. Sorry for any inconvenience. .Net User Group Meeting location: At Lamar Advertising Wednesday, November 5th, 2008 5:45 PM - 8:15 PM Sponsored by: Portico Learning Solutions Presenter Jeremy Beckham BIO: Jeremy is a Senior Developer for High Power Consulting, Inc. and has over 5 years of experience in .Net and SQL Server development. He's worked on projects ranging from ...
Microsoft Enterprise Library 4.1 has been released with some improvements and fixes. What's new Unity interception mechanism and integration of the Policy Injection Application Block with the Unity Application Block Added support for generics in the Unity Application Block Added support for arrays in the Unity Application Block Performance improvements Usability improvements to the configuration tool Visual Studio 2008 Service Pack 1 support Bug fixes Enterprise Library homepage Quick Starts ...
Those who are excited like me about the news of jQuery integration into Visual Studio, started adopting jQuery replacing ASP.NET AJAX Client side API. Microsoft also declared there will be a patch for Visual Studio which will support jQuery as well as intellisene for that. For the enthusiasts who just can't for it, here is the way how we can start developing using jQuery with full intellisense support inside Visual Studio 2008: 1. Download jquery-1.2.6-vsdoc.js 2. Inside your JavaScript files, add ...
Went to the ASP.NET Roadmap session…nothing really earth shattering, but some good improvements coming with ASP.NET 4.0. They’re focusing on four themes for the next version: - Best platform for standards (HTML, CSS, Ajax) - Great Line of Business Platform - Support Pattern Based Dev (MVC) - Re-Invest in the Core So knowing that, what are some things we can expect? Here are some highlights: Client ID’s will now be manageable by developers (you give a custom prefix, but an appendix will still be applied ...
This session is by Scott Hunter, Program Manager at MSFT In July 2007 - ASP.NET Futures was released That was followined by an Extensions Preview of ASP.NET 3.5 in Dec 07 Then in March 08 - we started doing some new stuff - ASP.NET 3.5 SP1 - MVC and more The ASP.NET will continue to release out-of-bound items. CodePlex is the main driver for that. www.codeplex.com/aspnet - This is where you will find the interim drops. Currently there are ~1,000 downloads today If you want to see all the latest and ...
The CTP for Visual Studio 2010 and the .NET Framework 4.0 is now available! Is available as a virtual image. More info you can find at the links below: Using a download manager to get the VPC: http://blogs.msdn.com/brian... Dealing with Activation messages within the VPC: http://blogs.msdn.com/brian... From: http://blogs.msdn.com/angel... ...
I looked at the DataObjects.NET (http://www.x-tensive.com) website like i always do, and noticed that they have change their licensing model and their product is actually cheaper and very well broken down into internal, personal, small business and enterprise. After going through the presentations for v3.9, i should say i fell in love with the idea of not having to think about the database side of thing, but to rather concentrate of the business layer and the business rules and interface of the application. ...
State of Ajax: The Universe is Expanding Dion Almaer (Google) and Ben Galbraith (Ajaxian.com) The Ajax revolution is complete: Sophisticated JavaScript user interfaces are nearly ubiquitous. Yet, ... Advancded Gadget and UI Development Using Google's AJAX APIs Derek Collison (Google) The Google AJAX APIs can be used to build sophisticated Gadgets and UI controls for your website. For instance,... A World Beyond AJAX: Accessing Google's APIs from Flash and Non-JavaScript Environments Vadim Spivak ...
Extend the Reach of your Google Apps Environment with Google APIs Jackie Bodine, Ryan Boyd (Google) and Ron Hess (Salesforce.com) Google Apps already gives your organization an out-of-the-(virtual... Spice up Your Web Apps with Google AJAX APIs Mark Lucovsky (Google) Integrating Google Search into a website can be simple using the Google AJAX APIs. Mark will show how a few lines of JavaScript ... Visualize your Data: Google Visualization API The new Google Visualization API lets you access multiple ...
In this issue: Cote, Ivan Dragoev, Hannah Watkins, Fons Sonnemans, Bart Czernicki, Jeff Prosise, Dave Burke, Adam Kinney, Manish Dalal, Mike Snow, Jeff Wilcox, Karl Shifflett, Terence Tsang, and Imran Shaik Laurence Moroney announces <3 your web, Vegas style, it’s MIX time again – MIX09 now open for registration…. Jeff Prosise announced his Deep Zoom Demo Updated for RTW . Matt Casto Announced Cleveland Silverlight Firestarter From SilverlightCream.com: RIA Weekly #27 - Silverlight 2.0 with Brad ...
Check if object is null or undefined. I had an understanding that to check if variable not null in JavaScrip, you need to check if (typeof SomeObject !='undefined') . But it is wrong, because null is not the same as 'undefined'. From http://weblogs.asp.net/bler... The shortest way to deal with this, and also the one that best expresses your intention of checking if an object is safe to use is probably to just rely on the ...
In this issue: Erik & Monica Mork, Bart Czernicki, Joseph Ghassan, Laurence Moroney, Shawn Wildermuth, Mike Snow, and Imran Shaik. Peter McGrattan reports his Silverlight 2 Samples Updated, so go revisit them. Matt Casto reports of a Cleveland Silverlight Firestarter on November 1... looks like a great list of people and topics! From SilverlightCream.com: Logging Client Side Events Erik and Monica Mork have a new Podcast up on logging client-side events. If you're not plugged into the Sparkling ...
Recently I was given the task of writing a POC for a Reference Architecture for the ASP.NET applications we develop in our company. We decided early on in the process that we are going to use Microsoft Enterprise Library for exception handling, logging and data access. Using the exception handling application block in Enterprise Library is quite an easy task. You just define the policies for exceptions in the web.config and handle exceptions in by naming those policies. The exception policies could ...
In this issue: Rob Zelt, Page Brooks, Chad Campbell, Jeff Prosise, Mike Snow, Jordan Knight, and Silverlight Web Services Team. From SilverlightCream.com: Silverlight 2 Timeline Panel Rob Zelt sent me this post this evening... and it's pretty cool that items placed get rearranged according to date. I'm sure this should spark ideas in some folks... thanks Rob! Silverlight Contrib 2008.0.0 – Alpha 2 Released! Page Brooks is making a big hit with his Silverlight Contrib project. Page, Koen Zwikstra, ...
The Igloo Coder is making his way east to present to the 4 atlantic .NET user groups. He'll be in Fredericton on Thursday October 23 to present to F.NUG. Pass the word to anyone you know who's working with .NET. Here's the details. Date: Oct-23-2008 Time: Meet and greet @ 6:30 - presentation from 7 - 9pm Location: UNB Campus, ITC building - room GC127 Topic: Fundamentals of Object Oriented Programming Presented by: Donald Belcham Notes: If you read MSDN, books or attend the average conference, you ...
I decided to completely redesign my website www.galasoft.ch (yes, it's about time, I know). For this process, I decided to inspire myself (loosely) from my good friend Robby Ingebretsen's site, which is both simple and beautiful. Read the rest of this entry » ...
Aha! New blog... I think I will start by posting the solution (or, rather, a solution), to a problem which has been troubling me for the best part of a day. To replicate the problem, simply download and run the AJAX Control Toolkit sample website, and navigate to the Reorder List sample page using IE7. You can drag and drop the list items, and all works as expected. Now go to the site's master page, and comment out the HTML DocType declaration at the top of the template markup, and run the ReorderList ...
GridViews and SharePoint Programming for SharePoint poses some challenges to the .NET developer. Of course first you should be familiar with .NET, I will be using c# in my examples here. One of the main development paths for SharePoint is to create modular functionality in Web Parts. Web Parts are great little chunks of a web page that you can cram anything you can think of into; however you won’t have the nice visual tools you are used to working with. For a simple “Hello World” type application ...
So, I've been on a mission, to show that we can port our mobile portal application suite over to iPhone. We've long been using a Windows Mobile delivered portal that takes Sharepoint, Dynamics NAV and a host of other line of business system (LOB) and delivers them to our mobile workforce. The core of our business at Anglia Business Solutions (www.angliabs.com) is to allow our consultant's, sale staff and support engineers to work remotely. For any service based company our lifeblood is accurate time ...
So, I have been writing here for over a month, and I have never really introduced myself. I think it's about time that you guys get to know a bit about me. Well, I am Stephanie Grima and I come from a little island called Malta. It's right in the middle of the Mediterranean Sea, in Europe of course. I doubt that many of you are familiar with Malta but, it's a really sunny island especially in summer. Tourists go crazy over our beaches, good food, history and nightlife. Imagine, we have a whole town ...
I tried to dial in to the teleconference, but kept getting an invalid number. <Update:> Nathan Brouwer was able to get into the press conference and wrote up a nice transcript as it was going. He has posted that on his blog here: Silverlight 2 Final (RTW) Available ... thanks for the email and note-taking, Nathan! </Update> I refreshed the Press Release page at 9:00, and there it was! It will be available on October 14, and current Silverlight users will be updated. Here is a bit of information ...
Not very amazing or technical but thought I'd post a bit about it anyways. Anyone that gets asked how to show a repeating decimal in Word, for example representing the fraction 1/3 in decimal is 1.33333333 with 3 repeating to infinity. Normally there would be a line above the last 3 (the line is called a vinculum). Now to show the 3 with a line above it in Microsoft Word you need to use a field code that superimposes one character over the other. Press Ctrl-F9 to insert the field delimiters then ...
I was forwarded a link to a CIO.com article where they talk about how Microsoft and CompTIA are employing tools to analyze your behaviours when writing a certification test to determine if you have used any braindumps or illegal test preperation material. http://www.cio.com/article/... Interesting to see so many negative comments at the end of the article. I'd like to hear if someone passed an exam and was then incorrectly accused of cheating. ...
We got our first link love from the Microsoft Governance Resource Center today. 

Check out the link to the SharePoint Pod Show on there and thanks again to Rob Bogue for doing a great interview on SharePoint Governance!
If you use Visual Studio 2005 or later and you don't use snippets, you are missing out on yet another time saving feature. Snippets effectively allow you to drive your programming experience even further via Intellisense and keyword combinations, making repetitive tasks such as defining properties, encrypting and decrypting information, and connecting to data as easy as a few keystrokes. Yesterday I was thinking about how much snippets make sense from the perspective of programming. I remember when ...