Tag | AJAX Posts

MSDN Unleashed Session 1: Demystifying WPF Today’s applications need to do more than simply work. They need to draw in the user, and provide a differentiated experience. This means moving beyond battleship gray forms, boxy UIs, and providing a positive user experience. Windows Presentation Foundation (WPF) provides powerful capabilities to develop a compelling user interface, the kind that makes an application stand out. In this session, we’ll examine the core concepts of WPF such as layout panels, ...
Jax CodeCamp crew did an amazing job turning around and getting a new venue last minute due to Fay and still holding a great event. Here is my PPT from the Jax CodeCamp [http://www.jaxcodecamp.com/ ]: "Windows Mobile, SQL Compact and other fun" Nikita Polyakov PPT: http://cid-153154d6f7d12177... Note: There is no code in the PPT. Watch How to Videos for getting started. WM How Do I Vides - http://msdn.microsoft.com/e... I picked ...
Ok, imagine the following situation: You are a developer and you want to keep up with the latest technology, so you update Visual Studio 2008 with Service Pack 1, installing .NET 3.5 Service Pack 1 as part of the update. You then proceed to continue with your ASP.NET application, building a nice neat AJAXy application. Everything works fine on your box, it's awesome, the in-your-cube demos go great, everybody's happy. So you build and deploy your new hotness then sit back and wait for the pats on ...
This was a pain! I Love the new FORMVIEW control in ASP.NET, but I needed to have the ability to upload a picture as well as data. I was using a FORMVIEW inside an update panel, with the update mode conditional. The FILEUPLOAD control doesn't work with partial page post backs, isn't that nice. So I had to separate the Picture and FILEUPLOAD control from the FORMVIEW control. I found a couple of work arounds, but I couldn't get the behavior that I wanted with the FORMVIEW. Here is an example of what ...
I wanted to implement client javascript to re-calculate summary based on a few options(in drop-down lists) selected by the user . The closest JS sample I found was Complex Client-Side Shopping Cart .But it wasn't exactly what I wanted. I created an array of custom class objects. Class has InitialPrice and SelectedPrice properties as well as this.Diff = function( ) { return this.SelectedPrice-this.Ini... } Each DropDownList calls onchange Event Handler, which updates SelectedPrice value and ...
Very Quick Note: Visual Studio 2008 Service Pack 1 was released finally (in combination with .NET Framework 3.5 Service Pack 1 of course). To sum up for some people, note that VS 2008 SP1 includes ADO.NET Entity framework (and its designer) as well as ADO.NET Data Services, but NOT ASP.NEt MVC framework (but does include ASP.NET Dynamic Data & ASP.NET AJAX history control and script combining). It also includes some WCF enhancements as well as major VS performance and scalability fixes. ISO Donwload ...
Background (skip if you know Web Application Projects) In VS 2002/2003, the web project model for a website was similar to "class library" projects, where you have a .CSPROJ or .VBPROJ file that keeps track of files "included" in the project, and compiles all the pages and controls code behind to a single assembly under "\bin". Each page/control has an automatically generated .DESIGNER.CS or .DESIGNER.VB file, which contains objects mapping to the server controls in the page/control markup (the generation ...
Okay...so, the post yesterday was clearly not as researched as it should have been. It's true...the Click() event does NOT work in FF...so, the solution I had to utilize the click event had a rather short lifespan. I tried to dynamically add the __onPostBack javascript event onKeyPress as well as onkeydown - to no avail. I'm not sure why it wouldn't work...but, it just wouldn't. (I'm using an image button, .NET 3.5, a lot of JS & AJAX on the page - not sure what, if any of that muddies the waters) ...
You can definitely find this information elsewhere But...I'm going to put it here right so I know where to go next time :) I have/had a situation where I had a modal control on my master page - it's what I'm using for a user to log into my application. I have many pages that need to call this - but I needed a way to call the show() method on my modal pop-up, from javascript. Here is the solution... var modalOnmaster = $find("ctlModalPopupBehavio... modalOnmaster.show(); Thank you Brett ...
This is my new blog; welcome. A ton of people have them, but until today, I didn't. That's because I never really saw the need. Now I suppose that I'm starting to. I have a ton of stuff I need to remember, and I need a convenient place to archive all of it, as well as interact with other individuals who know a good deal more than I do. I can't really say that the focal point of this blog will be only on code; all work and no play makes me...grumpy. So yes, without further ado.... I work on several ...
I've alluded in the past that I got my start in computers because of games; I also ended up getting started in programming because of games. I happen to be a big fan of the WarCraft and StarCraft series produced by Blizzard Entertainment, and it was my association with (and desire to make a good website for!) a group of people on their gaming service called Battle.net that got me involved with programming, and that's where the "Fun" part of this comes from. I'm not sure where "Profit" comes into ...
From the work front: What have I been doing at work lately? I’ve been spending a lot of time at work playing with SharePoint, the PowerShellToys’ PowerShellASP which lets you create ASP.NET apps with PowerShell script, and I set myself up with a brand new openSUSE 11 (this is a great distro) machine where I’ve been spending a lot of time in MonoDevelop. Speaking of PowerShell and ASP.NET – check out PoshBoard [at CodePlex], Antoine Habert’s PowerShell driven ajax portal. Antoine has a nice little ...
It’s pretty clear that Windows Presentation Foundation (WPF) is here to stay. In fact, use of WPF is becoming more popular and frequent, particularly now that Silverlight 2.0 is on the horizon. The problem is that there has been very little guidance available to help you decide when to use the various UI technologies available. There is however, some unofficial help in the form of this blog post and this white paper. Here is the comparison matrix from Michael’s blog post: WPF WPF XBAP Silverlight ...
This is from the April 2008 RV.NUG Newsletter RV.NUG -thon event This June will mark the 4th annual RV.NUG -thon event. Just what is a -thon event? How did it originate? (Okay, perhaps you are more interested in "what it is" than a history lesson). A -thon event occurs during an RV.NUG monthly meeting. A presentation topic is chosen. However, care is taken to select a topic that can be easily segmented. The 75-90 minute presentation time of the meeting is then broken into five or six 15 minute time ...
The FCKEditor doesn't seem to be compatible with the RoundedPanelExtender of the AJAX Control Toolkit in MS Internet Explorer. Whenever I place the FCKEditor as a control within a panel that has the RoundedPanelExtender, the FCKEditor is visible for a second or two after page load and then disappears. It works perfectly well on Firefox though.

The browser versions that I'm using are MS Internet Explorer 7 and Firefox 3.
So there I was -- another day of writing slick AJAXified custom SharePoint web parts. This was a simple one. A series of dropdowns that cause subsequent dropdowns to be re-populated with increasingly restrictive data. Planet Continent Country etc. But, when I changed the planet choice to be "Earth" the continent choice DID populate with the continents on earth but it caused a complete page round trip -- not the smooth AJAXified action I expected. Plus, my UpdateProgress panel wasn't being displayed ...
For some reason some controls/tags within ASP.NET do not always get rendered/passed to the client. This has happened to me on a number of occasions. It seems limited to <style> and <script> tags - but happens for both raw HTML (within the aspx designer) and dynamically created tags (eg using new HtmlGenericControl("style")... This is happening to controls/tags within AJAX updatepanels within, webforms and usercontrols. Sometimes I can work around this by simply placing these controls/tags ...
I found a new video showing AJAX (Ajax.NET Professional), JavaScript and jQuery. On the Web server they are using ASP.NET. (Note: you need Silverlight for the video player) Download video as WMV ...
What we need in ASP.NET is a change-tracking control. Whenever we modify elements on a form, it would be a good idea to display a popup for user confirmation before navigating away from the page. Right now, I've got some pretty ugly Javascript doing this.

The next version of the AJAX Control Toolkit would really kick a** if it had this control. It could also include bug fixes for the 'focus' issue with the RoundedControlExtender and TextBoxWatermarkExtender.
If you live in the southeast United States, chances are you've heard of Wally McClure. You may have even met him in person. I met Wally at the Charlotte Code Camp, back in the early days before my inevitable ascension to .NET Demigod. Wally is always a lot of fun to talk listen to, so enjoy. 1. Where are you from? I grew up in Knoxville, TN. I have a BS & MS in Electrical Engineering at Georgia Tech. I worked at “The Coca-Cola Company” in Atlanta, but I found that the corporate life wasn’t for ...
UPDATE: The component controller was removed from the MVC framework before the RTM release. For an updated version of this post, click here. At some point when creating a web app, you're going to want some reusable UI components. This might be because you want the same visual UI snippet repeated more than once on a single page or it might be because you want to use the same component on multiple pages. In a traditional ASP.NET web app, typically you would use a User Control for this type of thing. ...
While GeeksWithBlogs was down, I was able to continue blogging thanks to the blog hosting service provided by Blogger.com for my blog mirror. I posted an article there comparing jQuery Corner with the AJAX Control Toolkit, which you can read about at:
http://knitinr.blogspot.com/2008/07/rounded-corners-comparing-jquery-with.html

For those interested in AJAX development, the roadmap for ASP.NET AJAX has been released today and can be viewed here

Allowing keyboard navigation and improving the User Experience for users is usually a concern for web developers. Some use Flash frontends while others go the AJAX route but in the end it's the simple things that matter, such as setting the focus to a input element on a form. Setting the focus on an ASP.NET control is quite simple in ASP.NET and there are at least half a dozen ways to do it. Through server-side ASP.NET code, you can: 1. Set the DefaultFocus property of the form (you can also do this ...
jQuery is a JavaScript library to interact with HTML, create simple animation and add AJAX capabilities. It works across browsers (don't most things do today?), and lets you do more with less. If you're in the web design & development work, you would have heard about it unless you've been living under a rock, figuratively speaking. jQuery was released in January 2006 and is licensed under the GNU GPL and MIT license. In other words, jQuery is open source and available for free! The library itself ...
The latest release of the MVC framework provides the JsonResult for Controller actions. I was surprised that I did not find a weatlh of examples for usage so I figured it shouldn't be too hard to get a decent example going. It turns out, it was even easier than I anticipated. I wanted to create an example where I would invoke an AJAX call to dynamically populate a dropdown list. jQuery has recently received a huge surge of interest of the ASP.NET MVC community so I've been getting up to speed on ...
Jaime Rodriguez on DeepZoom, Pete Brown on on Publish/Subscribe pattern in SL, Shawn Wildermuth on XAML Controls, Tim Heuer on new Videos, Bill Reiss on SLStreaming, Philip Beadle on File Uploader, Adam Kinney with updated GamerCard, Brad Abrams focused on Data, Scott Barnes on DeepZoom, SilverlightSDK on MSDN Searching, Mike Snow on SL Transparency and SL Policy Server. From SilverlightCream.com: Working with Collections in Deep Zoom. Jaime Rodriguez almost snuck this one by me, but I caught it ...
We recently had a developer on-board our project team who used every control he possibly could from the AJAX Control Toolkit. It was kinda cool but there were a couple of bugs that came along on a piggy-back ride with some of the controls. This week, we just realised some of the pages had textboxes that didn't have focus by default. After a 3 hour effort, we realised it was due to the rounded corner extender that we applied on the panels. Getting rid of the rounded corner extender got the page working ...
If you've been encountering missing borders when using the RoundedCornersExtender, it may be because the panel you're applying the RoundedCornersExtender to may be enclosed within a container that is unable to provide the space for the border to appear. Simply add padding via the CSS attribute to the container for the border to appear. Example (before): <table> <tr> <td> <asp:Panel ID="myPanel1" runat="server"> &nbsp; </asp:Panel> <ajaxToolkit:RoundedCorn... ...
I mentioned a while back that I had something I was working on that involved a change in language, actually a pretty radical change. I have been working on vocational project written in VB.net and made heavy use of LINQ to SQL. I wasn't sure of LINQ to SQL for anything else other than RAD and to be honest I'm still not. Anyway, I'm not getting into that debate. Needless to say I went all the way and don't use a single sproc in this project. Some of you will know I play cricket every Saturday for ...
When using the ModalPopupExtender in the AJAX Control Toolkit, you have to set the TargetControlID to a control that will be used to open the popup, such as a link button or a button control.

To open the popups only through code, you can create a dummy panel and assign it's ID to the ModalPopupExtender. Make sure you don't set the Visible property to false - if you want to prevent the dummy panel from affecting the layout, set the style property to "display: none;" instead.
A good portion of this week was spent recovering some documents that were deleted by a rogue console application (most likely my fault). I wrote a Console Application to combine some document libraries and I spent a good portion of a week testing it. However, I did not really think of enough scenarios, because it obviously did not move the documents properly. Some libraries were moved and others were not. At any rate I practiced my SQL Restoration skills and wrote another two console applications ...
I have been participating in the KC Corporate Challenge for the past few weeks. I have been hitting the gym and going to practices for Softball, Basketball, Soccer, and Flag Football. Unfortunately, I pulled something in my foot, so I could not actually play in soccer. I am trying to encourage better fitness in my life alongside more self confidence by speaking at various conferences and user groups. My next speaking engagement (and the biggest one) will be a 15 minute presentation on how to create ...
When Asp.net AJAX was about to be born I was an early adopter. I dutifully downloaded each new preview and upgraded my solution to handle the API changes. This experience taught me that living on the edge is a world of pain. Each new release could mean hours of wasted time, just to get back to where I started. Since then I have avoided working with pre-release software - until Asp.Net MVC came along looking too good to refuse. So now I am back in the familiar cycle of responding to preview releases. ...
Ever since the new ASP.NET MVC framework was announced in October, posts about it have spread about it like wildfire through the .NET blogosphere. There's usually at least 2-3 MVC stories a day that show up on DotNetKicks. At the last Philly.NET code camp in January, there was standing room only for the ASP.NET MVC talk (see photo to the right). Similar crowds have shown up at the HLS DevCon in Atlantic City, Central Jersey .NET & Fairfield/Westchester .NET user groups to hear about it. With ...
As promised here is the links to the presentation and code samples: http://www.codeplex.com/MOS... We had a total of 13 people, which is a massive improvement to the three people that we have been getting. Hopefully, we can continue the trend and have at least 10-15 people at the next meeting. See you guys at the next meeting. Technorati Tags: MOSS,Kansas City Office Geeks,User Groups ...
We are using asp.net Menu control and wanted to have some delay before sub-menu popup to avoid annoying popup, if user just move mouse through menu area. After some search on Google I found the solution submitted by yupinggang on the thread delaying the menu control. I've slightly modified it( put in a separate JS file,call initMenuMouseHoverInterceptors just in the same file,added handling of the case if no menu on the page etc.) Another possible solution- override PreRender in derived from Menu ...
Title: Developing with AJAX in SharePoint Register: http://www.clicktoattend.co... Must Register for Prizes ) Sponsor: Levi, Ray & Shoup, Inc. - Food Provider for the June Meeting Presented: Becky Isserman Date: Thursday, June 5th (Each meeting will be on the 1st Thursday of the month) Time: Food at 5:30pm; Presentation from 6:00pm - 7:00pm Location: Centriq Foss Training 8700 State Line Road, Suite 200 Leawood, KS 66206 Phone: 913-322-7000 Description: AJAX (Asynchronous JavaScript ...
Imagine that every project in codeplex had to be decomposed into codeplex hosted unit tested functions which complied to some xunit standard - that would go along way towards code reuse, and move away from reinventing the wheel. worked on 2 Silverlight projects recently - see screenshots: and Last 3 months learned the following: NET Components revise – reread Yuval Loweys book – revised best mechanism for interface usage, delegates (circa .NET Framework 2.0), threading. The Interface stuff leads ...
This is problematic with ASP.NET AJAX. The main Script Components are NOT sent to the client when in :Legacy” mode. This is “By design” in ASP.NET AJAX, although it is a clear limitation!! I’m investigating the problem for other solutions and will be sending an update soon. Thank you, Iman Halawany, for making me note this. I’ve been working on WCF services and ASP.NET MVC stuff lately than normal webforms, so, didn’t realize this obvious showstopper. To all my readers, I owe you a BIG apology. The ...
One of the greatest features of WCF 3.5 is direct accessibility of WCF Service on ASP.Net page. Before that there is no direct way to call WCF 3.0 Service on ASP.Net page and you have to create a communication bridge in the form of Web service. Here you find on my blogs how to call AJAX-Enable WCF service from ASP.Net page. Here is my interface called IoperationService and its implementation class OperationService. namespace AJAXEnableServices { [ServiceContract(Namespace = "AJAXServices")] public ...
Here is the meeting information: Title: Developing with AJAX in SharePoint Register: http://www.clicktoattend.co... Must Register for Prizes ) Sponsor: Levi, Ray & Shoup, Inc. - Food Provider for the June Meeting Presented: Becky Isserman Date: Thursday, June 5th (Each meeting will be on the 1st Thursday of the month) Time: Food at 5:30pm; Presentation from 6:00pm - 7:00pm Location: Centriq Foss Training 8700 State Line Road, Suite 200 Leawood, KS 66206 Phone: 913-322-7000 Description: ...
Lot geeks facing this problem, how to enable intellisence support in Visual Studio 2008 of ASP.NET AJAX client-script. Actually by default only JavaScript native intellisence support is available in Visual Studio 2008. Follow the Following steps to enable ASP.Net AJAX Client-script intellisence. Steps 1. Create Web Project in Visual Studio 2008. 2. Add Script Manager Control from toolbar on Default.aspx page. 3. Goto Script View and write the following function ...
Andy Beaulieu with a real-world DeepZoom example, James Bacon releases a new SL2 casual game, Dave Relyea discusses the Canvas, Swiss DPE Team on Large resultsets with LINQ in SL2, and Peter McGrattan provides a SL2 Pie Chart. I just noticed we crossed the 1000-link mark in SilverlightCream. Thanks for all the submittals, everyone! From SilverlightCream.com: DeepZoom for eCommerce Andy Beaulieu has produced a very nice eCommerce site for his Father-in-Law's wood-turnings... I can't figure out which ...
As one of my colleagues put it, "We all struggle to stay up to date on our new technologies." To that point, he let me know about a goldmine resource for learning ADO.Net Data Services quickly: Great Screencasts ADO.NET Data Services - Surfacing Data ADO.NET Data Services - Querying with URI's ADO.NET Data Services - A Basic .NET Client ADO.NET Data Services - A Basic AJAX Client ADO.NET Data Services - A Basic Silverlight Client ADO.NET Data Services - Querying with LINQ ADO.NET Data Services - ...
While working on an ASP.net application, we had a certain page where we wanted to conduct a search that takes about 30-45 seconds to complete. To desist from holding the page output for all that while this search took place, we decided to make it look more interactive for the user using some nifty AJAX. The following are the steps we took.. Started the search on page load on a separate thread using BeginInvoke() The IAsyncResult returned by BeginInvoke() was saved in a session variable. An AJAX timer ...
ASP.NET related Kigg - Building a Digg Clone with ASP.Net MVC Part - 1 The Making of Blogo.NET Configuring & customizing the health monitoring system of ASP.NET Mobile Application related alcheMo - Technology (J2ME to BREW and iPhone porting solution) Mojax (Mobile Ajax application framework) - it provides access to device capabilities like Camera API, Location Services, Contacts and more. Android Weather Forecast - Google Weather API - Description Android Poor mans GPS - Cell (Tower) ID / Location ...
It's not really huge amounts of fame, but I will be speaking at SUGDC Summer Regional SharePoint Conference. I saw a post yesterday on a blog about this event, so I thought hey why not throw out an abstract and bio see if they want me to come out. At this point I had not thought out exactly how I would get there and where I would stay. They responding today telling me that they would give me 15 minutes to speak about SharePoint and AJAX at a roundtable. I was like that is so cool, but how am I going ...
You've mastered web forms and controls. You've prototyped a Silverlight 2.0 application. AJAX? You're all over it. But have you really learned how to design a good web page or web site? Steve Krug's "Common Sense Approach to Web Usability" provides surprising and sometimes counterintuitive principles that every good website must follow. Krug preaches the importance of removing clutter in order to make the purpose and functionality of a site (or page) clear--and happily, he practices what he preaches ...
Microsoft .NET framework 3.5 Service Pack 1 and Visual Studio 2008 Service Pack 1 now have public BETAs. The service pack of Visual Studio 2008 has really interesting stuff. Highlights I'm interested in are performance improvements in HTML editor, collection of JavaScript intellisense hotfixes plus new ones enabling better JavaScript intellisense for libraries like jQuery, JavaScript Code Formatting, ASP.NET Routing engine (the one used in ASP.NET MVC, it is actually developed as separate component), ...