View Full Version : سوال: نمایش پیغام
  
article
چهارشنبه 06 آذر 1387, 21:07 عصر
من کد زیر را برای نمایش پیغام می نویسم
(<asp:Panel ID="pnl_customer" runat="server" Style="display: none;" > CancelControlID="btn_cancel_customer" DropShadow="t
<div >
<asp:Label ID="lblinfo" runat="server" Text="Do you want to save?"></asp:Label> 
</div>
<div >
<asp:Button ID="btn_add_customer" runat="server" Text="Yes" OnClick="btn_Add_Click" />
<asp:Button ID="btn_cancel_customer" runat="server" Text="No" />
</div>
<asp:Button ID="btn_add_customer_dummy" runat="server" Style="display: none" />
</asp:Panel>
<asp:Button ID="btn_customer_dummy" runat="server" Style="display: none" />
<ajaxToolkit:ModalPopupExtender ID="mpe_add_customer" runat="server" PopupControlID="pnl_customer"
BackgroundCssClass="modalBackground" TargetControlID="btn_customer_dummy" OkControlID="btn_add_customer_dummy" 
rue" />)
را  قسمت آخر صفحه  asp.netاضافه کردم پیغام 
Unknown server tag 'ajaxToolkit:ModalPopupExtender'.
Unrecognized tag prefix or device filter 'ajaxToolkit'
ennovation
چهارشنبه 06 آذر 1387, 21:56 عصر
salam !
 
shoma bayad dll ajax ro ham be project khodet ezafeh koni .
age nemidooni che joori begoo ke tozih bedem.
ennovation
پنج شنبه 07 آذر 1387, 19:05 عصر
دوباره سلام 
امروز یه مقدار وقت دارم . بهمین خاطر یک کم بیشتر توضیح میدم 
 
ببیین دوست عزیز برای کار با این کنترل باید dll اونو هم به پروژه خودت الحاق کنی برای اینکار میتونی روی پوشه References یک رایت کلیک بکنی و Add Reference رو انتخاب کنی 
حالا از پنجره باز شده قاب Browse رو انتخاب کن و حالا میتونی 2 تا dll رو که برات ضمیمه کردوم و انتخاب کنی و در پروژه خودت الحاق کنی .
حالا فقط میخواد که در فایل web.config در قسمتی که نوشته <controls> این دو تا خط رو هم اضافه کنی و تموم . 
 
<addtagPrefix="asp"namespace="AjaxControls"assembly="AjaxControls"/>
<addtagPrefix="ajaxToolkit"namespace="AjaxControlToolkit"assembly="AjaxControlToolkit"/>
حالا میتونی برنامه رو اجرا کنی .
ennovation
پنج شنبه 07 آذر 1387, 19:09 عصر
توی این دو خط خطوط فاصله متاسفانه پاک شد . خودت قبل از حرفی که با رنگ قرمز شروع شده خط فاصله بذار
article
جمعه 08 آذر 1387, 00:05 صبح
ممنون از زحمتی که کشیدید
article
جمعه 08 آذر 1387, 12:58 عصر
<?xml version="1.0"?>
<!-- 
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
-->
<configuration>
 <appSettings/>
 <connectionStrings>
  <add name="server_handbalConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename="C:\Program Files\Common Files\server_handbal.mdf";Integrated Security=True;Connect Timeout=30;User Instance=True" providerName="System.Data.SqlClient"/>
 </connectionStrings>
 
  <system.web>
  <!-- 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.
        -->
  <compilation debug="true">
   <assemblies>
    <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
  <!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
  <authentication mode="Windows"/>
  <!--
            The <customErrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.
        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
 </system.web>
 
</configuration>
 کد بالا فايل web config من است 
controls در آن وجود ندارد که
کد زير را در آن قرار بدهم
<addtagPrefix="asp"namespace="AjaxControls"assembly="AjaxControls"/>
<addtagPrefix="ajaxToolkit"namespace="AjaxControlToolkit"assembly="AjaxControlToolkit
و پيغام
 Unknown server tag 'ajaxToolkit:ModalPopupExtender'. 
 mpe_add_customer:This control cannot be displayed because its TagPrefix is not registered 
  
 
 
Exclusive access could not be obtained because the database is in use.
RESTORE DATABASE is terminating abnormally.
ennovation
جمعه 08 آذر 1387, 13:37 عصر
سلام !
دوست عزیز خوب خودت اون تگ بهش اضافه کن 
مثلا میتونی بعد از خطی که این کد را داره 
<authentication mode="Windows"/>
 این کد را اضافه کنی 
  <pages>
   <controls>
    <add tagPrefix="asp" namespace="AjaxControls" assembly="AjaxControls"/>
    <add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
   </controls>
  </pages>
درضمن مشکل دومی که گفتی مربوط به دیتا بیس است و ربطی به کنترلها ندارد 
میتونی یه نگاهی به این لینک بکنی شاید کمکت کنه 
http://seer.support.veritas.com/docs/240054.htm
 
vBulletin® v4.2.5, Copyright ©2000-1404, Jelsoft Enterprises Ltd.