XML DataSource Corrupts Page Output

Discussion in 'Microsoft Development' started by vita10, Jul 4, 2010.

  1. vita10

    vita10 Perch

    Hi guys
    maybe some of you have an answer for that...
    I spent quite a few hours on that and not sure where to dig now...

    NOT Working ?(
    ...
    private void BindDS
    {
    DataSet _ds = new DataSet();
    int _count = procedure_returning_dataset_from_XMLData(string Query, out _ds);

    Repeater.DataSource =_ds.Tables[0];
    Repeater.DataBind();
    }
    ...

    Rendered Page out put is
    ***********
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.


    An invalid character was found in text content. Error processing resource 'http://localhost:
    **********

    Note:

    1. XML Data is present, valid and properly encoded
    2. Error appears even if there is no DataBind at all
    3. Error appears even I simply call the procedure without an assignment of any kind on target page..

    Does not appear if I save the file fist out put and load it into new DataSource and bind to the repeater

    (please do not point out syntax mistakes if any I simplified code...)

    Any Pointers are appreciated!
  2. chrisadam12

    chrisadam12 Guppy

    1. XML Data is present, valid and properly encoded
    2. Error appears even if there is no DataBind at all
    3. Error appears even I simply call the procedure without an assignment of any kind on target page..

    Does not appear if I save the file fist out put and load it into new DataSource and bind to the repeater

    (please do not point out syntax mistakes if any I simplified code...)..
    _______________________________________________


    Want to get-on Google's first page and loads of traffic to your website? Hire a SEO specialist from Ocean Groups seo specialist

Share This Page

JodoHost - 26,000 hosting end-users in 100 countries
Plesk Web Hosting
VPS Hosting
H-Sphere Web Hosting
Other Services