用javascript改变了dropdownlist控件的值:
var option = document.createElement('option');
option.text =str;option.value =str;
list.add(option);
list.selectedIndex=list.options.length-1;然后按下按钮btn1,但在Btn1_Click事件中,发现dropdownlist.SelectedItem.Value的值仍然是旧值。
如何取得改变后的新值?
var option = document.createElement('option');
option.text =str;option.value =str;
list.add(option);
list.selectedIndex=list.options.length-1;然后按下按钮btn1,但在Btn1_Click事件中,发现dropdownlist.SelectedItem.Value的值仍然是旧值。
如何取得改变后的新值?
解决方案 »
- 如何一个td单元格下面有若干个table,如何隐藏这些table,而只显示中间的一个.
- 在js脚本中11.12乘以10000 的算出来的是错误数据!
- 晕~~~~~~~~~~`一个简单超级链接的问题.................................马上给分,,
- 新手提问:关于窗体身份验证问题
- 问一个关于 Visual Web Developer 2005 Express Edition 的问题
- 无法建立 .net程序。(附图)求助
- 请教一个codebehind的问题--编译报错有异常出现◎
- button的click事件获取textbox内容一直为空
- 一个另类的问题?请教各位高手
- 求助asp中的onclick问题!!!
- 关于另存为对话框(高分)
- 将数据导出到excel的问题
get:Request.QueryString["name"]
还有其他方法吗?下班前结账
{
var backvalue="";
var a1=null;
var a2=null;
if(document.Form1.pichidden.value=="")
{ alert("请选取广告位要显示的默认图片!"); }
else
{
for (i=0;i<document.all.Right.options.length;i++)
{
a1=document.all.Right.options(i).value;
a2=a1.split("*")[0];
backvalue+=a2+',';
}
document.getElementById('TextBox3').value=backvalue;
document.getElementById('TextBox4').value=document.Form1.pichidden.value;
document.getElementById('LinkButton1').click();
}
}这样就可以了 注意 with =0px visible=true
-======================
this.Request[]是模糊检索,他先检索get中的值,再检索post中的值..
最好使用Request.Form[]。。效率比Request[]高