如何使用c#触发按钮单击

如何使用c#触发按钮单击

本文介绍了如何使用c#触发按钮单击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个说200行的数据表。我想将200行值插入表中。但我想在4页加载中执行它。然后插入前50,然后我想返回页面,然后在下一个50后暂停,依此类推。所以我被困在这里是如何实现这样的功能。在插入前50行后返回页面时,我必须将它们的状态显示为已插入。所以我想要做的是在插入50后打电话查看页面。但我怎样才能实现呢?



我正在使用c#+ html和虽然不是传统的MVC,但使用它的概念。所以我必须从Model打电话才能刷新页面。



我这样做了

Hi,

I have a data table which have say 200 rows. I want to insert that 200 row values into a table. But i want to execute it in 4 page loads. i.e first 50 are inserted then after that i want to return to the page and then after a pause next 50 and so on. So where i am stuck here is how to implement such function. While returning to the page after inserting the first 50 rows i have to show the status of them as inserted. SO what i am trying to do is to make a call to view page after inserting 50. But how can i achieve it?

I am using c#+html and though not the conventional MVC, but using its concept. so i have to make a call from Model so that page is refreshed.

I have done this

Button btnRefresh = new Button();
btnRefresh.OnClientClick = "SetMVC('ConfigureMultipleDeviceView','view','DeviceController','frmMVC','0','" + companyId + "','" + companyType + "')";





但我怎么能解雇



but how can i make it fire

推荐答案



这篇关于如何使用c#触发按钮单击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 23:50