简体   繁体   English

当用户单击按钮时,如何创建一个EWF UI页面来修改数据?

[英]How do you create an EWF UI page that modifies data when the user clicks a button?

I want to make a page that collects some information from the user and then modifies the database if the user clicks a button. 我想制作一个页面,该页面收集用户的一些信息,然后在用户单击按钮时修改数据库。 If the user navigates away from the page without clicking the button, I don't want anything to be modified. 如果用户在不单击按钮的情况下离开页面,则我不想修改任何内容。

How do I do this without having to manually put my own button in the content area? 我如何做到这一点而不必手动在内容区域中放置我自己的按钮?

Call EwfUiStatics.SetContentFootActions from LoadData of the page. 从页面的LoadData调用EwfUiStatics.SetContentFootActions。 This will cause a big button to be displayed in the lower right corner of the page. 这将导致一个大按钮显示在页面的右下角。 If the user clicks it, the data modification that you passed to the method will be executed. 如果用户单击它,将执行传递给该方法的数据修改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 用户单击按钮时重定向到登录页面 - Redirecting to login page when user clicks a button 当用户单击asp按钮时,如何模拟键盘按钮的按下? - How do I simulate keyboard button press when the user clicks on asp button? 当用户单击按钮(而不是page_loadcomplete)时如何调用javascript方法? - How to call javascript method when user clicks on button(not on page_loadcomplete)? 当用户单击asp.net中的浏览器后退按钮时,如何快速重定向页面 - How to redirect the page quickly when the user clicks the browser back button in asp.net 当用户单击Ctrl键+链接按钮时,如何在新标签页中打开页面? - How to open a page in new tab when user clicks ctrl key + link button? C#:当用户单击按钮时如何查看图像? - C#: How do I view an image when a user clicks on a button? 当用户单击不正确的按钮时,如何使c#应用程序弹出视频? - How do I get my c# application to popup a video when user clicks incorrect button? 用户单击MessageDialog上的按钮时如何调用FileSavePicker? - How to call FileSavePicker when user clicks button on MessageDialog? 用户单击列表框项时如何显示按钮? - How to show button when the user clicks a listbox item? 当用户单击DropDown按钮时,如何不在DateTimePicker中显示日历 - How not to show calendar in the DateTimePicker when user clicks DropDown button
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM