Let’s start with visual studio 2010\2008\2005\2003.
Go to file menu and select new website as shown in figure..
If you select your web location “HTTP” then use this step – by- step as shown in figure..
After your web form is open like this..
Select design mode as shown in figure..
Now in design mode, drag DropDownList, Textbox, GridView, also two SqlDataSource controls from toolbox as shown in figure..
Now Configure SqlDataSource1 as shown in figure..
Select your database connection if you have already created.
Or use new sql connection.After click new connection ' add connection form open' like this use step shown in figure.
After click on Ok button your output like this in browser…
After select Employee Id from DropDownList , change the value in Gridview and also you can use textbox control like DropDownList control. Thanks.
Know More : ASP.Net VB.Net C#.Net Sliverlight XML WPF WCF Ajax