Jun 24, 2020 09:40 AM|XuDong Peng|LINK
Based on your description, I think ClientScriptManager.RegisterClientScriptInclude Method may help
you achieve your needs.
You can add it to the header in the Page_Load event, just like this:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Page.ClientScript.RegisterClientScriptInclude("script", "https://js.squareup.com/v2/paymentform")End Sub
And an empty page named “AddJsFile” and its result:
You also can choose which file to import after judging the operation.
Hope this can help you.