best place to put javascript in conlib controls

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
mike92117
Lieutenant (LT)
Lieutenant (LT)
Posts: 64
Joined: Sat Nov 07, 2009 6:41 pm

best place to put javascript in conlib controls

Post by mike92117 » Tue May 31, 2016 12:49 pm

I was wondering what is the recommended approach for using javascript in ConLib controls. I see in some cases it's done in code. Others, perhaps just put in the <script>...</script>< in the user controls themselves. Any thoughts or recommendations?

nadeem
Captain (CAPT)
Captain (CAPT)
Posts: 258
Joined: Tue Jul 31, 2012 7:23 pm

Re: best place to put javascript in conlib controls

Post by nadeem » Wed Jun 01, 2016 1:38 am

JavaScript code can be placed in markup if it isn't using dynamic code. Also it helps to make changes effective without compiling the code. For example, in case of WAP, you have to recompile your website every time you make a change to javascript using code behind.

Post Reply