Lost universe of Programing

USERNAME :- Forum Post:-114
 
HomePortalGalleryRegisterLog in

Share | 
 

 How to use the SelectedIndexChanged methord

Go down 
AuthorMessage
Administrator
Admin
Admin
avatar

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

PostSubject: How to use the SelectedIndexChanged methord   5/21/2008, 4:02 am

protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)

This methor helps you to do perform and to do some work in the methord.
Then enable the autopost back of drop down then it will work

DropDownList Events

The DropDownList control raises the SelectedIndexChanged
event when users select an item. By default, this event does not cause
the page to be posted to the server. However, you can cause the control
to force an immediate post by setting the AutoPostBack property to true.

YOU CAN ALSO USE THE CLEAR SYNTAX

Code:
 DropDownList2.Items.Clear();

_________________

""-(`v)-"HACKER OF HEART"-(`v)-"

Back to top Go down
View user profile http://aspx.forumotion.com
 
How to use the SelectedIndexChanged methord
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: