Programmatically adding Javascript File to User Control in .net

后端 未结 8 1979
不知归路
不知归路 2020-12-24 08:08

How do you add Javascript file programmatically to the user control?

I want the user control to be a complete package - ie I don\'t want to have to add javascript th

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-24 09:06

    In my site I Place all needed scripts and styles to placeHolder

    
        
        
    
    

    and

    Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Page.Header.Controls.Add(phHead)
    End Sub
    

提交回复
热议问题