小编eug*_*.it的帖子

如何使用javascript/jquery设置asp Panel元素可见/隐藏

asp:Panel我的页面上有一个元素.我能够在代码背后设置其可见性.但我还需要通过javascipt隐藏它.

panel的定义如下:

     <asp:Panel ID="pnlUpdateDisplay" runat="server" Visible="false" style="width:500px; border-width: thick;">
        <table style="width:300px;">
            <tr>
                <td valign="middle" style="width:120px" align="center">
                <asp:Label ID="lblUpdateMessage" runat="server" style="position:absolute; left: 120px; top: 120px;"></asp:Label>
                </td>
            </tr>
        </table>      
    </asp:Panel>
Run Code Online (Sandbox Code Playgroud)

当我这样做:

   var panel = document.getElementById('pnlUpdateDisplay');
   panel.style.visibility = 'hidden';
   panel.style.display='none';
Run Code Online (Sandbox Code Playgroud)

有一个错误说:"错误:无法获取属性'style'的值:object为null或undefined"

有什么建议?

javascript asp.net jquery panel

4
推荐指数
1
解决办法
2万
查看次数

使用Output0Buffer类时SSIS脚本转换错误

我试图通过提供用c#编写的脚本来帮助我们的dba,所以他可以在他的ScriptComponent中使用它.

我有一个输入文件,逐行处理并在Output0Buffer中创建一行,如http://www.codeproject.com/Articles/441678/Getting-Started-With-SSIS-Script-transforms?fid=中所述. 1765989&TID = 4344144

我已经编写了测试方法并且它工作正常,但是在Input0_ProcessInputRow示例中显示的方法中插入逻辑之后,我们得到一个错误,Output0Buffer说明在以下行中不存在:

    Output0Buffer.AddRow();
    Output0Buffer.Data = line;
    Output0Buffer.RegionName = regionName; 
Run Code Online (Sandbox Code Playgroud)

我们在这里失踪了什么?谢谢

c# ssis

4
推荐指数
1
解决办法
7450
查看次数

在Firefox上渲染Open Sans Light的问题

我使用Open Sans Light在IE和Chrome上显示html页面没有问题,但是在使用Firefox时,它不理解这种类型的字体.

这是定义我的字体的.css部分:

 .txtName
 {
     margin-left: 18px;
     font-size: 20px;
     color: #0140be;
     font-family: 'Open Sans Light' !important;
     font-weight:normal;
     line-height: 1.4em;   
 }
Run Code Online (Sandbox Code Playgroud)

这是html文件中需要在IE,Chrome和FF上显示相同的部分:

<div class="txtName-Main">
     <h1 class="txtName">Your pathway to success starts here</h1>
</div>
Run Code Online (Sandbox Code Playgroud)

可能是什么问题?

谢谢

html css firefox styles

2
推荐指数
1
解决办法
8627
查看次数

标签 统计

asp.net ×1

c# ×1

css ×1

firefox ×1

html ×1

javascript ×1

jquery ×1

panel ×1

ssis ×1

styles ×1