Probleme avec les parametres
Bonjour tout le monde je vient de me faire un script et en exécution locale sa fonctionne a merveille mais des lors que le fichier est Upload sur mon serveur ASP.NET les paramètres ne sont plus pris en compte .
Si une âme charitable pouvait me dire d'ou sa vient je suis preneur car j'est chercher toute la journée et aucun avancement :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
If Request("boitier") = "" Then
For Each a As String In Directory.GetFiles(Server.MapPath("~\") & "assemblage\Boitier\")
Dim root As String = Replace(a, "d:\www\unknow-computer.com\htdocs\", "http://www.unknow-computer.com/")
Dim imgbut As New ImageButton
imgbut.ImageUrl = root
imgbut.Height = 100
imgbut.Width = 200
Panel1.Controls.Add(imgbut)
Dim filename As String = ""
Dim temp As String() = Split(a, "\")
For Each b As String In temp
If b.Contains(".jpg") Then
filename = b
End If
Next
imgbut.PostBackUrl = "?boitier=" & filename
Next
end if
end sub |