index | search | no replies | posting guidelines | help login | register
Index » Products » ASP Report Wizard v2
search this forum:
:: Why can not pass a QueryString HiddenFields :: (2)Post a New Message | Post a Reply
Jun 27 2005, 4:10 AM
 Why can not pass a QueryString HiddenFieldsPost a Reply
 Peter

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

since: Jun 16, 2005
from: Singapore

I need to pass the UseTables & HiddenFields from a Login.aspx, I have try this for about 4 hours, can anyone the find out the reason?
REPORTS.ASP
<%
Dim objWiz
Set objWiz = Server.CreateObject("AspWebSolution.ReportWizard2")
Dim Tables
Dim HF
Tables = Request.QueryString("TABLES")
   'HF="Date,Inv"
HF=Request.QueryString("HiddenFields")
Response.Write(HF)
With objWiz
    .HiddenFields = [HF]
    .UseTables = Tables
End With  
objWiz.Init("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" & Server.MapPath("DB/GFDB.MDB") & ";")
objWiz.DisplayReports
Set objWiz = Nothing
%>
my Login.aspx code
Dim Tables As String
Dim HiddenFields As String
Dim URL As String
Tables = ""
Tables = "Invoice,User"
HiddenFields = "Date,Inv"
URL = "REPORTS.ASP?TABLES=" & Tables & "&HiddenFields="&HiddenFields
Response.Redirect(URL)

Here, I pass "Invoice,User" to UseTables
and pass "Date,Inv" to HiddenFields
but the result is that : the Date, Inv can not hide
this is a simple test, actually I want to pass HiddenFields from a database table ( generate strings from database) for security issue.
Very urgently!!!


Jun 27 2005, 11:06 AM
 Re: Why can not pass a QueryString HiddenFieldsPost a Reply
 ghost

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

from: Washington, DC

Try the latest download. I used the following script in my test:

Dim HF
HF = Request("hf")
'Response.Write hf & "<hr>"
With objWiz
    .ReportsFile = "data/nwind.xml"
    .Title = "ASP Report Wizard v" & .Version
    .UsePopupFilters = False
    '.LocaleFile = "data/locale_es.xml"    
    .HideProcedures = True
    .HiddenFields = HF
    '.HideReportsWithIDs = "5062712511"
End With

Note: Use Request(ParamName) NOT Request.QueryString(ParamName)



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

search this forum: