25 August 2007

I think that here is the fastest way to bind a data grid for web application.

  • Login with SQL Server 2005 with Windows Authentication.


  • Open your database,
  • Right Click your table and click on Modify menu for which one do you want to bind.
  • Select Fields which are do you want to show in browser. user Control key to select.

  • Press Control + C to copy those column.
  • Now Open a web page in devenv.
  • And Click to for Control + V data binding.
  • See bellow
All Selected Columns and Connection string will be automatically

  • Press F5 to run
Result in browser.
Done. Isn't it fastest?

If you did not login with "Windows Authentication" so you have to write down password to connect that sql server in Web.config file.

0 comments :

Post a Comment