I don't think you can use regular submit buttons to trigger validation.
Change this:
<input name="btnAdd" type="submit" id="btnAdd" value="Add "/>
to something like this:
<asp:Button id="btnAdd" runat="server" Text="Add" />
For these kind of questions, I think you can better post in a .NET forum instead of a Dreamweaver forum....
rain_uk: Your solution works for client side validation only where DW generates JavaScript for validation. However, the ASP.NET validation controls are much more powerful than that as they also validate on the server....
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
Forever Changed by
Lou Reed & John Cale (Track 14 from the album:
Songs For Drella)
What's This?