C# Tutorials and offshore development in India
Tutorials Resources Forum Reviews Communities Interview Jobs Projects Training Your Ad Here


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » ASP.NET WebForms »

C# Code Snippet For HashTableBinding To a RadioButton List


Posted Date: 24 Nov 2009    Resource Type: Code Snippets    Category: ASP.NET WebForms
Author: Avinash MohanMember Level: Gold    
Rating: 1 out of 5Points: 3



The Following describes C# Code Snippet For HashTableBinding To a RadioButtonList.
Here First a Hashtable is created with a key value pair and then appended to the radiobuttonlist
As far as a beginer is concerned this code snippet will give a basic idea how to Bind a HashTable to a Control Like RadioButtonList



//The Following describes C# Code Snippet For HashTableBinding To a RadioButtonList.
//Here First a Hashtable is created with a key value pair and then appended to the radiobuttonlist


Hashtable htable = new Hashtable();
htable.Add("N","Norway");
htable.Add("I", "India");
RadioButtonList1.DataSource = htable;
RadioButtonList1.DataValueField = "Key";
RadioButtonList1.DataTextField = "Value";
RadioButtonList1.DataBind();



Responses to the resource: "C# Code Snippet For HashTableBinding To a RadioButton List"

No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
HashTable  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Code to implement Flame Game
Previous Resource: Dynamic Sitemap
Return to Discussion Resource Index
Post New Resource
Category: ASP.NET WebForms


Post resources and earn money!
 
More Resources




About Us    Contact Us    Privacy Policy    Terms Of Use