index | search | no replies | posting guidelines | help login | register
Index » Products » ASP DataGrid
search this forum:
:: Datagrid Object Problem ::    show all messagesPost a New Message | Post a Reply
Feb 24 2005, 11:06 AM
 Re: Datagrid Object ProblemPost a Reply

View this author's profile Send this author a private message Visit author's homepage

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
    <head><title>Inventory Reports</title></head>
    'Display the data grid  
     Set objGrid =  Nothing

Pages: (1)   [1]

search this forum: