บทความ

กำลังแสดงโพสต์จาก มีนาคม, 2016

Simple markers Google Map API with C# .Net

รูปภาพ
  Simple markers Google Map API with C#  ปักหมุดลงใน Google Map โดยนำข้อมูลจาก C#  สามารถเปลี่ยนหมุดได้ตามที่เรากำหนดเลย C# CodeFile map.aspx.cs string sql = "SELECT  Latitude, Longitude,markericons FROM table"; SqlCommand cmd = new SqlCommand(sql, con); SqlDataAdapter da = new SqlDataAdapter(cmd); da.Fill(ds, "Result"); //ข้อมูลจาก Sql server List<String> oGeocodeList= new List<String>(); List<String> MarkerIcon = new List<String>();  for (int i = 0; i < ds.Tables["Result"].Rows.Count; i++){                    oGeocodeList.Add(" '" + ds.Tables["Result"].Rows[i]["Latitude"].ToString() + "," + ds.Tables["Result"].Rows[i]["Longitude"].ToString() + "' "); MarkerIcon.Add(" '" + ds.Tables["Result"].Rows[i]["markericons"].ToString() + "' "); } String geocodevalues= String.Join("...

DropDown List Background Color C# ASP.NET

รูปภาพ
มาใส่สีพื้นหลังให้กับ DropDown List  ให้มีสีสันสวยงามกันดีกว่าครับ ตัวอย่างการใช้งาน Code-Behind (C#)   AspNetCodeBehind.aspx <%@ Page Language="C#" AutoEventWireup="true" CodeFile="AspNetCodeBehind.aspx.cs" Inherits="AspNetCodeBehind" %> <html> <head> <   title> DropDownList Background  Color ASP.NET</title> </head> <body>     <form id="form1" runat="server">     <div class="input-group">                               <span class="input-group-addon" id="basic-addon-zonecolor">เลือกสี</span>                               <asp:DropDownList ID="ddlMultiColor" runat="server"  OnSelectedIndexChanged="ddlMultiColor_OnSelectedIndexChanged"                     ...