How to call js in background cs
This article focuses on "how to call js in the background cs", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to call js in background cs.
The copy code is as follows:
ScriptManager.RegisterStartupScript (searchBtn, this.GetType (), "clickPage", "clickPage (" + pageIn.ToString () + ");", true)
Among them, searchBtn is the random tag in the current page, this.GetType () is fixed, "clickPage" this is also casual, "clickPage (" + pageIn.ToString () + "); this is the key, is the method in js," true "is a must.
At this point, I believe you have a deeper understanding of "how to call js in the background cs". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!