private void displayArea()
{
//string js = "this.document.getElementById('AddArea').style.display = '';this.document.getElementById('ContentPlaceHolder1_btnAdd').style.display = 'none';";
string js = "this.document.getElementById('AddArea').style.display = '';this.document.getElementById('table2').style.display = 'none';this.document.getElementById('table3').style.display = 'none';";
ScriptManager.RegisterStartupScript(this, this.Page.GetType(), "js1", js, true);
}
-----
onclick="document.getElementById('AddArea').style.display = 'none'; document.getElementById('table2').style.display = '';document.getElementById('table3').style.display = '';"
{
//string js = "this.document.getElementById('AddArea').style.display = '';this.document.getElementById('ContentPlaceHolder1_btnAdd').style.display = 'none';";
string js = "this.document.getElementById('AddArea').style.display = '';this.document.getElementById('table2').style.display = 'none';this.document.getElementById('table3').style.display = 'none';";
ScriptManager.RegisterStartupScript(this, this.Page.GetType(), "js1", js, true);
}
-----
onclick="document.getElementById('AddArea').style.display = 'none'; document.getElementById('table2').style.display = '';document.getElementById('table3').style.display = '';"
沒有留言:
張貼留言