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
 ghost

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
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]

search this forum: