Error in Firebug is txtUserName has no properties. Offending line appears to
be
if (txtUserName.value.length > 0)
Took care of the missing bracket and it still does not work in FF but works
in IE.
Also My code IS indented in VS.
Hi,
> Error in Firebug is txtUserName has no properties. Offending line appears to
> be
> if (txtUserName.value.length > 0)
That error means that the control named after "<%=Username.UniqueID %>"
doesn't exist on your page. It's null, so when you try to access the
"value" property, it throws an error.
You must find why there is no such control on your produced page. Try to
view the produced HTML source (on the web client) and see if it's here.
> Took care of the missing bracket and it still does not work in FF but works
> in IE.
That's rather surprising for this error. Compare the produced HTML code
in IE and in Firefox. Do you see differences?
> Also My code IS indented in VS.
OK, that's good. I use "Insert spaces" instead of "Keep tabs" in the
"Text editor" options in VSto avoid this kind of annoyance when I
copy/paste code.
HTH,
Laurent

Signature
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft.ch
PhotoAlbum: http://www.galasoft.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Showjumper - 03 Aug 2007 23:04 GMT
Fixed the issue: it was the Unique ID reference which worke din IE but not
in FF.
> Hi,
>
[quoted text clipped - 23 lines]
> HTH,
> Laurent
Showjumper - 03 Aug 2007 23:19 GMT
Thanks for your help.
> Hi,
>
[quoted text clipped - 23 lines]
> HTH,
> Laurent