Edit.aspx page hanging on text entry

Last post 06-04-2009 3:03 AM by sjnaughton. 6 replies.

Sort Posts:

  • Edit.aspx page hanging on text entry

    06-01-2009, 12:08 PM
    • Member
      point Member
    • malkier22
    • Member since 06-01-2009, 3:51 PM
    • Posts 2

    I am trying convert a project from asp classic to asp.net.  The asp classic version has a edit table page that allows users to enter data into textfields that contain html mark up.  like <b>, <i>, etc.  I have been working with the dynamic data video collection and when I try to hit update after entering any html markup in a textfield, in edit.aspx, the page just stops.  It does not throw an error nor does not redirect to the list.aspx on update or cancel, and im pulling my hair out trying to figure out why its doing this.  I have tested various different data types and nothing is helping.  Anyone have any ideas?  The error happens on the sample code provided on the dynamic data page.

  • Re: Edit.aspx page hanging on text entry

    06-01-2009, 12:51 PM
    Answer
    • Star
      12,374 point Star
    • sjnaughton
    • Member since 04-29-2008, 5:11 PM
    • Newton-le-Willows, Merseyside, UK
    • Posts 2,575
    • TrustedFriends-MVPs

    Hi Malkier22, there is a new Control in the AJAX Control Toolkit see it HTML Editor that should do the trick and it's free.

    Steve Big Smile

    Always seeking an elegant solution.
    [Oh! If olny I colud tpye!]
    c# Bits blog
    Oh, and don't forget to mark as answer any posts that help you Big Smile
  • Re: Edit.aspx page hanging on text entry

    06-02-2009, 6:11 AM
    • Member
      point Member
    • malkier22
    • Member since 06-01-2009, 3:51 PM
    • Posts 2

    I was able to integrate the AJAX RTE however the error still bugged me.  I was fianlly able to nail down the error to WebForms.PageRequestManagerServerErrorException: Status code 500 which appears to be fixed by...

    by adding ValidateRequest="false" in the tag <%@  Page ...%>

     problem fixed, thank you all

  • Re: Edit.aspx page hanging on text entry

    06-02-2009, 6:13 AM
    Answer
    • Star
      12,374 point Star
    • sjnaughton
    • Member since 04-29-2008, 5:11 PM
    • Newton-le-Willows, Merseyside, UK
    • Posts 2,575
    • TrustedFriends-MVPs
    Steve Big Smile

    Always seeking an elegant solution.
    [Oh! If olny I colud tpye!]
    c# Bits blog
    Oh, and don't forget to mark as answer any posts that help you Big Smile
  • Re: Edit.aspx page hanging on text entry

    06-02-2009, 6:16 AM
    Answer
    • Star
      12,374 point Star
    • sjnaughton
    • Member since 04-29-2008, 5:11 PM
    • Newton-le-Willows, Merseyside, UK
    • Posts 2,575
    • TrustedFriends-MVPs

    malkier22:
    adding ValidateRequest="false" in the tag <%@  Page ...%>

    This is not good practice as it leaves you control open the user entering anything they want script etc, it then become entierly up to you to validate input.

    Steve Big Smile

    Always seeking an elegant solution.
    [Oh! If olny I colud tpye!]
    c# Bits blog
    Oh, and don't forget to mark as answer any posts that help you Big Smile
    Filed under:
  • Re: Edit.aspx page hanging on text entry

    06-03-2009, 9:27 PM
    Answer
    • All-Star
      30,305 point All-Star
    • PLBlum
    • Member since 06-28-2002, 1:20 PM
    • Boston, MA
    • Posts 5,344
    • TrustedFriends-MVPs

    sjnaughton:
    This is not good practice as it leaves you control open the user entering anything they want script etc, it then become entierly up to you to validate input.
     

    To add to Steve's thought, you may need to use ValidateRequest="false" but you should immediately add defensive code that neutralizes any attacks or blocks HTML and scripts that you consider illegal. Look for "Cross site scripting attack" in your searches.

    --- Peter Blum
    Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
    www.PeterBlum.com
  • Re: Edit.aspx page hanging on text entry

    06-04-2009, 3:03 AM
    • Star
      12,374 point Star
    • sjnaughton
    • Member since 04-29-2008, 5:11 PM
    • Newton-le-Willows, Merseyside, UK
    • Posts 2,575
    • TrustedFriends-MVPs

    Thanks Peter that explains better than I did the risks involved with setting ValidateRequest="false"

    Steve Big Smile

    Always seeking an elegant solution.
    [Oh! If olny I colud tpye!]
    c# Bits blog
    Oh, and don't forget to mark as answer any posts that help you Big Smile
Page 1 of 1 (7 items)