• .NET Mobile

    RadGrid for ASP.NET AJAX client-side databinding to OData services

    October 26, 2010 Share
    RadGrid's client-side databinding capabilities got boosted to a new level with the Q3 2010 release of Telerik RadControls for ASP.NET AJAX. RadGrid now supports automatic databinding to OData web services. For those of you who have never heard, OData (short for Open Data) is a data exchange protocol that enables data transactions to be carried over standard web protocols (HTTP, Atom, and JSON). OData exposes your data over the web to a variety of consumers, building on technology that is widely adopted. With the Q3 2010 release, we have added automatic client-side databinding support for OData services. To configure RadGrid for binding to an OData service, you...
  • .NET Mobile

    Executing JavaScript function from server-side code

    This is a pretty common scenario when working with WebForms. There are many ways to achieve the desired result, but they have one thing in common – you should make sure that the controls are fully loaded in the page before trying to get a reference to them and use them in your JavaScript code. In ASP.NET it is pretty straightforward to do that. For example you could use a label: ASPX <head runat="server">     <title>Untitled Page</title>     <script type="text/javascript">     function calledFn()     {         alert("code fired");      }     </script> </head> <body>     <form id="form1" runat="server">         <asp:Button ID="Button1" runat="server" Text="Run JavaScript Code" OnClick="Button1_Click" />         <asp:Label ID="Label1" runat="server"></asp:Label>    ...
  • .NET Mobile

    XML Syntax Rules

    All XML Elements Must Have a Closing Tag In HTML, you will often see elements that don't have a closing tag:  <p>This is a paragraph  <p>This is another paragraph    In XML, it is illegal to omit the closing tag. All elements must have a closing tag: <p>This is a paragraph</p>  <p>This is another paragraph</p>        Note: You might have noticed from the previous example that the XML declaration did not have a closing tag. This is not an error. The declaration is not a part of the XML document itself, and it has no closing tag. XML Tags are Case Sensitive XML elements are defined using XML tags. XML tags are case sensitive. With XML, the tag <Letter> is different from the...
  • .NET Mobile

    Client - side events in JavaScript

    February 27, 2009 Share
    Below is a table of the most common client side events in JavaScript. The Table is divided into three columns – the first lists the name of the event. The second contains a short description of the event, and the third lists all page objects, which support the given event.                                          Event Name                Description  Supported by objects  onabort The onabort event occurs when loading of an image is aborted. image onblur The onblur event occurs when an object loses...
  • .NET Mobile

    JavaScript Timing Events

    January 30, 2009 Share
    This article is taken from W3Schools.   With JavaScript, it is possible to execute some code NOT immediately after a function is called, but after a specified time interval. This is called timing events. It's very easy to time events in JavaScript. The two key methods that are used are: setTimeout() - executes a code some time in the future clearTimeout() - cancels the setTimeout() setTimeout() Syntax var t=setTimeout("javascript statement",milliseconds);  The setTimeout() method returns a value - In the statement above, the value is stored in a variable called t. If you want to cancel this setTimeout(), you can refer to it using the variable name. The first parameter of setTimeout() is a...