在A页中放入一个TextBox和一个Button.Button添加客户端onclick事件window.open("b.aspx")
在B页中放入一个TextBox和一个Button.Button添加客户端onclick事件
function Button1_onclick() { window.opener.document.getElementById("txtFjName").value = TextBox1.value; window.close(); }

posted @ 2008-07-03 23:52 快乐人 阅读(134) | 评论 (0)编辑
  
if(!Page.IsPostBack)
{
   Control ctl 
= Page.LoadControl("LmControl\\Left2.ascx");
   LmControl.Left2 left 
= (LmControl.Left2)ctl;
   left.showId 
= "2";
   left.bmId 
= "2";
   Page.Controls.Add(ctl);
}


在Left2.ascx用户控作中定义了showId,bmId属性
private string showid;
private string bmid;

public string showId
        
{
            
set
            
{
                showid 
= value;
            }

        }

        
public string bmId
        
{
            
set
            
{
                bmid 
= value;
            }

        }

posted @ 2008-07-03 23:41 快乐人 阅读(126) | 评论 (0)编辑
     摘要: 今天在网上看到了这段代码,觉的有用先记下来再说![代码] 阅读全文
posted @ 2008-07-03 23:12 快乐人 阅读(215) | 评论 (0)编辑