index | search | no replies | posting guidelines | help login | register
Index » Products » ASP Report Wizard v2
search this forum:
:: error accessing datagrid properties :: (4)Post a New Message | Post a Reply
May 8 2007, 8:16 AM
 error accessing datagrid propertiesPost a Reply
 fcetrini

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

since: May 8, 2007
from: Roma, Italy

hello everibody, this is my very first message here.
i'm trying the datagrid for my asp application, and i got this message when i attempt to read grid properties:

Wrong number of arguments or invalid property assignment

what's wrong??? are they write-only?

fabio



May 8 2007, 3:14 PM
 Re: error accessing datagrid propertiesPost a Reply
 ghost

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

from: Washington, DC

we will need to see the source code you are using in order to understand the source of this error.




-------------------------
Ghost
May 9 2007, 1:22 AM
 Re: error accessing datagrid propertiesPost a Reply
 fcetrini

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

since: May 8, 2007
from: Roma, Italy

you're right, i've missed it:


strConn = session("ODBCSTRING")
strSQL = session("sqlString")
Set objGrid = Server.CreateObject("AspWebSolution.DataGrid")

With objGrid
    .Title=request.querystring("CUSTOM")
    .GridStyle = "background-color:gray;"
    .HeaderStyle = "background-color:#666699;"
    .HeaderTextStyle = "color:white;font-family:verdana;font-size:8pt;"
    .ItemStyle = "background-color:#d2d1de;color:000000;font-family:verdana;font-size:8pt;"
    .AltItemStyle = "background-color:#f5f5f5;color:000000;font-family:verdana;font-size:8pt;"
    .FooterStyle="font-family:verdana;font-size:8pt;"

    .Command = strSQL
      
    .CreateConnection (strConn)
    
    .Display

End With

response.write objGrid.Command

Set objGrid = Nothing



fabio

May 9 2007, 7:01 AM
 Re: error accessing datagrid propertiesPost a Reply
 ghost

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

from: Washington, DC

I'm not sure but try commenting out this line: response.write objGrid.Command

' response.write objGrid.Command

does it help?





-------------------------
Ghost
Pages: (1)   [1]

search this forum: