Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,025

HOME > Windows Azure > Windows Azure (Storage) and .Net Application (C#) > ตอนที่ 2 : ปรับแต่ง Visual Studio เรียกใช้งาน Library เพื่อติดต่อกับ Azure Storage



Clound SSD Virtual Server

ตอนที่ 2 : ปรับแต่ง Visual Studio เรียกใช้งาน Library เพื่อติดต่อกับ Azure Storage

ตอนที่ 2 : ประแต่งโปรแกรม Visual Studio เรียกใช้งาน Library เพื่อติดต่อกับ Azure Storage บทความนี้จะเป็นการเริ่มต้รปรับแต่ง Visual Studio เพื่อเตรียมความพร้อมสำหรับการเขียนติดต่อกับ Azure Storage โดยในขั้นแรกเราสามารถทำการติดตั้ง SDK ซึ่งจะมีเครื่องมือช่วยในการเขียนนั้นง่านและสะดวกยิ่งขึ้น และวิธีการสร้าง Project บน Visual Studio โดยในบทความนี้จะเลือกเขียน .Net Application แบบ ASP.Net และวิธีการเรียกใช้ Library หรือ Package ผ่าน NuGet Manager

เครื่องมือที่มาพร้อมกับ Windows Azure SDK for .NET
Windows Azure Storage Tools
Windows Azure Emulator
Windows Azure Tools for Microsoft Visual Studio
Web Deploy
Windows Azure Authoring Tools
Microsoft ASP.NET and Web Tools for Windows Studio 2012
Windows Azure Libraries for .NET
Microsoft ASP.NET and Web Framework

.Net Dev Center - Windows Azure


Visual Studio Azure Storage

เลือก Install the SDK

Visual Studio Azure Storage

เลือก Install with Visual Studio 2012

Visual Studio Azure Storage

คลิก Install

Visual Studio Azure Storage

เลือก I Accept

Visual Studio Azure Storage

กำลังติดตั้ง

Visual Studio Azure Storage

กำลังติดตั้ง

Visual Studio Azure Storage

เลือก Continue

Visual Studio Azure Storage

เลือก Finish

หลังจากขั้นตอนนี้ก็ถือว่าได้ติดตั้ง SDK เรียบร้อยแล้ว ซึ่งขั้นตอนถัดไปจะเป็นการสร้าง Project บน Visual Studio








การสร้าง Project บน Visual Studio

Visual Studio Azure Storage

เปิดโปรแกรม Visual Studio 2012 หรือ 2013 หรือ Version ที่ใหม่กว่า

Visual Studio Azure Storage

เลือก File -> New -> Project...

ในบทความนี้จะเขียน .NET Application แบบ ASP.Net ฉะนั้นสามารถเลือกได้ทั้ง ASP.Net Web Site หรือ ASP.Net Web Application

Visual Studio Azure Storage

เลือกภาษา C# และ ASP.Net Web Application

Visual Studio Azure Storage

ตอนนี้เราได้โครงสร้างของ Project เรียบร้อยแล้ว ซึ่งจะมีไฟล์ Default.aspx เป็นไฟล์แรก (กรณีที่ไม่มีให้สร้างขึ้นมาใหม่)

Visual Studio Azure Storage

ในไฟล์ Default.aspx.cs ทดสอบการเรียกใช้งาน Library ที่ไว้จัดการ Azure Storage

using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Auth;
using Microsoft.WindowsAzure.Storage.Table;

ซึ่งในกรณีที่เรายังไม่ได้ Add ตัว Reference Services ของ Windows Azure Storage จะแสดง Error ดังรูป

Visual Studio Azure Storage

สามารถทำการ Add ผ่าน NuGet Package ด้วยการคลิกขวาที่ Reference เลือก

Reference -> Manage NuGet Packages....


Visual Studio Azure Storage

เลือก Search ตัว Package ที่ชื่อว่า Windows Azure จากนั้นให้คลิกที่ Install

Visual Studio Azure Storage

กำลังติดตั้ง

Visual Studio Azure Storage

เลือก I Accept

Visual Studio Azure Storage

กำลังติดตั้ง

Visual Studio Azure Storage

ติดตั้งเรียบร้อยแล้ว

Visual Studio Azure Storage

แสดง Package ผ่าน Reference

Visual Studio Azure Storage

เมื่อกลับไปยังในหน้า Code ที่เรียกใช้งาน Library ของ Windows Azure Storage ก็จะเห็นว่าตอนนี้ไม่มี Error แล้ว








บทความที่เกี่ยวข้อง

บทความถัดไปที่แนะนำให้อ่าน


   
Share


ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท


ลองใช้ค้นหาข้อมูล


   


Bookmark.   
       
  By : ThaiCreate.Com Team (บทความเป็นลิขสิทธิ์ของเว็บไทยครีเอทห้ามนำเผยแพร่ ณ เว็บไซต์อื่น ๆ)
  Score Rating :  
  Create/Update Date : 2013-12-29 20:05:19 / 2017-03-24 15:11:24
  Download : No files
 Sponsored Links / Related

 
ตอนที่ 1 : รู้จักกับ Windows Azure และเบื้องต้นกับ Storage สำหรับ .Net Application
Rating :

 
ตอนที่ 3 : รู้จักกับ Azure Blob Storage และการเขียนร่วมกับ Azure for .Net Application
Rating :

 
ตอนที่ 4 : How to use .Net (Asp.net) Upload file to Blob การอัพโหลดไฟล์ลงใน Blob
Rating :

 
ตอนที่ 5 : How to use .Net (Asp.net) List the Blobs การแสดงรายการไฟล์จาก Blob
Rating :

 
ตอนที่ 6 : How to use .Net (Asp.net) Delete Blob การลบรายการไฟล์บน Blob
Rating :

 
ตอนที่ 7 : รู้จักกับ Azure Table Storage Service และการเขียนร่วมกับ .Net Application
Rating :

 
ตอนที่ 8 : How to use .Net (Asp.net) Add Entity to a Table Storage - บันทึกข้อมูลลงตาราง
Rating :

 
ตอนที่ 9 : How to use .Net (Asp.net) Retrieve Entity from Table Storage - อ่านข้อมูลในตาราง
Rating :

 
ตอนที่ 10 : How to use .Net (Asp.net) Update Entity in Table Storage - แก้ไขข้อมูลในตาราง
Rating :

 
ตอนที่ 11 : How to use .Net (Asp.net) Delete Entity in Table Storage - ลบข้อมูลในตาราง
Rating :

 
ตอนที่ 12 : รู้จักกับ Azure Queue Storage และการเขียนร่วมกับ .Net Application
Rating :

 
ตอนที่ 13 : How to use .Net (Asp.net) Create a message Queue - สร้างคิวใหม่
Rating :

 
ตอนที่ 14 : How to use .Net (Asp.net) Peek at the next message - อ่านคิวถัดไป
Rating :

 
ตอนที่ 15 : How to use .Net (Asp.net) De-queue the next messag - ขยับไปยังคิวถัดไป
Rating :


ThaiCreate.Com Forum


Comunity Forum Free Web Script
Jobs Freelance Free Uploads
Free Web Hosting Free Tools

สอน PHP ผ่าน Youtube ฟรี
สอน Android การเขียนโปรแกรม Android
สอน Windows Phone การเขียนโปรแกรม Windows Phone 7 และ 8
สอน iOS การเขียนโปรแกรม iPhone, iPad
สอน Java การเขียนโปรแกรม ภาษา Java
สอน Java GUI การเขียนโปรแกรม ภาษา Java GUI
สอน JSP การเขียนโปรแกรม ภาษา Java
สอน jQuery การเขียนโปรแกรม ภาษา jQuery
สอน .Net การเขียนโปรแกรม ภาษา .Net
Free Tutorial
สอน Google Maps Api
สอน Windows Service
สอน Entity Framework
สอน Android
สอน Java เขียน Java
Java GUI Swing
สอน JSP (Web App)
iOS (iPhone,iPad)
Windows Phone
Windows Azure
Windows Store
Laravel Framework
Yii PHP Framework
สอน jQuery
สอน jQuery กับ Ajax
สอน PHP OOP (Vdo)
Ajax Tutorials
SQL Tutorials
สอน SQL (Part 2)
JavaScript Tutorial
Javascript Tips
VBScript Tutorial
VBScript Validation
Microsoft Access
MySQL Tutorials
-- Stored Procedure
MariaDB Database
SQL Server Tutorial
SQL Server 2005
SQL Server 2008
SQL Server 2012
-- Stored Procedure
Oracle Database
-- Stored Procedure
SVN (Subversion)
แนวทางการทำ SEO
ปรับแต่งเว็บให้โหลดเร็ว


Hit Link
   







Load balance : Server 04
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่