Editor repeats URLS that have Querystrings

  •  09-28-2005, 5:35 PM

    Editor repeats URLS that have Querystrings

    When loading text that contains a link with a Query String of more than two Name/Value pairs, the Cute Editor CHANGES that link into one where it repeats itself over and over every time it renders the Name/Value Pair.

     

    Code Example:

     

    1. Create a page that contains the CuteEditor, a Textbox, and a LinkButton

    2. add the Eventhandler as below:

    Private Sub Submit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Submit.Click

    Me.Editor1.Text = Me.Content.Text

    End Sub

    3. When the page comes up in a Browser, type the below text into it:

    <Table><TR><TD>
    <A href="http://www.yahoo.com?Search=1&test=2&testing=3&sami=true&san=y">TEsting</A>
    </TD></TR></Table>

     

    4. Click on Submit LinkButton

     
    What happens is that the CuteEditor somehow changes the text that was loaded into the following:

    <table>
       <tbody>
           <tr>
               <td><a href="http://www.yahoo.com/?Search=1&amp;test=2http://www.yahoo.com?Search=1&amp;test=2&amp;testing=3http://www.yahoo.com?Search=1&amp;test=2&amp;testing=3&amp;sami=truehttp://www.yahoo.com?Search=1&amp;test=2&amp;testing=3&amp;sami=true&amp;san=y">TEsting</a>
               </td>
           </tr>
       </tbody>
    </table>

    Please let me know what can be done to fix this.

    The pattern that I found is that if you have only two Name/Value pairs, the Url does not get repeated. If you have 3 Name/Value pairs, it repeats the URL twice, 4 Name/Value pairs, it repeats it three times, and so forth.

    Please help.

    Thanks!

     

View Complete Thread