الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

Button لحدث معين على الموقع لايعمل

مغلق
بدأه ameersba في 7 فبراير 2007 · 15 رد · 1,117 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

أخواني

أرجو لمساعدة حيث أنيي بعد أن حملت ملفاتي على الموقع (جميع الملفات الخاصة بالمشروع للتجربة فقط) وجدث أن الحدث لل Button لايعمل ويستجيب لعرض شيء

بينما على Localhost يعمل ويعرض مسج على label

هل من توضيح لذلك

وشكرا ودمتم

Ameer

#2

لوتكرمتوا حد يساعدني

محتاج لهذا الشي ضروري

وشكرا

Ameer

#3

<<<<يا صديقي

......لماذا لم تعمل Virtual Directory لموقعك على IIS في حاسبيك الشخصية قبل ان تحمله على السيرفير......

......واتمنى لو تضع الكود ...او تشرح اكثر بالتفصيل ماذا تستعمل .Net2.0,.Net1.1

--------------------------------------

bsbs Michael Jackson

#4

شرا أخوي على تعاونك

وأرفق لك الفولدر كاملا

وأنا أعمل على فيجوال بيسك 2003

وتعمل الصفحة بشكل ممتاز محليا

ولكن عند التحميل لاتعمل

وشكرا مرة ثانية

gcc.rar

Ameer

#5

.............اخ ameersba

>>>>للأسف لم يعمل مشروعك على حاسبتي لأن عندي :

......VS2005

......وانا مبرمج C#

........و لكن ضع الكود هنا لنقراه.........وإن شاء الله تنحل المشكلة

#6

شكرا على اهتمامك بالنسبة لكود صفحة

config

<?xml version="1.0" encoding="utf-8" ?>

<configuration>

<system.web>

<!-- DYNAMIC DEBUG COMPILATION

Set compilation debug="true" to insert debugging symbols (.pdb information)

into the compiled page. Because this creates a larger file that executes

more slowly, you should set this value to true only when debugging and to

false at all other times. For more information, refer to the documentation about

debugging ASP.NET files.

-->

<compilation defaultLanguage="vb" debug="true" />

<!-- CUSTOM ERROR MESSAGES

Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable.

Add <error> tags for each of the errors you want to handle.

"On" Always display custom (friendly) messages.

"Off" Always display detailed ASP.NET error information.

"RemoteOnly" Display custom (friendly) messages only to users not running

on the local Web server. This setting is recommended for security purposes, so

that you do not display application detail information to remote clients.

-->

<customErrors mode="RemoteOnly" />

<!-- AUTHENTICATION

This section sets the authentication policies of the application. Possible modes are "Windows",

"Forms", "Passport" and "None"

"None" No authentication is performed.

"Windows" IIS performs authentication (Basic, Digest, or Integrated Windows) according to

its settings for the application. Anonymous access must be disabled in IIS.

"Forms" You provide a custom form (Web page) for users to enter their credentials, and then

you authenticate them in your application. A user credential token is stored in a cookie.

"Passport" Authentication is performed via a centralized authentication service provided

by Microsoft that offers a single logon and core profile services for member sites.

-->

<authentication mode="Windows" />

<!-- AUTHORIZATION

This section sets the authorization policies of the application. You can allow or deny access

to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous

(unauthenticated) users.

-->

<authorization>

<allow users="*" /> <!-- Allow all users -->

<!-- <allow users="[comma separated list of users]"

roles="[comma separated list of roles]"/>

<deny users="[comma separated list of users]"

roles="[comma separated list of roles]"/>

-->

</authorization>

<!-- APPLICATION-LEVEL TRACE LOGGING

Application-level tracing enables trace log output for every page within an application.

Set trace enabled="true" to enable application trace logging. If pageOutput="true", the

trace information will be displayed at the bottom of each page. Otherwise, you can view the

application trace log by browsing the "trace.axd" page from your web application

root.

-->

<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />

<!-- SESSION STATE SETTINGS

By default ASP.NET uses cookies to identify which requests belong to a particular session.

If cookies are not available, a session can be tracked by adding a session identifier to the URL.

To disable cookies, set sessionState cookieless="true".

-->

<sessionState

mode="InProc"

stateConnectionString="tcpip=127.0.0.1:42424"

sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"

cookieless="false"

timeout="20"

/>

<!-- GLOBALIZATION

This section sets the globalization settings of the application.

-->

<globalization requestEncoding="utf-8" responseEncoding="utf-8" />

</system.web>

</configuration>

أما بالنسبة للصفحة الرئيسية

Public Class WebForm1

Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.

<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

End Sub

Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox

Protected WithEvents Label1 As System.Web.UI.WebControls.Label

Protected WithEvents Button1 As System.Web.UI.WebControls.Button

Protected WithEvents Label2 As System.Web.UI.WebControls.Label

'NOTE: The following placeholder declaration is required by the Web Form Designer.

'Do not delete or move it.

Private designerPlaceholderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init

'CODEGEN: This method call is required by the Web Form Designer

'Do not modify it using the code editor.

InitializeComponent()

End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

'Put user code to initialize the page here

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Label2.Text = TextBox1.Text

End Sub

End Class

أرجو الافادة

علما أنني لايمكنني عمل copy project

من الفيجوال

وعندما أضع ملفاتيعل الموقع أضعها كاملة للتجربة بدو استثناء لأي ملف ومع ذلك لاتعمل

فهل من حل

وشكرا لك ألف مرة على اهتمامك

Ameer

#7

تكفون المساعدة ياأخوان

Ameer

#8

ببساطة هناك نقص في مكتبات ال javascripts التي تقوم بعملية ال PostBack

قم بطلبها من المستضيف أو حملها بنفسك. سوف تجدها في محلد على جهازك اسمه aspnet_client ضمن ال wwwroot

بالتوفيق

logo.gif
استضافة ويندوز


اقتباس

مساحة تبدأ من 2000 ميجا بايت بسعر 1.99 دولار شهريا.ا

اقتباس

ASP.NET 1.1-2.0-3.0-3.5-4.0-4.5.1 / MVC ASP.NET / PHP 5.x / ColdFusion / MSSQL 2008 & 2012 / MYSQL

#9

شكرا على تعاونك أخوي

ووجدت هذه الملفات ولكن أين أضعها وكيف وهل تكون مجاورة لملفات مشروعي وشكرا لك مر ثانية

Ameer

#10

ضعها مباشرة في ال wwwroot

logo.gif
استضافة ويندوز


اقتباس

مساحة تبدأ من 2000 ميجا بايت بسعر 1.99 دولار شهريا.ا

اقتباس

ASP.NET 1.1-2.0-3.0-3.5-4.0-4.5.1 / MVC ASP.NET / PHP 5.x / ColdFusion / MSSQL 2008 & 2012 / MYSQL

#11

أخوي شكرا على تواصلك معي

ولكن لقد وضعت ماطلبته مني وأيضا لاتعمل

وفي أحد الأشخاص أخبرني أنني علي إزالة هذه الجملة من كود الصفحة في HML

Inherits="xxx.WebForm1"%>

فهل هذا صحيح

وبانتظار مشاعدتك حول حدث الأزرار

وشكرا لك مرة مليون

Ameer

#12
ameersba كتب:
أخوي شكرا على تواصلك معي

ولكن لقد وضعت ماطلبته مني وأيضا لاتعمل

وفي أحد الأشخاص أخبرني أنني علي إزالة هذه الجملة من كود الصفحة في HML

Inherits="xxx.WebForm1"%>

فهل هذا صحيح

وبانتظار مشاعدتك حول حدث الأزرار

وشكرا لك مرة مليون

جرب الصفحة على متصفح غير ال IE وردلي خبر

logo.gif
استضافة ويندوز


اقتباس

مساحة تبدأ من 2000 ميجا بايت بسعر 1.99 دولار شهريا.ا

اقتباس

ASP.NET 1.1-2.0-3.0-3.5-4.0-4.5.1 / MVC ASP.NET / PHP 5.x / ColdFusion / MSSQL 2008 & 2012 / MYSQL

#13

نفس الشي للأسف

Ameer

#14
ameersba كتب:
نفس الشي للأسف

إذا كان يعمل على الlocalhost بشكل صحيح فاطلب من مزود خدمة الاستضافة تنفيذ الأمر التالي

c:\windows\microsoft.net\framework\v1.1.4322\aspnet_regiis.exe -c

logo.gif
استضافة ويندوز


اقتباس

مساحة تبدأ من 2000 ميجا بايت بسعر 1.99 دولار شهريا.ا

اقتباس

ASP.NET 1.1-2.0-3.0-3.5-4.0-4.5.1 / MVC ASP.NET / PHP 5.x / ColdFusion / MSSQL 2008 & 2012 / MYSQL

#15

تأكدت من مزود الخدمة وقال لي أنه مسوي هذا الأمر

وأنه في مواقع غيري شغاله معهم تمام

أييييييييييييييييييه

والله احترت في أمري

وبانتظار المساعدة

Ameer

#16

طيب، هل انت متأكد إنو في PostBack ولا لا؟

logo.gif
استضافة ويندوز


اقتباس

مساحة تبدأ من 2000 ميجا بايت بسعر 1.99 دولار شهريا.ا

اقتباس

ASP.NET 1.1-2.0-3.0-3.5-4.0-4.5.1 / MVC ASP.NET / PHP 5.x / ColdFusion / MSSQL 2008 & 2012 / MYSQL

هذا الموضوع مغلق.

مواضيع مشابهة