Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i m using asp.net,C#,VS 2005,sql server 2005..

i have two buttons add and edit..

when i click add : add page (.aspx) page is displayed and i successfully add the information... and when i go to edit page .. this record i.e.,just now inserted record is shown in the dropdownlist..

again if i click add button and add some information and then go to edit ...this record i.e., just now inserted record is not shown in the dropdownlist..(but it is successfully added to the database)

wht is the problem in loading the new record?

can anybody help me plz..

regards
karan
Posted

You need to bind your dropdown again after
editing Your Record so that newly added Data will be reflected in dropdown
 
Share this answer
 
Comments
Mahendra.p25 12-May-11 5:07am    
the function which you have written to bind your Dropdown you need to call that again after performing your edit functionality
something like this:

dropdown .DataSource = <whateevr ur="" datasource="" is="">
dropdown .DataTextField = "column name"
dropdown .DataValueField = "Id field name"
dropdown .DataBind()
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900