简体   繁体   中英

How can I call a jquery function from asp.net

I'm stuggling to find ways to call a jquery

ScriptManager.RegisterStartupScript(GetType(), "Javascript", "countdown(); ", true);

Problem this is it trys to call the method inline so it won't execute the function which is in a external javascript file.

Any way to call my jquery function from asp.net c#?

Turns out my code worked. I just had to clear my cache as it was loading my old javascript file. DOH!

ScriptManager.RegisterStartupScript(GetType(), "Javascript", "countdown(); ", true);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM