最近剛學,遇到了個問題,望高手能幫個忙?。∥矣袃蓚€文件,一個main.aspx 一個WebForm1.aspx ,WebForm1.aspx有兩個控件,一個DropDownList1,一個TextBox1main.aspx的 Html代碼:......<frameset id="aa" cols="150,8,*"> <frame name="left" scr="lefttree.aspx"> <frame name="middle" scr="t_l.htm"> <frame name="main" scr="WebForm1.aspx"></frameset>... WebForm1.aspx.cs 代碼也只加了 private void DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e) { this.Page.RegisterStartupScript("","<script>document.getElementById('TextBox1').focus();</script>"); } }只運行WebForm1.aspx時,能實現DropDownList1改變,TextBox1獲得焦點,但運行main.aspx卻不能獲得焦點,而且TextBox1點也點不進去了! 還望各位高手給予指點?。?
框架網頁控件獲取焦點?。?/h1>
慕碼人8056858
2018-10-25 05:06:25
慕碼人8056858
2018-10-25 05:06:25