You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
shellscape edited this page Mar 9, 2013
·
1 revision
Brew ships with two script files that will unpack into the Scripts directory of your website: brew.js and brew.min.js. Either file is required by any page that uses Brew, but fear not - the ScriptManager and Controls take care of adding it to the page for yu. brew.js is the unminified, development version. brew.min.js is (obviously) the minified, release version. When deploying your code, it is recommended that you use the release version of brew.js.
To switch between script modes, you can use the following code block. This can be inserted into a control, page or masterpage.
protectedoverridevoidOnLoad(EventArgse){base.OnLoad(e);varsm=ScriptManager.GetCurrent(this.Page);sm.ScriptMode=ScriptMode.Release;// or ScriptMode.Debug}