将scc插入ascx失败

时间:2011-11-05 17:15:31

标签: asp.net web ascx

我遇到了问题。 我在asp.net中扭动一个网站 我有一个SCC文件,我希望我的用户控件(ascx)文件使用它。 问题是控制器无法识别SCC代码。

我在ascx中的代码是:

enter code here <%@ Control Language="C#" AutoEventWireup="true" CodeFile="TabsAndLogoUserControl.ascx.cs" Inherits="UserControls_WebUserControl" %> <link href="~/App_Themes/style.css" rel="stylesheet" type="text/css" />    






<tr>                     
    <td style="  width:30%"> 
    <div class="header_resize">
  <div class="logo">          
        <h1><a><span>Hello</span>Word<small>i need help</small></a></h1>
        <br/><br/>

        </div>
        </div>
    </td>
    <td style=" height: 100%; width:70%">                
    </td>
</tr>

请帮帮我,告诉我我的错误是什么 谢谢

1 个答案:

答案 0 :(得分:0)

我认为您正在讨论CSS文件并且您的代码不正确,因为相对路径仅在服务器控件中被识别。 尝试:

<link href="App_Themes/style.css" rel="stylesheet" type="text/css" />