Question : Input Boxes

Not sure how to proceed...

My attached code works...locally.
But on the web server the InputBoxes don't work.
What am I missing...or what would work better?

 
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
 Public Sub buildHomePageXML_File()
        Dim fi() As FileInfo = New DirectoryInfo(Server.MapPath("~/gallery/photos/large/")).GetFiles
        Dim sb As New StringBuilder

        Dim var1 As String = ""
        Dim var2 As String = ""
        var2 = InputBox("Please Enter Hyperlink", "Hyperlink")

        sb.AppendLine("")
        sb.AppendLine("")
        sb.AppendLine("   ")
        For Each File In fi
            var1 = InputBox("Please Enter Photo Caption", File.Name)
            sb.AppendLine("      ")
        Next
        sb.AppendLine("   ")
        sb.AppendLine("")
        Dim w As System.IO.StreamWriter = New System.IO.StreamWriter(System.IO.File.Open(Server.MapPath("~/ss.xml"), IO.FileMode.Create))
        w.Write(sb.ToString)
        w.Close()
    End Sub

Answer : Input Boxes

I would do this:

1)  store the filenames, and inputs in the DB
2)  Load a datagrid that gets all inputs from the DB
3)  Check to see if there are any files not in DB that are on the file system
4)  Add those files to the Grid
5)  Save options (verifying all input is complete)
6)  Build with options from grid.

It would prevent users from having to type options every time they build.  
Random Solutions  
 
programming4us programming4us