After binding a DropDownList in C# using SQLDataSource its showing data all time what ever its bind from the database's table. But if you an one need to add any additional data into the DropDownList then how to do.
In this article I will show you how to add a row in a DropDownList after binding with a SQLDataSource.
First bind a DropDownList with a SQLDataSource and the in the page_Load event write down the following code.
Now run the project and see the change. Enjoy... :)
In this article I will show you how to add a row in a DropDownList after binding with a SQLDataSource.
First bind a DropDownList with a SQLDataSource and the in the page_Load event write down the following code.
Now run the project and see the change. Enjoy... :)
0 comments:
Post a Comment