H
hemdagem
<%
2. option explicit
3. '
4. set fs=CreateObject("Scripting.FileSystemObject")
5. set tfile=fs.CreateTextFile("c:\somefile.txt")
6. test = "Hello World!"
6. tfile.WriteLine(test)
7. '
8. response.write("<table>") & vbcrlf
9. '
10. for again = 1 to 50
11. for rep = 1 to 100
12. leftcolunn = rep
13. middlecolumn = sqr(rep) * lg(rep)
14. rightcolumn = again * rep
15. response.write("<tr>") & vbcrlf
16. response.write("<td>" + leftcolumn + </td>") &
vbcrlf
17. response.write("<td>" + middlecolumn + </td>") &
vbcrlf
18. response.write("<td>" + rightcolumn + </td>") &
vbcrlf
19. response.write("<tr>") & vbcrlf
20. next rep
21. next again
22. '
23. response.buffer = false
24. server.timeout = 10000
25.'
26. </script>
Hi i have to find atleast 5 errors think i found four:
1. leftcolunn should be spelt leftcolumn
2.no <style> tag
3.no %> close tag
4.no </table> close tag
help me out please urgent
and i have these tasks to do:
The following is piece of ASP code which has at least 5 fatal
errors - identify what these are and how they can be fixed.
B) Suggest a better way to achieve the functionality show in lines 10
to 21
C) When running this code you get a "permission denied" error for
line 5. Why is this caused and how could you resolve this issue.
D) Write additional ASP code that will send this table generated in
lines 10 to 21 as an HTML e-mail to an e-mail address entered into
an HTML form on the page.
Hemang
2. option explicit
3. '
4. set fs=CreateObject("Scripting.FileSystemObject")
5. set tfile=fs.CreateTextFile("c:\somefile.txt")
6. test = "Hello World!"
6. tfile.WriteLine(test)
7. '
8. response.write("<table>") & vbcrlf
9. '
10. for again = 1 to 50
11. for rep = 1 to 100
12. leftcolunn = rep
13. middlecolumn = sqr(rep) * lg(rep)
14. rightcolumn = again * rep
15. response.write("<tr>") & vbcrlf
16. response.write("<td>" + leftcolumn + </td>") &
vbcrlf
17. response.write("<td>" + middlecolumn + </td>") &
vbcrlf
18. response.write("<td>" + rightcolumn + </td>") &
vbcrlf
19. response.write("<tr>") & vbcrlf
20. next rep
21. next again
22. '
23. response.buffer = false
24. server.timeout = 10000
25.'
26. </script>
Hi i have to find atleast 5 errors think i found four:
1. leftcolunn should be spelt leftcolumn
2.no <style> tag
3.no %> close tag
4.no </table> close tag
help me out please urgent
and i have these tasks to do:
The following is piece of ASP code which has at least 5 fatal
errors - identify what these are and how they can be fixed.
B) Suggest a better way to achieve the functionality show in lines 10
to 21
C) When running this code you get a "permission denied" error for
line 5. Why is this caused and how could you resolve this issue.
D) Write additional ASP code that will send this table generated in
lines 10 to 21 as an HTML e-mail to an e-mail address entered into
an HTML form on the page.
Hemang