Dynamically open a radwindow defined in Javascript

前端 未结 2 1960
温柔的废话
温柔的废话 2021-01-14 13:28

Objective:- From the server-side, I need to open a radwindow(defined in JavaScript of the aspx page) automatically on an IF condition.

Code

2条回答
  •  北海茫月
    2021-01-14 14:08

    Take a look here, it explains how to use the ScriptManager.RegisterStartupScript method: http://www.telerik.com/help/aspnet-ajax/window-troubleshooting-javascript-from-server-side.html. Note it the ScriptManager's method. Also look at the Sys.Application.Load event to prevent your code from executing too early.

提交回复
热议问题