Visual Studio 2012 C#.NET Gridview connect to Oracle DB 1. download Oracle 11g intall them (link http://www.oracle.com/technetwork/developer-tools/visual-studio/downloads/index.html) 2.download Data Provider Oracle
Year: 2013
MVC 4 map anonymous Data Entity
เกิดขึ้นในกรณีที่ จะ Add View ปรากฏว่า Field มันใช้แบบ multi ต้อง Add Class using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace
MVC 4 test Database & Scaffold
ถ้าจะสร้างแสดงผล
MVC 4 ViewBag รับและแสดงค่าในหน้าเว็บ
สามารถแสดงผลจาก object public ActionResult Index() { List<String> s2 = new List<string>() { “a”, “b”, “c” }; ViewBag.MyData = “Hello”;
MVC 4.0 Map Route
New Project MVC Application c# Right Click Controllers ->Add->Controller->Student Add View ใส่โค้ดตามตัวอย่าง using System; using System.Collections.Generic; using System.Linq; using System.Web;
การ Pass ค่าในส่วนของ Hader
viewDidLoad จะทำก่อนที่จะเปิด ดังนั้นเวลาจะพาสค่าต้องอาศัยค่าที่พักไว้ในส่วนของ เช่น Header =>@property (string,nonamic) NSString *pCityName
XCode-Code snip
สามารถคัดลอกโค้ดและเก็บคีย์ไว้ใช้งานได้ 1.ทำการเลือกโค้ดที่ต้องการแล้วลากไปในส่วนของ {} ใส่ชื่อและคีย์ 2.เวลาใช้ก็ใส่แค่คีย์โค้ดก็จะมา 3.สามารถก๊อปโค้ดให้คนอื่นใช้ได้แต่ต้องทำการเปิดในส่วนของไฟล์เดอร์หาไอคอนรูปบ้านแล้วหลังจากนั้นให้ทำการไปที่ไอคอนเสริชแล้วใส่ terminal แล้วพิมพ์คำสั่ง chflags nohidden ~/Library/ เปิดไลบรารี่ขึ้นมาแล้วเข้าไปที่ส่วนของ Developer->Xcode->UserData->Code Snip
Objective-C Day 2
.h header file -> variable .m (implement file)-> code function MVC = Model-View-Controller %@ เอาค่า string มาแทนเช่น (@”this %@”,variable)
หลักการเขียน Objective-C
class= static definition เช่นคลาสของปุ่ม ความกว้างความยาวเท่าไหรสีของปุ่มอย่างไร เรียกว่า variable,method (ทำงานอย่างไร) class = Object Type Object= instance = object instance data types 1)
