المحاضرة التاسعة استخدام أدوات التحكم المتقدمة Rich controls.

Slides:



Advertisements
Similar presentations
L9,CSE 101: © Zag. Univ.Dr.Basheer M. Nasef بسم الله الرحمن الرحيم.
Advertisements

Practical Programming COMP153-08S Lecture: Repetition Continued.
Adverbsالظروف [الأحوال]
التخطيط لموقع الوب تحديد الهدف –شخصي –علمي –تجاري –.... من الذين سوف يشاهدون الموقع الوقت الازم لإنشاء الموقع.
منصور البصيلي خالد الزهراني
Compunet Corporation Programming with Visual Studio.NET GUI Week 13 Tariq Aziz and Kevin Jones.
ASP.Net AJAX. AJAX Asynchronous JavaScript and XML: – JavaScript, Document Object Model, Cascade Style Sheet, XML, server-side script such as.Net, etc.
Web Site Security ISYS 512/812. Authentication Authentication is the process that determines the identity of a user. Web.config file – node Options: –Windows:
Working with Session and Application Objects. Postback and Variables Variables declared in a web page including ADO.Net objects may be reinitialized and.
جداء و خارج عددين جذريين
ASP.NET and ADO.NET. Bind the DataReader to a DataGrid Dim strConn As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = c:\sales2k.mdb" Dim objConn.
كيفية عرض المكونات Hit Counter: يجب تخزينها ونشرها على موقع الويب (الخادم) Hover Button: يجب تخزينها وعرضها من الأمر Preview on Browser من قائمة File.
Working with Session. Postback and Variables Variables declared in a web page including ADO.Net objects may be reinitialized and lose their values.
Cookies. Data in Cookies Which web site set the cookie Expiration date –DateTime data type –TimeSpan data type One or more pieces of data Keys: A collection.
Computer Skills 2 for Humanities (Electronic Mail)
Cookies. Data in Cookies Which web site set the cookie Expiration date –DateTime data type –TimeSpan data type One or more pieces of data Keys: A collection.
INSPIRING CREATIVE AND INNOVATIVE MINDS Module 4: Adding Code to a Microsoft ASP.NET Web Form Implementing Code-Behind Pages Adding Event Procedures to.
© Minder Chen, ASP.NET 2.0: Introduction - 1 ASP.NET 2.0 Minder Chen, Ph.D. Framework Base Class Library ADO.NET: Data & XML.

Lecture 8 Visual Basic (2).
1/31 5/6/2014 BAZELE PROGRMARII PE OBIECTE PROIECTE IN VISUAL BASIC Conf univ dr Botezatu Cezar INFORMATICĂ MANAGERIALĂ Anul I. STUDII DE LICENŢĂ.
1 CC111 Lec9 : Visual Basic Visual Basic (3) Lecture 9.
使用 SQL 指令執行報表 不需設定 Crystal Report 連線.
Visual Basic.NET Windows Forms Hello World Homework Assignment.
© Minder Chen, ASP.NET - 1 Form Handling and State Maintenance Major Build-in ASP.NET Objects Simple Form Handling HTML Forms More Complex Form.
Module 3: Using Microsoft.NET- Based Languages. Overview Overview of the.NET-Based Languages Comparison of the.NET-Based Languages.
1 CS387/CS587: Note 08 Shopping Bag DataTable. 2 DataClass Public Shared Function NewShoppingBag() As Data.DataTable Dim bag As New Data.DataTable bag.Columns.Add("Product.
Objectives  Create a database using Mysql  Create a tables and insert data on them  Create a relationship between tables  Create a user  Export your.
PRACTICE SAC 1 Some solutions. 'inputs 'sale price 'postcode 'coupon codes 'processing 'calculate commissions (commission based on cost) 'calculate postage.
Created by Alia Al-Abdulkarim 2008 Visual Basic Vs. Java.
ASP.NET P AGE O BJECTS.  Each ASP.NET page inherits the PAGE object  The PAGE supplies 3 built in objects:  REQUEST: All information passed to the.
ADO.NET Objects Data Adapters Dr. Ron Eaglin. Agenda Builds on Information in Part I Should have working knowledge of creating a database connection Continuation.
T HE W ALKING FOR W ATER P ROJECT IE 2060 Katelyn Cockrell Alexis Duran Theresa Garcia.
These materials where developed by Martin Schray. Please feel free to use and modify them for non-commercial purposes. If you find them useful or would.
Visual Basic Declaring Variables Dim x as Integer = 0 In the statement above, x is being declared as an Integer (whole number) and is initialised.
Computer Science Up Down Controls, Decisions and Random Numbers.
Directory and File. Access Files in a Directory Name space: System.IO The Directory and File classes contain only shared methods that set or return information.
Tourism suite.
Visual Basic 2010 Winsock이용
Introduction to VB programming
لنفرض أن هدف التجربة هو مقارنة نوعين من الأعلاف (A و B) لتغذية أبقار حلوب خلال 3 شهور. وتم اختيار عشرين بقرة متشابهة ( في الوزن / العمر / السلالة / الموسم.
What is “I am an IDP” App. ? ما هو تطبيق «أنا نازح» It is a free SMART phone app هو تطبيق مجاني للهواتف الذكية Can be downloaded from Google Play.
TreeView Control.
خوارزميات و مبادئ برمجة
للمزيد زورونا على موقعنا الإلكتروني:
برمجة قواعد بيانات تطبيق مفهوم الحماية في النماذج
بناء صفحات الإنترنت برنامج FrontPage
1.الدوال Function 2.الاجراءاتSub Procedure 3.وحده نمطيه Add Module
المخدم الرئيسي في الشبكات
تابع جمل التحكم و معالجة الاستثناءات
مقدمة ASP.NET.
أمن وحماية المعلومات.
نظام التشغيل Windows xp.
سياسات واستراتيجيات البحث
تدريب (3-1)- مكونات سطح المكتب لنظام التشغيل (Windows XP).
Programming -2 برمجة -2 المحاضرة-1 Lecture-1.
1.الدوال Function 2.الاجراءاتSub Procedure 3.وحده نمطيه Add Module
تطبيقات الانترنت والوسائط المعددة
Windows Security Center
3. Browsing the Web تصفح الانترنت
عرض إجمالي أنماط المتغيرات الأساسية في سي شارب (نمط int)
Non Accidental Death- 24 April 2013
مادة مختارة (أمن المعلومات)
الوحدة الخامسة البرمجة بلغة فجول بيسك تصميم الواجهات في برنامج الفجول بيسك. ضبط خصائص الأدوات. مراحل كتابة البرنامج بلغة فجول بيسك أهداف الدرس.
الأحــداث events الوينــدوز هــو محــيط رســائلي يــتم إرســال رســالة عنــد حــدوث حــدث مثــل مــرور الماوس فوق صورة أو فوق زر معين أو التركيز على نافذة.
CS 3870/CS 5870 Test 2 (50 points) Thursday
ASP.NET Relationships between tables
Visual Basic and File Streaming
GUI Programming in Visual Studio .NET
Web Service.
Presentation transcript:

المحاضرة التاسعة استخدام أدوات التحكم المتقدمة Rich controls

استخدام أدوات التحقق رفع الملفات إلى الموقع عرض التقويم عرض الإعلانات عرض عدد الزوار

رفع الملفات إلى الموقع نستخدم أداة التحكم FileUpload لرفع الملفات إلى الموقع يجب تحدید المكان الذي سیتم تخزین ملفات المستخدمین فیه, إما مجلد داخل الموقع أو ضمن قاعدة بیانات الموقع... خصائص أداة التحكم FileUpload أداة التحكم FileUpload تدعم الطرائق التالیة :

رفع الملفات إلى الموقع عندما تقوم الخاصية PostedFile بتغليف الملف المرفوع بغرض من الصف HttpPostedFile فأننا نحصل على معلومات إضافية حول الملف.. خصائص الصف HttpPostedFile

مثال Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click If (FileUpload1.HasFile) Then Dim filePath As String = "~/uploads/" & FileUpload1.FileName FileUpload1.SaveAs(MapPath(filePath)) End If End Sub

أداة التحكم Calendar تمكین المستخدم من تحدید التواریخ بسھولة ویسر خصائص أداة التحكم Calendar

أداة التحكم Calendar الأداة تدعم الأحداث التالية

مثال

وفي حدث selectionchanged التابع للأداة calendar1 نقوم بإسناد التاريخ المحدد الى الأداة textbox1 Protected Sub Calendar1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged TextBox1.Text = Calendar1.SelectedDate.ToString("d") End Sub

أداة التحكم AdRotator تمكننا الأداة من عرض الإعلانات على صفحات الموقع یتم اختیار الإعلان الذي سیعرض بشكل عشوائي تخزن الإعلانات في ملف XML أو في جدول ضمن قاعدة بیانات خصائص أداة التحكم AdRotator

أداة التحكم AdRotator خصائص أداة التحكم AdRotator

مثال

~/images/pic1.png Advertisement 1 50 ~/images/pic2.png Advertisement 2 25 ~/images/pic3.png Advertisement 3 25

فلترة الإعلانات لنفرض السیناریو التالي : لدیك أداتین AdRotator2 و AdRotator1 وملف XML یحتوي على بیانات خمسة إعلانات, أول ثلاثة إعلانات لمواقع تعلیمیة, الإعلانان الرابع والخامس لمواقع ریاضیة, وترید أن یتم عرض الإعلانات التعلیمیة بالأداة AdRotator1 و الإعلانات الرياضية بالأداة AdRotator2

~/images/pic1.png vb4arab Teaching ~/images/pic2.png arabTeam2000 Teaching ~/images/pic3.png AspWorkShopes Teaching

~/images/pic4.png kooora Sporting ~/images/pic5.png hihi2 Sporting

عرض عدد الزوار قومي بفتح Global.asax واكتبي الكود التالي : Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs) ' Code that runs when a new session is started Application.Lock() Application("visitors") += 1 Application.UnLock() End Sub

في الصفحة الأساسية اكتبي التالي Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Label1.Text = ("you are vivtors no" & Application("visitors")) End Sub

تطبيق