In this article we will discuss to create autocomplete textbox using webmethod in asp.net c# application. It provides suggestion in a dropdown menu while the user enters text into the field. Please change the database connection string to connect your database.
The purpose of using enumeration is to improve readability by enabling us to use meaningful symbols instead of numeric values. The value of variable is an integer,it is easy to output the name of the symbol rather then its value.
StringBuilder is most flexible because it can span multiple statements. The default constructor creates a buffer 16 bytes long, which grows as needed. We can specify an initialize and also maximize size if needed.