Lost universe of Programing
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Lost universe of Programing

USERNAME :- Forum Post:-114
 
HomePortalGalleryLatest imagesRegisterLog in

 

 How to use the SelectedIndexChanged methord

Go down 
AuthorMessage
Administrator
Admin
Admin
Administrator


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

How to use the SelectedIndexChanged methord Empty
PostSubject: How to use the SelectedIndexChanged methord   How to use the SelectedIndexChanged methord I_icon_minitime5/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();
Back to top Go down
https://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: