index | search | no replies | posting guidelines | help | login | register |
Index » Products » ASP DataGrid |
| |||||||
Feb 24 2005, 11:06 AM |
| ||||||
ghost from: Washington, DC | Make sure you create your connection before adding any HTML tags to your .asp page as shown below: <% 'decalre your object Dim objGrid 'create an instance Set objGrid = Server .CreateObject("AspWebSolution.DataGrid" ) 'set your parameters With objGrid 'Set your command statement .Command = "SELECT * FROM Orders" 'set other parameters if required .ShowInactiveButtons = True End With 'Create a databse connection objWiz.CreateConnection(strConn) %> <html> <head><title>Inventory Reports</title></head> <body> <% 'Display the data grid objGrid.Display Set objGrid = Nothing %> </body> </html> ------------------------- Ghost | ||||||
Pages: (1) [1] |