如何在Modal弹出式扩展程序中更新数据 [英] How can i update the data in Modal popup extender

查看:90
本文介绍了如何在Modal弹出式扩展程序中更新数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,
我有一个关于在Modal弹出式扩展程序中更新数据的问题.我有一个带活动数据的detailview和一个用于取消活动的链接按钮.单击可以取消活动"按钮时,将显示弹出窗口,并要求用户输入取消原因.这是指向我的界面的链接 https://dl.dropbox.com/u/47780108/ModalPopupExtender.jpg [^ ]

我尝试在单击确认"按钮的事件中放入一些命令,例如sql update命令.但是什么也没发生.所以我该如何解决这个问题.这是我第一次使用模式弹出窗口.请给我任何建议.


感谢您的帮助.

最好的问候,
Rose

Dear all,
I got a problem about updating the data in Modal popup extender. I have a detailview with the activity data and a link button to cancel the activity. When the can cancel activity button was click the popup is show and ask user to enter the reason of cancellation. Here is the link to my interface https://dl.dropbox.com/u/47780108/ModalPopupExtender.jpg[^]

I have tried to put some commands like sql update command in the event click for comfirm button. But nothing was happened. so how can i solve this problem. This is my first time for using modal popup. Please give me any suggestion.


Thanks for your kindly help.

Best regard,
Rose

推荐答案

protected void btnUpdate_Click(object sender, EventArgs e)
{
    //Find your text box control here..
    
    //Take your TextBox value and do your save logic..

    //after this still if you want to show that ModalPopUp means use 
    ModalPopUpId.Show(); else ModalPopUpId.Hide();

}



希望这会对您有所帮助.



Hope this will help you..


这篇关于如何在Modal弹出式扩展程序中更新数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆