Errors - two more

Tech-Archive recommends: Fix windows errors by optimizing your registry



I succeeded in putting up a datalist with thumbnails, four to a row. I put
the height and width in the rows and invoked them in the aspx file with:

<asp:Image ID="Image1" runat="server" Width=<%#
Container.DataItem("TheWidth").ToString() %>
Height=<%# Container.DataItem("TheHeight").ToString() %>
ImageUrl='<%# Container.DataItem("TheFile") %>' />

Error #1:
Note: This Worked! However, when I build the page I get errors:

Validation (ASP.Net): Attribute values must be enclosed in quotation marks.

for each of Width and Height. If I try to enclose the <% %> with either
single or double quotes, I get exception errors and it doesn't work. Does
anyone know how to get rid of the errors, yet still have it work?

Error #2:
When I try to add a validation control (either required or range), it
doesn't come up with an ID automatically. When I manually put one in, there
are no properties appearing in the property box. The hint says:

"Element 'RequiredFieldValidator' is not a known element. This can occur if
there is a compilation error in the Web Site, or the web.config file is
missing."

The web.config file is present, and on another page the validator comes up
with properties in the properties box.

Could these two errors be related?

--
Shelly

P.S. At one point I got an error message that <ItemTemplate> could not be
nested within a datalist control. That went away after I moved the end
datalist line and then moved it right back to where it had been??????


.



Relevant Pages

  • Re: Errors - two more
    ... I had been placing the validation control right after ... If I try to enclose the with either ... "Element 'RequiredFieldValidator' is not a known element. ... nested within a datalist control. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Problems with Validator controls
    ... of some certain ASP.NET TEXTBOX server controls. ... try set it as false to see whether the serverside validation work on both ... clientside scripts on the test servermachine. ... I think you can use the RequiredFieldValidator control's "Display" ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: RequiredFieldValidator ErrorMessage display
    ... I don't think the RequiredFieldValidator works this way. ... in a textbox and you try to submit the form the RequiredFieldValidator will ... Maybe the other validation controls work that way, ... > text, tab off, go back remove text, tab off you get the error message. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Why Validation Control does not work with Mozilla Firebird 0.6
    ... > Validation will always work on the server side, ... >> But the validation control also works on some pages with Mozilla. ... >> client side javascript error and I follow the instruction it said. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Problems with Validator controls
    ... I'm using the RequiredFieldValidator on 9 text boxes and then a Validation ... it would work on my machine, but not on the test web server. ... One other question about the Validator controls. ...
    (microsoft.public.dotnet.framework.aspnet)