我有一个表,其中包含一堆动态创建的单选按钮列表,我试图编写代码,该代码将遍历每个单选按钮列表并获取所选项目的文本值。我有以下代码
foreach ( Control ctrl in Table1.Controls)
{
if (ctrl is RadioButtonList)
{
//get the text value of the selected radio button
}
}
Run Code Online (Sandbox Code Playgroud)
但我仍然坚持如何获取给定控件的所选项目的价值。
我正在开发一个网络项目,需要将跨数据库数据库中的数据显示到网格视图中。然而这些数据是不断变化的,iv 设法查询数据库并将数据显示到网格视图中。我现在陷入了如何在 5 分钟后自动刷新页面以便查询并显示新数据的问题。
您能否就我如何实现上述目标提出建议?
我试图创建一个联系我们的网页,发布数据的明显选择将是使用mailto功能,这显然有一些安全漏洞.我想知道是否有任何好的JavaScript我可以使用从联系我们页面发送详细信息到我的电子邮件.我的教程会有所帮助,因为我对此很陌生.
我有一个巨大的查询,这些年来逐渐增长,所有的iv都是为了满足增长而增加子程序.我现在的问题是这个查询大约需要3分钟才能运行.有人可以帮我优化这个查询
SELECT ENTRY_1.REP_CODE,CONTACT_1.NAME,
(select sum((d2.total_goods-d2.total_cost)*et2.sign)
from detail d2
join entry e2 on d2.entry_id=e2.entry_id
join entry_type et2 on et2.entry_type=e2.entry_type
join rep r2 on e2.rep_code=r2.rep_code
join contact c2 on r2.contact_id=c2.contact_id
where ((d2.detail_type = 'O' and d2.charged_qty<d2.qty
and d2.nocharge_qty=0)
or (d2.detail_type = 'N' and e2.entry_type in('SINV','SCRN','DREC','DSRF'))
or (( e2.entry_type = 'SJIN' ) and ( d2.total_goods = 0 )))
and c2.contact_id=contact_1.contact_id
and (e2.year_num=entry_1.year_num and e2.period_num=entry_1.period_num)) MTD_GP,
-- get the month to date sales
(select sum((d2.total_goods)*et2.sign)
from detail d2
join entry e2 on d2.entry_id=e2.entry_id
join …Run Code Online (Sandbox Code Playgroud) asp.net ×2
c# ×1
c#-4.0 ×1
flash ×1
javascript ×1
optimization ×1
select ×1
sql ×1
time ×1
timer ×1