| re: Values of location field gets truncated in a asp generated table
Paxton wrote:[color=blue]
> Avlan wrote:[color=green]
> > This has something to do with the fact that SQL-statements use the
> > '-character. I think the solution was something with putting the ' in
> > between two ", so it will be something like "'" (or " ' " with spaces).
> >
> > When a '-character is used, you effectively tell the server the
> > SQL-string ends there.
> >
> > I'm probably a bit vague but thats because its been some time since I
> > had sort of the same problem ;-)[/color]
>
> No - it's HTML 101.
>
> The OP was using a single quote to delimit his attribute values. This
> is OK if they contain double quotes, but when the browser reaches the
> single quote in the value, it figures it has reached the end of the
> value, so stops writing.
>
> HTML specification is that you use doublequotes for attribute values.
> In XHTML, it's mandatory.
>
> /P.[/color]
Oops. Meant to say HTML *recommendation*, not specification.
/P. |