Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default Design view problem

    Hi there,

    I can't understand why when I write this text (part of datalist)

    onclick="javascript: changeImage('<%# DataBinder.Eval(Container.DataItem,
    "imageName") %>');"



    Working perfectly, but when I click design view in vs.net 2003 it tells me
    "Could not open in design view. Quote values differently inside a '<% :"
    value":%>'block"

    I will be happy if someone can explain me why this is happen.


    Mango Guest

  2. Similar Questions and Discussions

    1. ssi in design view
      I just upgraded to CS3. In Dreamweaver, my ssi files will only appear in code view. In the old MX version, you needed to add the ssi extension to...
    2. XSL and design view
      I REPOST this, is there no body who can help ?? Its really VERY VERY annoying ! I must add that also the small tags dw puts if things like...
    3. DW Split View - Design View
      When working in DW in Split View, when the user clicks into the Design View window the view automatically updates the view if code view has changed....
    4. WebControl Design View Persist Problem
      I'm having some weird things happen in design view while editing a custom collection - I've been at this for about 4 weeks now, and have tried all...
    5. Wierd error when going to Design View from HTML view
      When I go from HTML view (in a webform) to Design View I get the following error: Could not open in Design view. Quote values differently inside a...
  3. #2

    Default Re: Design view problem

    Hi,

    Well from a quick examination of your code i can see this: you have '"'
    character which is enclosed in '"' characters. So, as far as i can
    understand, you are getting parser error, because from parsers perspective
    the 'onclick' attribute has the following value: onclick="javascript:
    changeImage('<%# DataBinder.Eval(Container.DataItem,"

    As you can see this is hardly valid syntax and hence you are getting the
    error that you are getting (or so i think - i can vaguely recall a similar
    error a while back).

    As for the solution, I'm going to take a shot in the dark here - try
    replacing it with the following: onclick="javascript: changeImage('<%#
    DataBinder.Eval(Container.DataItem, 'imageName') %>');"

    Once again, I'm not sure if that will sole the problem - but do give it a
    try (and please tell me if that works :)

    Kind regards,
    Nick Goloborodko

    [url]http://nickgoloborodko.com[/url]

    Mango wrote:
    > Hi there,
    >
    > I can't understand why when I write this text (part of datalist)
    >
    > onclick="javascript: changeImage('<%# DataBinder.Eval(Container.DataItem,
    > "imageName") %>');"
    >
    >
    >
    > Working perfectly, but when I click design view in vs.net 2003 it tells me
    > "Could not open in design view. Quote values differently inside a '<% :"
    > value":%>'block"
    >
    > I will be happy if someone can explain me why this is happen.
    --
    Kind regards,
    Nick Goloborodko

    [url]http://www.nickgoloborodko.com[/url]
    Nick Goloborodko Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139