Telerik blogs

Latest

  • Web ASP.NET AJAX

    ASP.NET AJAX Tips and Tricks

    By default ASP.NET AJAX will load and render your controls even if they do not need to be updated. Example:In this case the Panel marked as "Slow loading area" will be updated by default even on DropDownList1 selected index changed. What can we do to prevent this? You can set Panel1.Visible to true/false according to the current ajax request. Example: Enjoy! PS: Running example can be found here....
    August 02, 2007
  • Web

    Integrate RadMediaPlayer's Telerik theme into Microsoft Expression Media Encoder

    Before we step to the actual integration, there are few requirements that need to be met. Download and install RadControls for Silverlight Download and install Microsoft Expression Media Encoder Download and unzip TelerikThemePackage.zip (The archive contains 3 files - Default.html, player.xaml and preview.jpg) I assume that you have successfully completed the above three tasks. 1. Go to where you have installed Microsoft Expression Media Encoder. Then navigate to the Templates folder. Usually this is C:\Program Files\Microsoft Expression\Media Encoder 1.0\Templates\en\ 2. Create a copy of any of the folders (E.g. "Pilot") and rename it to Telerik 3. Replace Default.html, player.xaml, preview.jpg from the newly created "Telerik" folder with the three files from the TelerikThemePackage.zip archive. 4. Open Microsoft Expression...
    July 19, 2007
  • Web ASP.NET AJAX

    Force update of an ASP.NET AJAX UpdatePanel using JavaScript

    Since the beginning of ASP.NET AJAX era I have seen very few examples on how to manually force update of an ASP.NET AJAX UpdatePanel using JavaScript and I have decided to post very simple approach how to do this. First of all you will need to create your own UpdatePanel which will inherit from the original ASP.NET AJAX UpdatePanel and will implement IPostBackEventHandler interface: Now you can call explicitly Update() method of the UpdatePanel: ... and that's it! :-) ... however we can extend this control with an event which will be raised on explicit updates: Now you can use the new UpdatePanel in your pages like this: Enjoy!
  • Web

    Working with Zip Files: Part II, Zipping Files

    In part one, we looked at how you can use RadUpload and the open source SharpZipLib to easily upload and expand zip archives. Today, we'll look at the other end of the process: creating new zip files on the server and then making them available for users to download. To do this, we'll extend the sample we created in part one. As you recall, our sample already enables users to upload a zip file that contains image files and then the server automatically extracts all images to a target directory. We'll extend this demo by creating a text file and then zipping...
    July 13, 2007
  • Web

    Working with Zip files: Part I, Uploading and Expanding

    Have you ever wondered how hard it would be to automatically zip and unzip archives with ASP.NET? It may be easier than you think thanks to the powerful SharpZipLib open source library. This library provides you with a number of easy to use tools for working with Zip (and GZip, Tar, and BZip2, for that matter) archives in .NET code that make the task of creating and expanding compressed archives relatively easy. Today we're going to look at how you can use RadUpload and SharpZipLib to upload a Zip archive and then expand it on the server. For our scenario, let's pretend...
    July 10, 2007