c# - 在 C# 中对网格视图进行更改时如何执行存储过程
问题描述
我正在根据用户输入的列数动态使用网格视图,并且在应用更改时还可以执行一个 java 脚本函数。创建文本框以输入数据,如下所示:
for (int i = 1; i < gvTable.Columns.Count; i++)
{
TextBox text = new TextBox();
e.Row.Cells[i].Controls.Add(text);
text.Attributes["Type"] = "numbers";
text.Attributes.Add("autocomplete", "off");
text.Attributes.Add("on change", "Fun()");
text.Attributes["type"] = "numbers";
}
完成任何更改后,我必须使用这些值执行存储过程。我尝试使用按钮通过 onClick 事件执行过程,但文本框正在消失。任何解决此问题的建议。
解决方案
推荐阅读
- javascript - 根据上一个下拉菜单中选择的选项设置文本字段的最小值和最大值
- powershell - 删除旧的/冗余的 activesync 伙伴关系
- node.js - 如何缓存 Express.js 中从磁盘读取的特定路由
- amazon-web-services - 我们可以在单个 serverless.yml 文件中使用 AWS 和 Google Cloud 资源的组合吗?
- account - 以后可以将Jfrog OSS账号转为企业版账号吗?
- git - 如何正确分叉本地 git 存储库?
- android - 在没有木星的情况下,我如何在 Junit5 中断言抛出
- c# - 循环遍历在特定时间范围内创建的文件并获取文件名
- javascript - 如何重写冗余方法声明并创建一个更短的方法?
- ansible - 使用 Ansible 循环创建多个用户:未定义的错误