js
这是我调用子页面后返回了值处理成功,给我相应的控件赋值时成功.但就是在页面中没有刷新.请各位专家帮帮忙..
/*
===========================================
//ASPxButtonEdit
===========================================
*/
function Getvaluesg(dxe, args){ var s= document.getElementById(dxe.name).getAttribute("url"); //获得地址URL
//var valy =document.getElementById(dxe.name).getAttribute("value"); //获得原有值 var val=dxe.GetValue();
//获得现有值 var returnItem=window.showModalDialog(s,"","help:no;resizable:no;"); //调用选择编辑页面
if(returnItem != undefined && returnItem.length >= 0)
{
dxe.SetText( subTxt(returnItem)+""); // 调用控件赋值
} }/*
===========================================
//处理字符串参数
//设置控件的值
//参数:字符串;
//格式( 用,分隔 组成字符串 如果返回值要设定不同控件值 用 表字段名=值 )
//例 : CloseWindowb("txtName1,txtName2,txtName3,pwd=*,sex=男")
===========================================
*/
/*
===========================================
//控件赋值方法
===========================================
*/
function subTxt(returnItem){var v = returnItem.split(","); // 分成数组
var aastr ="";
for(var o in v)
{ if(v[o].indexOf("=")!= -1) // 指定字段控件赋值的数组成员
{
var str= v[o].split("="); if(str[0]!=null)
document.getElementById(str[1]).value = ""+str[0]; //将值赋给指定控件
PageMethods.SetTexts(str[1],str[0],onComplete,onError,document.getElementById(str[1]));
}
else{
aastr+=""+v[o]+" ";
}
} return aastr;}
/*
===========================================
//回调函数
===========================================
*/function onComplete(result,context)
{
//将值赋给指定控件
context.value ="AAAAAAAAAAAAAAAAAAA";
//context.Init();
document.getElementById(context.id).value = "aaaaaaaaaaaaa";;
}
/*
===========================================
//出错显示函数
===========================================
*/
function onError(result)
{
alert("程序出错了:" + result.get_message());
}
_doPostBack????这方法我不太清楚..用的太少..帮帮忙....好吗
好像没有这个属性
能帮我写个点击控钮,用脚本改变ASPxTextBox显示的值不???
我从来没用过个这控键..如果有控件使用的说明发给我好吗?谢谢了.给你100多分