Re: Custom image gallery, returning values

  •  09-02-2005, 5:23 AM

    Re: Custom image gallery, returning values

    Yepp. that worked fine Adam.
     
    I have run into a somewhat stranger problem. When inserting an image i use the example javascript code and all is fine. However..
     
    When i read the text back from the database (it all looks fine in the database btw), it messes up the <img> tags in a most peculiar way. The dynamic url i have to retrieve the image looks something like this:

    http://myserver.mydomain.se/myportal/ImageAdmin/showImage.aspx?id=1&width=200&height=230
     
    (btw, bogus link so don't click :)
    But, when it ends up in the code it looks like this:
     
    http://myserver.mydomain.se/myportal/ImageAdmin/showImage.aspx?id=1&width=200
    http://myserver.mydomain.se/myportal/ImageAdmin/showImage.aspx?id=1&width=200&height=230
     
    Everytime i assign the Editor.Text property it seems to double the image url tags in this manner. Now i do absolutely nothing to the text before putting it into the editor. The actual code basically is:
     
    Editor1.Text=_SQLreader["html"].ToString();
     
    So it seems it must be the editor who parses it wrongly for some reason. Any ideas?
     
     
View Complete Thread