在vb.net中显示后端的弹出窗口

时间:2015-04-17 07:34:19

标签: asp.net vb.net

我想在点击按钮时在VB.Net中显示一个弹出窗口。我不想让modalpopupextender代码在aspx文件上。如何在后端编写新的modalpopupextender,面板及其元素,并在单击按钮时显示弹出窗口?

1 个答案:

答案 0 :(得分:1)

你可以创建js函数,在前面创建一个弹出窗口,然后在VB上使用这个函数调用该函数

ScriptManager.RegisterStartupScript(this,GetType()," YourPopupFunction"," YourPopupFunction();",true);