Menu

#6 Repeater and File Upload patch

open
nobody
None
5
2004-06-07
2004-06-07
Anonymous
No

This patch includes two modifications:

1) A new RepeaterTester.

2) A possibility to test file upload.

Best Regards,
fridental@axinom.de

Discussion

  • Nobody/Anonymous

     
  • Peter Jaffe

    Peter Jaffe - 2004-07-21

    Logged In: YES
    user_id=1003735

    I implemented a RepeaterTester myself prior to having noticed
    this patch. Just as a heads up, I believe you may run into
    some problems using this if the repeater includes a header
    and/or separator template. Index 0 is given to a header if it
    exists, and separators are given every other index.

    In my GetChildElementHtmlId I ended up writing something like
    this:

    // Adjust the index based on the presence of header or
    separator templates
    int adjustedItemNumber = int.Parse(aspId);
    if (hasSeparator) adjustedItemNumber *= 2;
    if (hasHeader) adjustedItemNumber += 1;

    return HtmlId + "__ctl" + adjustedItemNumber + "_" + aspId;

    This required that in my tests I hardcode into my construct of
    a RepeaterTester whether or not a header or separator
    template exists (2 additional booleans on the constructor).

     
  • James Little

    James Little - 2005-08-31

    Logged In: YES
    user_id=499667

    I cannot integrate this patch as it does not include a
    copyright assignment.

    A RepeaterTester will be included in the next release of
    NUnitAsp courtesy of Ben Monro. The RepeaterTester is based
    on patch #1184020.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.