index | search | no replies | posting guidelines | help login | register
Index » Products » ASP DataGrid
search this forum:
:: Datagrid Object Problem :: (4)Post a New Message | Post a Reply
Feb 20 2005, 10:55 AM
 Datagrid Object ProblemPost a Reply
 ray_mayukh

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

since: Feb 20, 2005
from: Calcutta, India

I am getting this error message while using Datagrid object (When i click on the link like EXCEL,DOC,XML)---
Command text was not set for the command object
I am using this object in Win 98 with PWS and MDAC 2.8 Environment

Feb 20 2005, 4:27 PM
 Re: Datagrid Object ProblemPost a Reply
 whichman

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

from: Laurel, MD

What version of the AWSReportWizard2.dll are you using?
Also make sure that your datagrid is not within any <form></form> tags.




-------------------------
Master of the Game
Feb 22 2005, 9:00 PM
 Re: Datagrid Object ProblemPost a Reply
 ray_mayukh

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

since: Feb 20, 2005
from: Calcutta, India

I am using Report wizard version 2 which i download from ur site. I also does not use it with in the <form></form> tag

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: