Telerik blogs

Latest

  • Web

    Reading/Writing cookies with HtmlPlaceholder for Silverlight

    Recently we received a support ticket with a question whether RadHtmlPlaceholder provides support for cookies. By default, RadHtmlPlaceholder doesn't have a mechanism for reading/writing cookies. However, with the right bits of JavaScript, everything is possible :) Imagine you have an HTML page which you want to read/write cookies to and all this has to happen from Silverlight. First, you need few JavaScript methods for reading/writing cookies. Let's call the page we want to read/write cookies to CookiesPage.html. <html>     <head>         <title>Cookies Page</title>         <script type="text/javascript">             // Create a cookie with the specified name and value             function SetCookie(name, value) {                 document.cookie = name + "=" + value;                 alert("Cookie successfully set");             }             // Retrieve the value of...
  • Web ASP.NET AJAX

    Memory Leaks and Memory Consumption in web applications (Part 3)

    This post is number three in a three part series about memory consumption for web applications. Links to Part 1 and Part 2. Memory Consumption - Best Practices To be perfectly honest there is only one issue with memory consumption, i.e. using too much of it. Size does matter. Therefore every web developer should try and minimize the impact on the usage of memory, especially when the application tends to become huge. Web applications are becoming more and more client-side oriented and staying on one and the same page for hours should not be an exception. Therefore careful creation of new objects, managing the...
  • Web ASP.NET MVC

    Telerik ASP.NET MVC Extensions: Upload Deep Dive

    Recently there have been quite a few questions popping up around our ASP.NET MVC upload component, specifically when working with it in synchronous mode. Although this variation of uploading files is not really too complex when compared to its asynchronous counter-part, I believe some of the confusion stems from the MVC syntax that is used in our online demo. My goal with this blog post is to provide a bit more clarity to what exactly is happening in this demo, mostly taking a look at the MVC syntax. Before we get started, open up our Synchronous Upload demo in your favorite...
  • Web ASP.NET MVC

    Get Your ASP.NET MVC App in the Spotlight

    Are you proud of the last ASP.NET MVC app you built? Do you want to popularize your project and be rewarded for your creativity? If you answered these two questions with a “yes”, then Telerik’s ASP.NET MVC Case Study Contest is just the right opportunity for you! If you join the contest, you will get the chance to win not only Ultimate Collection licenses (each worth $1,999), but also a spot in Telerik’s Showcase Gallery! All you have to do is answer a few questions about your application and submit at least 2 screenshots. The applications will be ranked based on...
  • Web ASP.NET AJAX

    Memory Leaks and Memory Consumption in web applications (Part 2)

    This post is number two in a three part series about memory consumption for web applications in general. Click here to read the first post. Memory leak examples In this post, we will look at different examples of leaks. The examples presented are as close as possible to real situations. Their purpose is to present several patterns that usually cause memory leaks. A way to manage the leakage is given along with the examples. The examples rely on the use of the ASP.NET AJAX Framework. Let’s start with a simple example of attaching a click event to a button element: Attaching event handlers HTML: <form id="form1" runat="server">        <asp:ScriptManager ID="theScriptManager" runat="server" />        <div id="buttonContainer">              ...