Telerik blogs
  • Web

    Never access the controls collection in Page_Init or Page_PreInit with declarative data-binding in ASP.NET 2.0

    If you have a GridView, DataGrid, DetailsView, FormView, DataList or Repeater bound using DataSourceID you should never touch the controls collection in Page_Init or Page_PreInit. If you do this your declarative data-binding will be lost on any outside of the control post-back. How to check this?Example:aspx<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server">    <title>Untitled Page</title></head><body>    <form id="form1" runat="server">        <asp:Button ID="Button1" Text="Button1" runat="server" />        <asp:GridView ID="GridView1" AllowPaging="true" DataSourceID="AccessDataSource1"            runat="server">        </asp:GridView>        <asp:DetailsView ID="DetailsView1" DataSourceID="AccessDataSource1" AllowPaging="true"            runat="server">        </asp:DetailsView>        <asp:FormView ID="FormView1" DataSourceID="AccessDataSource1" AllowPaging="true"            runat="server">            <ItemTemplate>                ProductID :                <%# Eval("ProductID") %>            </ItemTemplate>        </asp:FormView>        <asp:DataList ID="DataList1" DataSourceID="AccessDataSource1" runat="server">            <ItemTemplate>               ...
  • Web ASP.NET AJAX

    Firewalls breaking ASP.NET AJAX!

    This one is serious and may bite you any time. Yesterday Shaun posted this problem in our forums: he and his users were experiencing odd errors when requesting ASP.NET AJAX-based sites, and yes, that means RadControls "Prometheus" based ones as well. Partial rendering requests initiated by UpdatePanel controls failed with the cryptic message: ============== Sys.WebForms.PageRequestManagerParserErrorExeption: The message received from the server could not be parsed.  Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.  Details:  Error parsing near '<!DOCTYPE html P''. ============== Of course all that comes without any trace of Response.Write(),...
  • Mobile

    Using RadEditor as a Wiki Editor in MOSS

    There have been a number of questions, regarding the RadEditor for MOSS and whether it is possible to use it in the SharePoint 2007 Wiki libraries and sites. The short answer to this question is - yes it's possible. Here is the long version: Wiki pages in MOSS 2007 are stored as normal document libraries. This means that when you edit a Wiki page, you are actually editing a list item. RadEditor for MOSS  supports this scenario and you can use it to replace the default editor in all major browsers - Internet Explorer, Firefox, Safari, etc. Here is how...
  • Release

    RadControls for Silverlight June CTP. Registration now open!

    You can now register for the CTP release of our Silverlight controls and you'll soon receive an e-mail with instructions about where you can download the installation. The controls are using Silverlight 1.0 so all you need to have installed is the Silverlight 1.0 plugin and Visual Studio 2005 or Visual Studio Orcas Beta 1.We've added a MediaPlayer control to the set of controls with which you may have already got acquainted from our online examples. Some of the cool features of the MediaPlayer control which you also may find intriguing are:- Coming with three predefined themes: Telerik, Vista and Simple- Support for...
    June 22, 2007
  • Release

    New online resources for the past two weeks (06/18/2007 - 07/01/2007)

    Below is a summary of the new online resources available for our ASP.NET controls: RadGridCode library entries: Filter RadGrid on external textbox key press:http://www.telerik.com/community/code-library/submission/b311D-mtkce.aspx Help topics: Insert/Update/Delete records -> How-to -> Put all items in edit mode without additional rebind (not published yet)
  • Web

    Never access the controls collection in Page_Init or Page_PreInit with declarative data-binding in ASP.NET 2.0

    If you have a GridView, DataGrid, DetailsView, FormView, DataList or Repeater bound using DataSourceID you should never touch the controls collection in Page_Init or Page_PreInit. If you do this your declarative data-binding will be lost on any outside of the control post-back. How to check this?Example:aspx<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server">    <title>Untitled Page</title></head><body>    <form id="form1" runat="server">        <asp:Button ID="Button1" Text="Button1" runat="server" />        <asp:GridView ID="GridView1" AllowPaging="true" DataSourceID="AccessDataSource1"            runat="server">        </asp:GridView>        <asp:DetailsView ID="DetailsView1" DataSourceID="AccessDataSource1" AllowPaging="true"            runat="server">        </asp:DetailsView>        <asp:FormView ID="FormView1" DataSourceID="AccessDataSource1" AllowPaging="true"            runat="server">            <ItemTemplate>                ProductID :                <%# Eval("ProductID") %>            </ItemTemplate>        </asp:FormView>        <asp:DataList ID="DataList1" DataSourceID="AccessDataSource1" runat="server">            <ItemTemplate>               ...
  • Web ASP.NET AJAX

    Firewalls breaking ASP.NET AJAX!

    This one is serious and may bite you any time. Yesterday Shaun posted this problem in our forums: he and his users were experiencing odd errors when requesting ASP.NET AJAX-based sites, and yes, that means RadControls "Prometheus" based ones as well. Partial rendering requests initiated by UpdatePanel controls failed with the cryptic message: ============== Sys.WebForms.PageRequestManagerParserErrorExeption: The message received from the server could not be parsed.  Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.  Details:  Error parsing near '<!DOCTYPE html P''. ============== Of course all that comes without any trace of Response.Write(),...
  • Mobile

    Using RadEditor as a Wiki Editor in MOSS

    There have been a number of questions, regarding the RadEditor for MOSS and whether it is possible to use it in the SharePoint 2007 Wiki libraries and sites. The short answer to this question is - yes it's possible. Here is the long version: Wiki pages in MOSS 2007 are stored as normal document libraries. This means that when you edit a Wiki page, you are actually editing a list item. RadEditor for MOSS  supports this scenario and you can use it to replace the default editor in all major browsers - Internet Explorer, Firefox, Safari, etc. Here is how...
  • Release

    RadControls for Silverlight June CTP. Registration now open!

    You can now register for the CTP release of our Silverlight controls and you'll soon receive an e-mail with instructions about where you can download the installation. The controls are using Silverlight 1.0 so all you need to have installed is the Silverlight 1.0 plugin and Visual Studio 2005 or Visual Studio Orcas Beta 1.We've added a MediaPlayer control to the set of controls with which you may have already got acquainted from our online examples. Some of the cool features of the MediaPlayer control which you also may find intriguing are:- Coming with three predefined themes: Telerik, Vista and Simple- Support for...
    June 22, 2007
  • Release

    New online resources for the past two weeks (06/18/2007 - 07/01/2007)

    Below is a summary of the new online resources available for our ASP.NET controls: RadGridCode library entries: Filter RadGrid on external textbox key press:http://www.telerik.com/community/code-library/submission/b311D-mtkce.aspx Help topics: Insert/Update/Delete records -> How-to -> Put all items in edit mode without additional rebind (not published yet)