前一陣子在專案中,為了讓使用者可以更清楚的知道自己所選取的項目為何,所以筆者必須將 RadioButtonList 中被選取的選項加上粗體的樣式。
本想應該是很簡單,只要把 RadioButtonList 中的項樣的樣式設定即可,但是
竟發現 RadioButtonList 並未提供針對其每個選項設定樣式的功能。XD…
也可以從產生出來的網頁的原始碼發現 RadioButtonList 產生的程式碼為 <label for=”……”>XXX</label> 的寫法。如下:
 
<table id="RadioButtonList1" border="0">
	<tr>
	  <td><input id="RadioButtonList1_0" type="radio" name="RadioButtonList1" value="選項一" /><label for="RadioButtonList1_0">選項一</label></td>
	</tr>
        <tr>
	  <td><input id="RadioButtonList1_1" type="radio" name="RadioButtonList1" value="選項二" /><label for="RadioButtonList1_1">選項二</label></td>
	</tr>
        <tr>
	  <td><input id="RadioButtonList1_2" type="radio" name="RadioButtonList1" value="選項三" /><label for="RadioButtonList1_2">選項三</label></td>
	</tr>
</table>

 


試了一些方法後,最後筆者用一個 div 將 RadioButtonList 放在其中,再用 JavaScript 來描這個 div 中的 label 的 Tag


程式碼如下:


 

    function MakeBold(divObj, elementID) {
        var labels = divObj.getElementsByTagName("label");
        for(var i=0;i<labels.length;i++) 
        {
            if(labels.item(i).htmlFor == elementID) 
            {
                labels.item(i).style.fontWeight="bold";
            }
            else
            {
                labels.item(i).style.fontWeight="normal";
            }
        }
    }

 


P.S. 請記得在每個選項加入 onclick 的事件來觸發它。


Hope this helps.

anISV 發表在 痞客邦 留言(1) 人氣()

The Visual Studio 2010 and .NET Framework 4 Training Kit includes presentations, hands-on labs, and demos. This content is designed to help you learn how to utilize the Visual Studio 2010 features and a variety of framework technologies including:

C# 4.0
Visual Basic 10
F#
Parallel Extensions
Windows Communication Foundation
Windows Workflow
Windows Presentation Foundation
ASP.NET 4
Entity Framework
ADO.NET Data Services
Managed Extensibility Framework
Visual Studio Team System

This version of the Training Kit works with Visual Studio 2010 Beta 1 and .NET Framework 4 Beta 1.

下載位置:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=752cb725-969b-4732-a383-ed5740f02e93

anISV 發表在 痞客邦 留言(0) 人氣()

The Visual Studio 2010 SDK includes project templates that help developers create tool windows, menu commands, isolated shell projects, and editor extensions. The editor extensions include text adornments, colorizers, and margins.


The Visual Studio 2010 SDK also includes build tasks that help developers build and debug extensions. Building and debugging are managed in a second instance of Visual Studio named the experimental instance. The experimental instance provides a test bed for extensions without changing the primary installation of Visual Studio.

The SDK also puts shortcuts to online documentation, samples, and other developer resources on the Start menu.

下載位置:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=d197feb6-ced5-40d4-949d-a51f02309ee8

anISV 發表在 痞客邦 留言(0) 人氣()

Visual Studio Lab Management lets you create and manage virtual environments on a pool of Hyper-V hosts and System Center Virtual Machine Manager library servers. You can group virtual machines into environments and perform life-cycle and snapshot operations on those machines. Used together, Lab Management, Team Foundation Server, Team Test Load Agent, and Team Test Load Controller provide an integrated software testing experience that lets testers attach comprehensive snapshots of the environment to their bugs. Lab Management also lets you automate the authoring and running of end-to-end application life-cycle management workflows.

This release will expire on April 15, 2010. This software is not supported by Microsoft Customer Services and Support (CSS).

下載位置:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=9df71545-4524-451b-8a17-9925b64010d2

anISV 發表在 痞客邦 留言(0) 人氣()

The SDL Process Template is a downloadable template that integrates the Microsoft Security Development Lifecycle (SDL) directly into your Visual Studio Team System 2008 software development environment. This version of the SDL Process Template is specific to the Microsoft Security Development Lifecycle version 4.

After installation, the SDL Process Template automatically integrates the core components of the SDL into your Visual Studio Team System environment making it easier to adopt the SDL into your new team project, providing auditable security requirements and status, and demonstrating security return on investment.

Features of the SDL Process Template include:

    • Pre-populated requirements/recommendations
    • SDL-based security check-in policies
    • Final Security Review reports
    • Customized security bugs and queries
    • Extensive related how-to and guidance documentation
    • Easy integration of third-party security tools (including the Microsoft SDL Threat Modeling Tool)

anISV 發表在 痞客邦 留言(0) 人氣()

Visual Studio 2010 Load Agent 安裝畫面如下:

 

image

 

image

 

image

 

image

 

image

 

image

 

 

image

 

image

 

image

Enjoy.

anISV 發表在 痞客邦 留言(0) 人氣()

Visual Studio 2010 Load Controller 安裝畫面如下:

image

 

image

 

 

image

 

image

 

image

 

image

 

image

 

image

 

 

 

 

 

 

image

 

image

Enjoy.

anISV 發表在 痞客邦 留言(0) 人氣()

心得:安裝的步驟變的更簡潔方便。

VSTS 2010 Beta 1 英文版的安裝畫面如下:

1. 放入光碟出現的安裝畫面:

image

2. 歡迎畫面:

image

3. 輸入序號(Beta 版會自動填上)

image

4. 選擇安裝的位置:

image

 

 

 

 

5. 選擇欲安裝的功能

image

6. 開始安裝

image

7.  安裝 .NET Framework v3.5 SP1 完成會重新啟動電腦

image

8. 重新啟動完,續繼安裝

image

9. 安裝完成

image

10. 開啟 VSTS 2010

image

 

 

 

12. 以 WPF 重新寫過的畫面

image

VSTS 2010 Beta 1 之待續 …

Enjoy.

anISV 發表在 痞客邦 留言(0) 人氣()

現在已經證實有一個安全性問題,可以讓攻擊者用以侵入執行 Microsoft Visual Basic 6.0 Service Pack 6 的 Windows 系統並取得該系統的控制權。您可以安裝 Microsoft 所提供的更新來保護您的電腦。

下載位置:

http://www.microsoft.com/downloads/details.aspx?displaylang=zh-tw&FamilyID=cb824e35-0403-45c4-9e41-459f0eb89e36

anISV 發表在 痞客邦 留言(0) 人氣()

The Windows SDK for Windows 7 and .NET Framework 3.5 SP1: RC provides the documentation, samples, header files, libraries, and tools (including C++ compilers) that you need to develop applications to run on Windows 7 RC and the .NET Framework 3.5 SP1. To build and run .NET Framework applications, you must have the corresponding version of the .NET Framework installed. This SDK is compatible with Visual Studio® 2008, including Visual Studio Express Editions, which are available free of charge.


Please see the Release Notes for the full list of supported platforms, compilers, and Visual Studio versions and any late breaking issues. For detailed information about the content in this SDK, including a description of new content, please see the Getting Started section in the documentation.

 

下載位置:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=6db1f17f-5f1e-4e54-a331-c32285cdde0c

anISV 發表在 痞客邦 留言(0) 人氣()