I have roughly 700 lines of javascript code going on a new site with ASP.NET. I have a question, and sadly cannot perform the competition at this moment.
Would be be better and faster to just include a javascript file through masterpages, or would it be better to use stringbuilder to append each line, then register the script?
Example:
Dim str As New StringBuilder()
str.AppendLine("....")
str.AppendLine("....")
str.AppendLine("....")
str.AppendLine("....")
str.AppendLine("....")
str.AppendLine("....")
str.AppendLine("....")
str.AppendLine("....")
str.AppendLine("....")
str.AppendLine("....")
str.AppendLine("....")
str.AppendLine("....")
RegisterScript("scriptname", (str).ToString(), True)
'Custom function that creates the script, checks for
'registration, then adds the script to the page with tags (if needed).
** WRONG FORUM **
** Admin, please move to forum ASP.NET, Thank you **