Lost universe of Programing

USERNAME :- Forum Post:-114
 
HomePortalGalleryRegisterLog in

Share
 

 How to Add DropDownList during Runtime in C#

Go down 
AuthorMessage
Administrator
Admin
Admin
Administrator

Male
Number of posts : 160
Age : 33
Location : Lucknow
Job/hobbies : Software Engeener
What U like To do ? : Because Its Rock with me.
Registration date : 2008-01-06

How to Add DropDownList during Runtime in C# Empty
PostSubject: How to Add DropDownList during Runtime in C#   How to Add DropDownList during Runtime in C# I_icon_minitime5/21/2008, 2:06 am

This is the code for Drop downlist when you have to add different data in dropdown during runtime.
Code:
public void Button1_Click (object sender, System.EventArgs e)

{
 this.ListBox1.Items.Add(new ListItem("Carbon", "1"));
 this.ListBox1.Items.Add(new ListItem("Oxygen", "2"));
 }

_________________

""-(`v)-"HACKER OF HEART"-(`v)-"
How to Add DropDownList during Runtime in C# Earth10
Back to top Go down
View user profile http://aspx.forumotion.com
 
How to Add DropDownList during Runtime in C#
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Lost universe of Programing :: --=| SOURCE CODE |=-- :: CODE FOR C# & ASP.NET-
Jump to: