WebForms Application

2 posts, 0 answers
  1. Bill O'Neil
    Bill O'Neil avatar
    113 posts
    Member since:
    Nov 2004

    Posted 04 Dec 2013 Link to this post

    I have a pre-existing webforms .NET project that would benefit from KendoUI mobile for some dedicated mobile functionality.  I can get it functioning - and primarily utilize client side functions - but on the rare occasion when I need to use a server control - I'm encountering odd errors.

    If I place a server control (like a link button) in a Kendo UI Mobile widget - I get an error when trying to postback.

    <ul data-role="listview">
     <li><asp:LinkButton runat="server" ID="l" CommandName="db" CommandArgument='1' Text='Test'></asp:LinkButton></li>
     <li><asp:LinkButton runat="server" ID="l" CommandName="db" CommandArgument='1' Text='Test'></asp:LinkButton></li>
     <li><asp:LinkButton runat="server" ID="l" CommandName="db" CommandArgument='1' Text='Test'></asp:LinkButton></li>
     </ul>

    It renders fine - a scrollable view of active list items - but any click/touch results in as js error:
    Uncaught Error: Syntax error, unrecognized expression: unsupported pseudo: __doPostBack

    Any way to work around this?
  2. Bill O'Neil
    Bill O'Neil avatar
    113 posts
    Member since:
    Nov 2004

    Posted 04 Dec 2013 Link to this post

    It looks like adding:

    data-rel="external"

    to the linkbutton resolves this.
Back to Top