开发者

Open Jquery Dialog Server Side

开发者 https://www.devze.com 2023-01-21 06:13 出处:网络
Is it available to open jquery Dialog Server Side From Behind Code in asp.net? Please开发者_高级运维 give me an example or a link for more information.

Is it available to open jquery Dialog Server Side From Behind Code in asp.net? Please开发者_高级运维 give me an example or a link for more information. thanks.


You could use the RegisterStartupScript method from the code behind:

public void SomeButton_Click(Object sender, EventArgs e)
{
    string script = "$('#someid').dialog('open');";
    ClientScript.RegisterStartupScript(GetType(), "popup", script, true);
}

But mixing javascript and c# code is a very clean approach. It would be better to simply open the dialog from javascript on the client.

0

精彩评论

暂无评论...
验证码 换一张
取 消