Events in HTML throught webservices...

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Re: Events in HTML throught webservices...

    Hi Nathan,

    I think it's impossible to do so. Firstly, I'm not sure
    how's your Web Service work but it would return some "HTML
    code" of the remote web page, i.e. a "static" HTML code
    with some <table> - that may be the result of
    DataGrid.RenderControl() only.

    In order to sort or further manipulate with a DataGrid, a
    RoundTrip may require and 'another' static HTML code will
    be rendered and returned to you.

    If you can obtain the DataSource for the DataGrid into
    client side, then you can sort the datagrid without re-
    submit to the Web Services again, as client side sorting
    without PostBack of datagrid is possible. Well, it may off
    topic of this message and you'd better 'enhance' the Web
    Service to return a DataTable instead. :)

    Regards,
    Colt
    >-----Original Message-----
    >I have a webservice that returns HTML. That HTML is a
    rendered page that
    >contains a DataGrid.
    >This webservice is used by another company to integrate
    with us. On load of
    >their page, they pump our HTML into their Literal control.
    >Is there any way for our rendered page to have events?
    For example, is it
    >possible for our rendered DataGrid to have sortable
    columns?
    >
    >
    >Nathan
    >
    >
    >.
    >
    Colt [MVP] Guest

  2. Similar Questions and Discussions

    1. Handling HTML element events using AxWebBrowser
      Hello, I am trying to hook into the events for HTML textboxes. In particular the onchange event. In the document complete handler I attach a...
    2. Flickering of ActiveX caused by html or javascript events
      Hi all, I have encountered an issue where activex controls flicker when certain events occur. For example: A simple HTML button causes the...
    3. Add Events to HTML Table
      Hi, I was wondering is it possible to create my own html table that has two features. 1. it is databound and 2. Create my own events to it? ...
    4. Cant add events to HTML controls in a Calander control
      Im not getting any error messages but the event is not going off when i click the button it just posts back to the same page. I know this code has...
    5. Need example of events fired from xmlDocument html transformation
      HI, I've posted this type of question before so please don't be annoyed, but I still need example(s) of how to build dynamic controls and post...
  3. #2

    Default Re: Events in HTML throught webservices...

    > In order to sort or further manipulate with a DataGrid, a
    > RoundTrip may require and 'another' static HTML code will
    > be rendered and returned to you.
    Yeah, just thought I'd check for sure.

    Cheers


    Nathan Baulch Guest

  4. #3

    Default Re: Events in HTML throught webservices...

    Sure, you can do this.
    but not quite in the structure you described. Sort requests and other
    events will post back to the originating server, in this case, your clients
    computer - not yours.

    You have a couple of options here.
    1. Implement frames on the client's site, and have the frame reference
    YOUR server so you handle events.
    2. Implement your content as a user control, with events. Your client
    can capture the events, make a request back to your server to get the newly
    sequenced data. You then respond with the sorted content and they implement
    that back to their site.
    3. Implement the data into an XML store instead of raw HTML. The client
    can manipulate the result any way they wish, including local sorting etc.
    using user or custom controls or client-side manipulation.



    "Nathan Baulch" <nathan.baulch@microsell.com.au> wrote in message
    news:#nQ4af0RDHA.1688@TK2MSFTNGP11.phx.gbl...
    > I have a webservice that returns HTML. That HTML is a rendered page that
    > contains a DataGrid.
    > This webservice is used by another company to integrate with us. On load
    of
    > their page, they pump our HTML into their Literal control.
    > Is there any way for our rendered page to have events? For example, is it
    > possible for our rendered DataGrid to have sortable columns?
    >
    >
    > Nathan
    >
    >

    David Waz... Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139