FineUI 官方论坛
标题:
Grid 和asp.net 值不能为空参数名: s
[打印本页]
作者:
卟、縭
时间:
2012-11-22 02:05
标题:
Grid 和asp.net 值不能为空参数名: s
用户控件代码:
<script language="javascript">
function FileSumit(obj) {
alert(obj.id);
document.getElementById(obj.id.replace("File1", "txtFile")).value = obj.value;
alert(document.getElementById(obj.id.replace("File1", "btnAdd")).id);
document.getElementById(obj.id.replace("File1", "btnAdd")).click();
}
function delete_confirmAttachment() //删除前执行脚本
{
event.returnValue = confirm("确认要删除吗?");
}
</script>
<table id="table1" runat="server">
<tr>
<td>
<input id="txtFile" readonly type="text" size="57" runat="server" class="bian">
<input id="File1" style="width: 56px; height: 22px;" class="btnClass" type="file"
onchange="FileSumit(this);" size="0" runat="server">
<asp:Button ID="btnAdd" runat="server" Style="display: none" Text="添加" Height="0px"
OnClick="Button1_Click" />
</td>
</tr>
</table>
页面代码:
<ext
ageManager ID="
ageManager1" runat="server" AjaxAspnetControls=""/>
<ext:ContentPanel ID="ContentPanel1" runat="server"
BodyPadding="5px" EnableBackgroundColor="true" ShowBorder="true" ShowHeader="true"
Title="ContentPanel">
<uc1:WebUserControl ID="WebUserControl1" runat="server"></uc1:WebUserControl>
</ext:ContentPanel>
<ext:Grid ID="Grid1" Title="Grid" EnableRowNumber="true" EnableCheckBoxSelect="true" runat="server">
<Columns></Columns>
</ext:Grid>
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4