日期:2014-05-18  浏览次数:20416 次

请教一个常识性的问题,请高手指点。
<%@   Page   Language= "C# "   AutoEventWireup= "true "     CodeFile= "Product_Update.aspx.cs "   Inherits= "WebUI.Manage.Prduct_Update "   %>

<!DOCTYPE   html   PUBLIC   "-//W3C//DTD   XHTML   1.0   Transitional//EN "   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

<html   xmlns= "http://www.w3.org/1999/xhtml "   >
<head   runat= "server ">
        <title> Unit   Page </title>
</head>

<script   language=javascript   type= "text/javascript ">

function   ShowTempImage(imageCtlID,fileCtlID)
{
var   filepath=document.getElementById(fileCtlID).value;
var   fileEx=filePath.split( ". ");
var   fileExName=(fileEx[fileEx.Length-1]).toLowerCase();
if(fileExName== "jpg "||fileExName== "gif ")
{
document.getElementById(imageCtlID).style.visibility= "visible ";
document.getElementById(imageCtlID).src=filePath;
}
else
{
document.getElementById(imageCtlID).style.visibility= "hidden ";
}
}
</script>
<body>
        <form   id= "form1 "   runat= "server ">
        <div>
            <table   border= "0 "   style= "width:100% ">
                <tr>
                        <td   style= "width:100% ">
                        </td>
                </tr>
                <tr>
                <td   style= "width:100%;height:152px; ">
                <table   border= "1 "   style= "width:100% ">
                <tr>
                    <td   style= "width:100% "> 产品名称 </td>
                      <td   style= "width:546px ">
                      <asp:TextBox   ID= "txt_pname "   runat=server> </asp:TextBox>
                      </td>
                </tr>
                <tr>
                      <td   style= "width:100% "> 类别 </td>
                      <td   style= "width:546px ">  
                      <asp:DropDownList   ID= "ddl_ptype "   runat=server   Width= "158px "&