PDA

View Full Version : سوال: master page



bisotun
چهارشنبه 26 مرداد 1390, 23:08 عصر
سلام
من یه master page درست کردم،حالا صفحات دیگه ای رو درست کردم که از master page ارث می برند رو آپلود کردم اجرا نمیشه و خطای CONFIG میده
اینم یه تکه کد یکی ازصفحاتم

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" %>




<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
.style1
{
font-size: xx-large;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Image ID="Image10" runat="server" ImageUrl="~/l1.jpg" Width="508px"
Height="95px" />
<br />
<br />
<br />
<br />
<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span class="style1">&nbsp; WELL COME</span></b>
</asp:Content>

nasinas
پنج شنبه 27 مرداد 1390, 00:33 صبح
دوست عزیز میشه اخطاری رو که میده اینجا بنویسی؟

bisotun
سه شنبه 01 شهریور 1390, 17:43 عصر
Server Error in '/' Application.

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>

bisotun
سه شنبه 01 شهریور 1390, 17:44 عصر
در ابتدا من masterpage درست نکرده بودم ، هر صفحه ای که آپلود میکردم ، مشکلی نداشت.

Saman Hashemi
چهارشنبه 02 شهریور 1390, 08:53 صبح
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
اين قسمت تبديل به Off كن تا خطا نشونت بده اين خطاي اصلي نيست...!