+ Reply to Thread
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 22

Thread: Name cannot begin with the '%' character, hexadecimal value 0x25. Line 1, position 2

  1. #11
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Do you have any examples of how to use this J?

    I'm not sure I understand how this fits into the problem I'm having....

  2. #12
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    I've never used it, but there are plenty of examples on Google. As far as fitting into your problem, it sounds like you're trying to programmatically create a file and then actually use it as if it were a physical file on your server. The VirtualPathProvider should be able to help you with that part. But maybe I'm missing what you're trying to do here...
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  3. #13
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    I'm not actually creating a file. I'm streaming it straight out.
    Code:
    Dim objWriter As XmlTextWriter = New XmlTextWriter(Response.OutputStream, System.Text.Encoding.UTF8)
    
    Could that be the problem?

    How would I change what I have to use a dynamic XML file?

    Would I have to call a routine to create the XML file and then change the DataSource file name to the xml file? But then, what about several users calling it at the same time? Wouldn't one overwrite the other?

    This seems way more difficult than it ought to be....Is what I'm doing that out of the ordinary?

  4. #14
    Ask Me About Dragons :D Shadow Wizard has a spectacular aura about Shadow Wizard has a spectacular aura about Shadow Wizard's Avatar
    Join Date
    Jul 2008
    Location
    Israel
    Posts
    795
    Blog Entries
    2
    Real Name
    Yahav
    Rep Power
    5

    Quote Originally Posted by richyrich View Post
    Yeah, I would normally just bind it to a list(of ) object, but I thought I would try and generate XML instead to include some web standard practices...

    I would have thought something like this would be fairly common practice, to generate an XML file on the fly and use it in a normal page...Am I doing something out of the ordinary here?
    good question.. what about Web Parts? I'm pretty sure there are common
    web parts that get XML and path to XSLT and show the parsed result.

  5. #15
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    I've honestly never seen anyone ever try to write XML and then stream it...then try to set the stream as a DataSource. It also doesn't seem logical that it would even work, to be honest.
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  6. #16
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Quote Originally Posted by jmurrayhead
    I've honestly never seen anyone ever try to write XML and then stream it...then try to set the stream as a DataSource. It also doesn't seem logical that it would even work, to be honest.
    But isn't that effectively what an RSS feed is?

  7. #17
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    You should be able to simply output the feed to the page like in this example: ASP.NET 2.0 RSS Feed Generator - C# - Snipplr
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  8. #18
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Yes, if I call the file directly in the browser, it outputs the XML fine....

    I get the error when I try and use the file as a datasource for any XML control....

    Hmm...I wonder if I call it before Page_Load it might work..

  9. #19
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    Why do you even need to set it as a datasource? Look at DeveloperBarn's RSS...it simple outputs it to the page...You need an actual file to set the DataSource of the XML control.
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  10. #20
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    What I thought I would do is build all the data lists etc. in a standardised format (XML) so that if, for example, someone wanted to call a list from another site they could call the respective file and be fed a standardised XML file.

    I am trying to call the XML file in another page in my app to get it to populate an XML datasource....I am then using an xslt file to manipulate the data..

    I realise this is in a slightly roundabout way, but I wanted to just have a standardised way of generating a list so it could be handled by a variety of different media.

    Does that make sense or am I talking complete gibberish again?

+ Reply to Thread
Page 2 of 3 FirstFirst 1 2 3 LastLast

Similar Threads

  1. MS Access: remove song from media player by position
    By sbenj69 in forum Microsoft Access
    Replies: 8
    Last Post: February 28th, 2011, 11:25 AM
  2. Trying to find the first space " " character...
    By bryceowen in forum PHP Development
    Replies: 9
    Last Post: February 27th, 2009, 01:23 PM
  3. seprate coulmn from line.
    By guddu in forum ASP Development
    Replies: 9
    Last Post: July 17th, 2008, 09:30 AM

Tags for this Thread

Bookmarks

Posting Permissions

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

SEO by vBSEO