Add multiple [removed] events

前端 未结 8 1816
说谎
说谎 2020-12-02 10:31

In my ASP.NET User Control I\'m adding some JavaScript to the window.onload event:

if (!Page.ClientScript.IsStartupScriptRegistered(this.GetType         


        
8条回答
  •  南方客
    南方客 (楼主)
    2020-12-02 11:05

    I don't know a lot about ASP.NET, but why not write a custom function for the onload event that in turn calls both functions for you? If you've got two functions, call them both from a third script which you register for the event.

提交回复
热议问题