A
André
Hi,
I made a webform for a survey, with multiple-choice questions. The results
of each question is put into a table e.g.:
values frequency
1 6
2 3
3 32
4 26
5 12
Now i want to add a graphic beside the table representing those values. So i
use two files, the second containing the code for the graphic.
I tried two ways: with a cookie and with passing a parameter. Everything
works, except that the second file has no time to create and render the
graphic.
When using a cookie, all graphics are rendered in file 1 but all with the
values of the last question.
When using a parameter, only the graphic of the last question is rendered
(with the right values).
Do you know a way to 'slow down' file1, so file2 has enough time to produce
and send the graphic to file 1? Or any other solution?
Thanks
André
My code:
file1: (with parameter)
-----
'valtopass is the string containing the values to pass with ':' as separator
(e.g. 6:3:32:26:12)
....
For j = 1 To numberoffield
'create table
....
gr.ImageUrl = "graf2.aspx?v1=" & valtopass
form1.Controls.Add(gr)
next
....
file1: (with cookie)
-----
'valtopass is the string containing the values to pass with ':' as separator
(e.g. 6:3:32:26:12)
'cok = HttpCookie
....
For j = 1 To numberoffield
'create table
....
cok.value=valtopass
response.cookies.add(cok)
next
....
I made a webform for a survey, with multiple-choice questions. The results
of each question is put into a table e.g.:
values frequency
1 6
2 3
3 32
4 26
5 12
Now i want to add a graphic beside the table representing those values. So i
use two files, the second containing the code for the graphic.
I tried two ways: with a cookie and with passing a parameter. Everything
works, except that the second file has no time to create and render the
graphic.
When using a cookie, all graphics are rendered in file 1 but all with the
values of the last question.
When using a parameter, only the graphic of the last question is rendered
(with the right values).
Do you know a way to 'slow down' file1, so file2 has enough time to produce
and send the graphic to file 1? Or any other solution?
Thanks
André
My code:
file1: (with parameter)
-----
'valtopass is the string containing the values to pass with ':' as separator
(e.g. 6:3:32:26:12)
....
For j = 1 To numberoffield
'create table
....
gr.ImageUrl = "graf2.aspx?v1=" & valtopass
form1.Controls.Add(gr)
next
....
file1: (with cookie)
-----
'valtopass is the string containing the values to pass with ':' as separator
(e.g. 6:3:32:26:12)
'cok = HttpCookie
....
For j = 1 To numberoffield
'create table
....
cok.value=valtopass
response.cookies.add(cok)
next
....