我有一个ASPXGridview,其中包含一个New和Delete按钮。 “删除”按钮包含gv_RowDeleting事件。 我想显示AspxPopupControl(ID =“pupConfirm”)。我希望用户必须确认密码才能删除项目。 我试过了:
protected void gv_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e)
{
pupConfirm.ShowOnPageLoad = true;
}
但什么都没发生。请帮我。谢谢!!!
答案 0 :(得分:2)
您可以使用javascript创建模板列以提示确认。
import time
from multiprocessing import Process
class Climate(Object):
def update(self, glb_data):
while True:
time.sleep(5)
glb_data += 1
def send_data(connection, glb_data):
xml_text = glb_data.encode()
xml_len = len(data)
connection.sendall(str(xml_len).encode() + b' ' +xml_text)
if __name__ == "__main__":
glb_data = ""
cli_obj = Climate()
cli = Process(name="climate_data", target=cli_obj.update_data, args=(glb_data,))
cli.start()
sockobj = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sockobj.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
print "run launchserver"
sockobj.bind((serverHost, eval(serverPort)))
sockobj.listen(5)
while True:
connection, address = sockobj.accept()
print('Server connected by', address)
handleclient = Process(name='handleclient', target=send_climate_data, args=(connection,glb_data))
handleclient.start()
答案 1 :(得分:0)
使用模态弹出。您可以在此处查看代码和演示: Building Modal Popup using ASP.Net AJAX ModalPopupExtender Control