Dnnfilepicker上传文件按钮未显示给注册用户

时间:2017-09-22 14:54:58

标签: dotnetnuke

我正在构建一个使用DNNFilePicker控件的自定义DNN模块。

我想知道为什么上传文件按钮仅针对超级用户而非注册用户显示?

我必须添加哪些代码?

1 个答案:

答案 0 :(得分:0)

我们已经为我们的使用实现了类似下面的内容

<label class="file-upload">
                        <span><strong>Select file</strong></span>
                        <asp:FileUpload CssClass="fileuploadcss" ClientIDMode="Static" ID="POdDOc" runat="server" />
                    </label>
<style type="text/css">
.file-upload
{
    overflow: hidden;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    text-align: center; / Cosmetics /
    border: 1px solid #cfcfcf;
    background: #e2e2e2; / Nice if your browser can do it /
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    cursor: pointer;
}

.file-upload:hover
{
    background: #e9e9e9;
}

.file-upload.focus
{
    outline: 1px solid yellow;
}

.file-upload input
{
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    font-size: 10pt; / Loses tab index in webkit if width is set to 0 /
    opacity: 0;
    filter: alpha(opacity=0);
}

.file-upload strong
{
    padding-top: 5px;
    font-size: 9pt;
    font-weight: normal;
}

.file-upload span
{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    display: inline-block; / Adjust button text vertical alignment /
    padding-top: 5px;
}

/ Adjust the button size /
.file-upload
{
    height: 22px;
}
.file-upload, .file-upload span
{
    width: 75px;
}

a.dellink
{
    color: #e60000;
    font-weight: bold;
    text-decoration: none;
}
a.dellink:hover
{
    color: #ff8040;
    font-weight: bold;
    text-decoration: none;
}

.customcssspan
{
    /*color: #20b5dc;*/
    color: Red;
}

.clsHidden
{
    display: none;
}

相关问题