The original asp webpages had including some external javascript that do check all checkbox, displaying pop up calendar, validating the textbox..etc When I changed the extension from asp to aspx, and let the form and textbox, checkbox...etc to runat server,
suddently all the javascript doesn't work anymore. Is there anything I should take note of? I think I must have miss out something....
well, once the page reaches the browser there's no actual difference. both frameworks generate plain old HTML - however there could be some specific problem which we of course can't see from here. more details?
RTFM - straight talk for web developers. Unmoderated, uncensored, occasionally unreadable
If your javascript is using the ID value of textboxes, checkboxes etc, then such javascript will likely fail, because the ID values will change by the time they get to the client.
If that proves to be the problem, we can show you how to address it. Generally, when posting to forums, it helps greatly if you can show the code that is failing to work. If this is coupled with a clear explanation of what you're trying to achieve, we
can help you get the code working.
justicefish
Member
310 Points
67 Posts
About javascript in converting from asp to asp.net
Dec 13, 2003 01:05 PM|LINK
Atrax
All-Star
18705 Points
3733 Posts
Re: About javascript in converting from asp to asp.net
Dec 14, 2003 01:00 AM|LINK
Jason Brown - MVP, IIS
SomeNewKid
All-Star
45894 Points
8027 Posts
Re: About javascript in converting from asp to asp.net
Dec 14, 2003 06:33 AM|LINK