<%@ Page Language="C#" MasterPageFile="xyggl.master" AutoEventWireup="true" CodeFile="zywh.aspx.cs" Inherits="zywh" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" ID="Content1" Runat="Server">
<script language="JavaScript">
function Button7_onclick()
{
var str=showModalDialog("xuanzerenyuan/xuanzerenyuan.asp?iniurl=wenjianzhonglei_guanliyuan.asp?id="+Content.id.value,"","center:yes;status:yes;scroll:no;help:no;dialogWidth:500px;dialogHeight:290px");
if(str!=null)
{
var mingcheng,bianhao,string;
string=str.split("$");
mingcheng=string[0];
bianhao=string[1];
if(bianhao.length>7)
{
window.alert("只能选择一个!");
return false;
}
window.document.Content1.fuzeren.value=mingcheng;
window.document.Content1.gonghao.value=bianhao;
}
}
</script>
<asp:Label ID="Label1" runat="server" Text="设置专业培养负责人:" Width="176px" Font-Underline="True" ForeColor="Red"></asp:Label><br />
<asp:Label ID="Label2" runat="server" Text="选择专业" Width="68px"></asp:Label>
<asp:DropDownList ID="DropDownList1" runat="server"
DataTextField="dic_zy" DataValueField="dic_zy" >
</asp:DropDownList>
<asp:Label ID="Label3" runat="server" Text="选择负责人" Width="86px"></asp:Label>
<asp:TextBox ID="fuzeren" runat="server" Width="63px"></asp:TextBox> <input id="Button7" type="button" value="选择" language="javascript" runat =server onclick="return Button7_onclick()" />
<asp:Label ID="Label4" runat="server" Text="负责人工号" Width="87px"></asp:Label>
<asp:TextBox ID="gonghao" runat="server" Width="70px"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="确定" OnClick="Button1_Click" />
<br />
<asp:Label ID="Label6" runat="server" Text="专业维护" Width="74px" Font-Underline="True" ForeColor="Red"></asp:Label><br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" AllowPaging="True" PageSize="8" onPageIndexChanging="GridView1_PageIndexChanging"
ForeColor="#333333" GridLines="None" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing"
OnRowUpdating="GridView1_RowUpdating" OnRowCancelingEdit="GridView1_RowCancelingEdit">
<FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField DataField="dic_id" HeaderText="ID" ReadOnly="True" />
<asp:BoundField DataField="dic_zy" HeaderText="专业名" />
<asp:BoundField DataField="zyfzr" HeaderText="专业负责人" />
<asp:BoundField DataField="fzrid" HeaderText="统筹编号" />
<asp:CommandField HeaderText="选择" ShowSelectButton="True" />
<asp:CommandField HeaderText="编辑" ShowEditButton="True" />
<asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
</Columns>
<RowStyle ForeColor="#000066" />
<SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
<HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
</asp:GridView>
<br />
<asp:Label ID="Label7" runat="server" Text="添加专业"></asp:Label>
<asp:TextBox ID="tianjiazy" runat="server"></asp:TextBox>
<asp:Button ID="Button3" runat="server" Text="确定" OnClick="Button3_Click" /><br />
</asp:Content>
请问红色代码部分应该怎么写?不用母版页的时候id="+Content.id.value,"这里是id="+form1.id.value,"。可使用了母版页,没有form1了。求助!!!