Tag | AJAX Posts

If you're going to be anywhere near Phoenix on the weekend of September 15 & 16th, at least take a look at what's being offered at Desert Code Camp III. Over two days there are currently 97 sessions being offered. I'm doing an Introduction to Silverlight and Dan Wahlin is taking it from there into animation, data display, and AJAX integration. When I present, I like to show something new that I haven't done before, and this time is no exception. With about 9 months of WPF/E and Silverlight having ...
There's a great MSDN article by Jeff Prosise that talks about the pros and cons of using the Microsoft AJAX update panel compared to other options (like web services and page methods). A quick excerpt: "For better or for worse, the UpdatePanel control is the darling of the ASP.NET AJAX community. I say "for better" because UpdatePanel makes partial-page rendering shockingly easy and "for worse" because its simplicity and ease-of-use come at the cost of efficiency and, ironically, bandwidth. While ...
ProblemRedirect the user to login page after a period of inactivity or when the session expires.InvestigationA quick search on Google will find many articles which discuss how we can detect session expiration and how to redirect to the login page. However, most of the methods described require page refreshes or requests to the server to find out whether the session expired. Some ways of detecting whether a session has expired:1. ASP.NET Forum ArticleIf you are using cookie, you can store a marker ...
I've posted a few helper classes, that I've created by myself or based on some others source code. There are also a few classes from other authors, that I am using in my applications without or with minor changes. Below I will list the links to their classes: Configuration: C#/.NET Command Line Arguments Parser(by the way, it was the first class in C#, that I included to VB solution) Custom app.config -load configuration settings from an external file(alternatively see Reading a config section from ...
I've been wanting to add a search box to my website for quite some time, and also wanted to play with Google AJAX Search API. Turns out it's a very easy API to use! I simply wrapped their search control in a PositionedNode and FadedNode, and added a higher-lever object to "hide" Google's syntax and offer a higher level interface. So from today, you can now use the "Search" menu to search the website and also (in the same dialog) this blog. Google Search API also offers the possibility to search for ...
Date: Thursday September 20th, 2007 Event Description:Silverlight is arguably the biggest shift in Microsoft strategy on the web since IE was introduced over 10 years ago. With the reach of cross platform and the richness of the .NET framework, the future of building Rich Internet Applications (RIA’s) has never been more exciting. In this talk, you will learn about Silverlight, the platforms, tools and technologies you can use to build Silverlight applications, and how it differs from the full Windows ...
Date: Thursday September 20th, 2007 Event Description: Silverlight is arguably the biggest shift in Microsoft strategy on the web since IE was introduced over 10 years ago. With the reach of cross platform and the richness of the .NET framework, the future of building Rich Internet Applications (RIA’s) has never been more exciting. In this talk, you will learn about Silverlight, the platforms, tools and technologies you can use to build Silverlight applications, and how it differs from the full Windows ...
With the advent of web , search is everywhere. To make every contentful application really useful for users, we need to have a good search capablity inour app to get the right content when users ask for it. My focus here , is to create a pretty simple search solution using the "Full-Text" capability of Sql Server 2005. Some key features that i belive to watch out. When searching with multiple words, it should not get useless inofrmation. For ex . when we search "asp.net ajax", it should not return ...
It seems every day on the Silverlight.net forum somebody is having trouble getting "Hello World" to run in Silverlight. On the surface, that wouldn't seem unusual, because it's something new. But then I look at the post and have to ask myself what is really going on. Why is it that everyone feels they must without a doubt have to learn Silverlight from the standpoint of the Alpha? It must be the masochistic side of software developers or something. We know there's pain involved in learning, so why ...
If you ever like to show a Modal Progress dialog like the above for any ajax operation no matter which Update Panel or Web Service call is responsible for it, the following code will do the same.<%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml... <script runat="server"> [System.Web.Services.WebMet... public static string GetDate() { //Doing a fake delay for 3 seconds System.Threading.Thread.Sle... ...
I ran into a crazy issue while working on my ASP.Net 2.0 application in Firefox this week and thought I'd share... When a certain ASPX page completed rendering and emitted it's final markup to the browser, I noticed the status bar read 'Done' for an instant, but then immediately changed to 'Waiting for localhost...' again. It definitely seemed as if the page was being requested twice. I immediately looked at FireBug to see what was loading, and indeed the same page showed up twice in the 'Net' listing. ...
Few days ago I worked on a UserControl that displays dynamic content depending on a workflow step (the workflow does not matter here as the control could display data dynamically returned from a Web Service or database or whatever there is in the developer's world). I had a big problem as the controls can be added to the parent control (UserControl here) only in OnInit event. Well, you can add them in any other event but when you do it you won't get the results gathered by the controls after there ...
Are you interested in learning more about the next generation of web-oriented technologies? If so, please join us for a half-day seminar on the new and improved suite of tools and technologies from Microsoft that will better empower you to design and develop Rich Internet Applications (RIAs). This road show will highlight how Microsoft is putting the final touches on a new suite of services and technologies that will help you build visually stunning, yet amazingly lightweight applications designed ...
While working with AJAX we can make the web page more interactive by introducing the Fade behavior, and we can also introduce the provision of cancellation of async AJAX operation. This is how we can leverage on usability aspect of the application. Matt Berseth has posted a nice article to acheive this behaviour through ASP.Net AJAX, following is the source code. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> <%@ Register Assembly="AjaxControlToolkit" ...
Microsoft just launched a beta version of an application called Tafiti. A nice test application from Microsoft that demonstrates - probably most importantly - the use of Silverlight. For those new to Silverlight - Microsoft's official one paragraph description of this technology is: "Microsoft® Silverlight™ is a cross-browser, cross-platform plug-in for delivering the next generation of .NET based media experiences and rich interactive applications for the Web. Silverlight offers a flexible programming ...
I as I mentioned in my last post, the standard out of the box setup for NHibernate in Asp.Net does not work well with Ajax calls. The standard approach you will see in the online docs and examples puts the Session.Close() method in the OnEndRequest event handler. This will work when you're doing PostBacks and probably partial post-backs, but I avoid those (blog entry on why later). But on a Ajax method call, OnEndRequest will not do it for you since it's not called after your webservice call. Now ...
Here again, after a two month break I am doing a Webcast series on ASP.NET 2.0, AJAX, ASP.NET vNext & Visual Studio 2008 for Web Developers. The registration links for the same are as below:- Please note, you need to register for each of the webcasts separately August 27th - 31st Everyday at 4pm ASP.NET 2.0 Deployment Tips and Tricks https://msevents.microsoft.... AJAX Enabling your existing ASP.NET ...

I recently did a review on Asp.net Ajax Update Panel of O'Reilly which is now published in DotNetSlackers.com. Check it out.

Rob Bagby has a large collection of webcasts, presentations, and code on his site: Silverlight, Ajax, LINQ, and a webcast this morning!;Expression Blend 2 August preview has been refreshed;Andy Beaulieu put up a great Silverlight app with LINQ out to a web service; and the final .NET Show is on Silverlight with Scott Guthrie and Jason Zander. Rob Bagby WebCasts & Presentations Rob is a local (Phoenix) MS Evangelist and has some great presentations and materials on his site about Silverlight, ...
I've been playing around with the ASP .net Futures lately. They are a collection of (as the name implies) up and coming ASP .net technologies that installs ontop of your .net Framework 2.0 install. It's a really interesting package that builds ontop of the ASP .net AJAX framework featuring a wide collection of controls. One of the coolest things included with it is the Media control. The Media control is used for leveraging the awesome media playing capabilities of Silverlight in a way which the ...
That's right, a new hope.
After trying to get microsoft technologies to work all day, I've finally given up until they get out of alpha phase and decided to make a few fun things in good ol' Javascript.  I'd never had much reason to learn ajax stuff, so I thought I'd take a peak at it.

More to come....
This article is in continuation with my earlier article on Update Panel Internals - TechMela Session 2 - Deep Dive: ASP.NET AJAX so you may want to check it before reading this, in case you havent read it already. So, we left at the place where we were examining what is the HTML output when using a simple ScriptManager tag in your page, Adding an UpdatePanel, adding multiple UpdatePanels, UpdatePanels with Trigger etc., We were particularly drilling into the HTML Markup that is generated when adding ...
During the WPC in Denver this year, Microsoft sent the message load and clear, during every keynote, that Microsoft believes and is pushing Software + Services. They don't believe that SaaS is what the industry is demanding, rather the need will be for Sofware and Services (think SmartClients, web services, AJAX, RWA's,etc). However, after checking out some cool links on ole' Microsoft.com, I hit this one: http://www.microsoft.com/se... I began to wonder if this ...
My latest article Asp.net Ajax Error Logging has been just published in DotNetSlackers.com. In this article, I have demonstrate how to extend Asp.net Ajax Framework to create an effective error logging system which support multiple trace listeners like Enterprise Library. A must read if you are developing or planning to develop an Asp.net Ajax Web Application. You will also find my name in the Ajax Columns in DotNetSlackers.com as I have planned to write at least one, preferably two articles each ...
I have started reading the "Introduction to Microsoft ASP.Net Ajax" book (Dino Esposito) since yesterday. I must admit that it's very well written and organized book. A lot of confusions that I had about the UpdatePanel in particular are now resolved. I'm almost more than half way and I'm enjoying each and every bit of it. Thank you Dino for your excellent work! A must read for ASP.Net MS AJAX developers ...
In this post, I will show you how to load different user control in UpdatePanel from different menu item click. I have found a lot of request in Asp.net Ajax Forum and some of them are having misconception about this. Once you complete reading this post you will be able to load controls dynamically and learn how to employ different helper controls like UpdateProgress, ModalPopupExtender while the UserControl is loading. First let us create plain page without the ajax support: Markup: <%@ Page ...
If you ever try to do more than one simultaneous partial update with Asp.net Ajax Update Panel, I guess you already found that Asp.net Ajax Framework cancel the current update request and starts the new one. You think I am kidding? Okay lets try the following code: <%@ Page Language="C#"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml... <script runat="server"> protected void Page_Load(object sender, EventArgs ...
So I was chatting with a coleague today who pointed out this ZD Net article on Linux. Basically Adrian spent some time with different Linux distro's. Ah, to get paid to do that...spend time with technology that you think is cool just for the sake of trying. With the amount of information via blogs, webcasts, kb's, events, etc on Microsoft's technology line up, we would all be experts if we just had time. So I think I know what the next great software release from Microsoft should be, the next killer ...
So while investigating some AJAX/File Uploading goodness, I came accross Pete Freitag's blog. I noticed on his side panel, along with his blog categories, links to what he's reading, etc., he has an item called "Get Your Goodies" and underneath is a picture of some chocolate donuts with some heavenly whipped-cream looking substance on top, and some logo called FusionKit. Immediately I think to myself "Well, this must be some interesting little NY bakery that all the kewl geeks go to for their mid-day ...
While trying to AJAXify your ASP.NET 2.0 Applications, there are certain things you need to take care of, before being able to use ASP.NET AJAX Extensions in your existing pages. One of the main things is to obviously get ASP.NET AJAX installed. You can get ASP.NET AJAX 1.0 from here. Secondly you need to upgrade your existing ASP.NET 2.0 Application's Web.Config file with the settings required for it to be able to understand ASP.NET AJAX. I had written a detailed step by step procedure in my earlier ...
OK, I'll admit I'm not the brightest light on the block. I'm adding this post just in case some trys to do a Nhibernate save in an ajax call and wonders why it wasn't actually saved. Hopefully I won't be the only one who had this happen. Also, in my defense this is the first time I've ever used NHibernate, so cut me a little slack. So I set up NHibernate as most of the samples our there have it. I've got an HttpModule that gets the Session object on BeginRequest from the cache and then calls Flush() ...
If you visit Asp.net Ajax Forum, you will find hundreds of request on File Upload Control that it does not give Ajax version of the page when it is placed in an UpdatePanel. Certainly, it is not possible, as the XMLHTTPRequest object that is used internally to post the form does not support file upload. In this post I will show you how to create Ajax like version of the file upload. The trick is very simple, I will use an Iframe to upload the file so the whole page does not get refreshed and when ...
I decided to take the time to download the latest beta of Visual Studio. Below are my impressions from initial usage. This mainly means I opened the environment and played a little. The first thing that you notice is that the IDE looks essentially the same as it did for VS2005. When you create a new project you will notice that there are now options for WPF, WCF, WF and AJAX projects. Seeing as I spend most of my time in web applications I figured that would be a good place to start. It is good to ...
While I have been writing a lot about ASP.NET AJAX and other stuff, I also wanted to keep adding my little nuggets on ASP.NET 2.0 which is one of the favourite platform for Web Development. While working with ASP.NET 2.0 and Visual Studio 2005, you may not know certain new things which are a part of it and usually go unnoticed. Atleast I missed them and after a year, completing a big application realized that it would have been great if I had used these features. So, here it is, 10 things you might ...
You're probably looking at the title of this post wondering how spicing up baby making sex relates to becoming a better developer. First, you should really go and read George's post first to get some context around this. Read it? Great... So over the last few months I've been trying to sink my teeth into some Tech books as part of my becoming a better developer. I sympathize with George in that tech books can sometimes become difficult to plow through. To use another analogy, its like working out: ...
Visual Studio 2008 Beta 2 has been officially released as both disc images and Virtual PC (VPC) images. After the installation has finished, you should run this script to ensure that the installation of .NET Framework 3.5 Beta 2 will not affect the development of ASP.NET AJAX 1.0 applications. To go along with this, the Microsoft .NET Framework 3.5 Beta 2 is also available and includes a go-live license. The Framework is expected to be released near the end of 2007. It will be included in Visual ...
Scott Guthrie earlier today announced the availability of Visual Studio 2008 (Codename Orcas) Beta 2 for download. The downloads available are separate installation disc image for each of VS 2008 editions (including Express), and a couple of more disc images for MSDN library and TFS; also, included separated VPC image for VSTS and TFS. Quote from the download homepage: Installation Disc Images If you prefer to install the software yourself, you can download separate disc images for the following ...
When developing a large web application especially if it is Ajax enabled, we often ended up with a larger number of JavaScript and Cascading Stylesheet files and it is quite common that more than one JavaScript file is involved for a single functionality. For example, if you are using DataTable widget of Yahoo User Interface you have to add yahoo-dom-event.js, connection-min.js, dragdrop-min.js, json.js, datasource-beta-min.js, datatable-beta-min.js (as per the example). When a browser encounters ...
Few days back one of my of ex-colleague called me to know what is the best platform of Ajax to work in VS2003 Project, One of his client wants to implement some Ajax features in his existing application . Is it Ajax.net, Prototype, jQuery or Dojo? When I replied him Asp.net Ajax 1.0, he seems bit confused. Yes we can also use Asp.net Ajax for the older version of VS. However, we will not get the full set of features in those older environment. Let me list those features, which will not be available: ...
Dru was kind enough to tag me on how I could be a better developer. I think that in addition to being a better developer, I also need to deliver better applications. We all have different reasons for our geeky ways, and mine is to create applications that save people time. So here is my list: Start giving more talks - I really enjoy giving my talks on Ajax.net and Real time GPS implications, but I'm not an expert on AJAX and most people find my opinions on GPS to be a bit "abrasive". I need to isolate ...
This morning dotnetslackers announced me as the winner of the XBox article content for the month of June. Special thanks to everyone who vote my Asp.net Ajax Control Development article. Some of my friends asked me why did I choose to write in dotnetslackers over codeproject when codeproject got 8x more traffic. The reason behind choosing dotnetslackers, I think it got much more Asp.net Ajax specialist as a member comparing to codeproject and once it won the Asp.net Atlas Mashup contest of Asp.net ...
Visual WebGui is the .net answer for GWT (Google Web Toolkit). But it’s seems more powerful than GWT even though it’s not coming from Microsoft and yet it’s open source. Still I hadn’t got time to put my hands on deeply but you can feel it by just browsing their web site and checking the features and comparing those with GWT. Not like GWT, in Visual WebGui you can use existing windows controls to create your UI. Major advantage of Visual WebGui over GWT is we can deploy Visual WebGui applications ...
You might receive the error 'Sys' is undefined when running ASP.NET AJAX Web pages or trying to AJAX enable your exisitng Web Applicaitons. This error occurs specifically when you try upgrading your existing ASP.NET 2.0 Applications to AJAX by using the ASP.NET AJAX controls like UpdatePanel, etc., The common cause for this error is that you havent updated the Web.Config file of the application to enable the runtime understand ASP.NET AJAX. Let me explain a little more. When you install ASP.NET AJAX ...
Problem:Recently I uploaded a ASP.NET2.0 website with a hosting provider (shared environment), and started getting this error when ever I wanted to load the providers declared on the config file:[SecurityException: Request for the permission of type 'System.Security.Permission... mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934... failed.] System.Security.CodeAccessS... demand, StackCrawlMark& stackMark, Boolean isPermSet) +0 System.Security.CodeAccessP... ...
In this post I will show you how to cancel a web Service call after it is invoked, I will also provide you some interesting findings (Maybe a Bug) in Asp.net Ajax Network Layer. There are plenty of examples available on how to abort an UpdatePanel AsyncPostback but none for the WebService. The following will show you how to do it. Since we are going to cancel a call we need a web method which wait for a long time to complete: The Web Method:[WebMethod()] public string LongOperation(int miliseconds) ...
It's been a while since I last blogged. I'm still doing my xna stuff on the side however, now that I'm working, and I'm engaged again, I'm having smaller and smaller amounts of time to dedicate towards xna. At work though, I'm still playing with .net. :) I'm recreating the Inventory Application that I made last year. This time with Ajax, Crystal Reports and an SQL Server. It's extremely complex, with lots of parts to it. Parts Technology Work Orders - Add notes, Complete, Due Dates for Work Orders ...
My second session at Tech Mela which was also the second session on the first day of Web Platform track was a Deep Dive on ASP.NET AJAX. The topic I did as Deep Dive was on Update Panel internals. Update Panel is the most popular ASP.NET AJAX Server control used widely for AJAX enabling your ASP.NET Pages. A better understanding of the same would help in using it in a better way. So, here I am providing the contents and the specifics discussed during my session. UpdatePanel is one of the important ...
Last month, I did a Virtual Classroom series on ASP.NET AJAX. It was a five day intense AJAX Webcast series with a lot of interaction by means of polls / questions from the attendees. The first day was an overview of different tenets of ASP.NET AJAX and the rest of the four days went into each one of the following topics in detail:- Microsoft AJAX Library ASP.NET AJAX Extensions AJAX Extenders AJAX Control Toolkit I thank all of those who took their time out and attended the same and I hope you found ...
I'm coming up to the midway point of my "How I am becoming a better developer in 6 months.", and I have a bit of catching up to do. Oddly enough, what I should have done is add in an area called "Get my passion back", although in April I don't think I would have posted "quit my job and go independent" as one of the goals. Anyway, I had a goal of reading a couple of tech books a month, but I'm just now starting to sink my teeth into some relevent geek-reading over the last month and a half. One of ...
The problem: If you have a user control for handling user input, meaning has some input controls, some validators and buttons using the same ValidationGroup, and you want to put that inside a repeater (or any control that has template repeat like DataList or Grid), and you click on the button on the user control of one of the repeater items, all the user controls will be checked for validation, not just the one in the repeater item you want. The reason: All the validators/buttons in every user control ...