MyBody.Attributes.Add("onload", ...),读取参数后不能aplit.大家帮忙看看!!
if(!IsPostBack)
{
MyBody.Attributes.Add("onload", "document.Form1.TBoxtj.value=window.parent.dialogArguments");
string words=TBoxtj.Text.ToString();
string[] sArray=words.Split('|');
TextBox1.Text=sArray[0].ToString();
}
读取showModalDialog带来的参数,TBoxtj已得到参数,对参数split。没有取出,视乎没有执行split.
该怎么写?谢谢!