动态变量-ASP.NET [英] Dynamic Variables-ASP.NET

查看:89
本文介绍了动态变量-ASP.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用数据列表创建了一个表单,该表单根据搜索条件动态填充报表项。表单正确加载,但我似乎无法找到一种方法来调用数据的变量,所以我可以将其输入数据库。


我看过动态生成的变量名,但无法弄清楚如何在我的aspx.vb文件中调用它们。任何帮助将不胜感激。

I have created a form using a datalist that is dynamically populated with report items based on search criteria. The form loads correctly but I can''t seem to find a way to call the variables for the data so I can enter it into the database.

I have looked at the dynamically generated variable names but can''t figure out how to call them in my aspx.vb file. Any help would be appreciated.

推荐答案

假设您在页面中动态生成控件:
Suppose you dynamically generate a control in your page:
展开 | 选择 | Wrap | 行号


我不确定这是否有用。报告将加载输入一个表单。输入和文本框的数量是不同的。这是我用来加载页面的代码。

I''m not sure if that would work. The report inputs load into one form. The number of inputs and text boxes is different. Here is the code that I am using to load the page.

展开 | 选择 | Wrap | 行号


您是否尝试过使用。 FindControl使用其中一个唯一名称来查看它是否可以找到它?
Have you tried to use .FindControl with one of those unique names to see if it can find it?


这篇关于动态变量-ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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