ciao conosco asp ma asp .net no come facio a mantenere un lavole di una variabile di sessione anche in un altra pagina sempre aspx , qualche sempio ?
default.aspx
....
<script runat="server">
'This variable specifies relative path to the folder, where the gallery with uploaded files is located.
'Do not forget about the slash in the end of the folder name.
' Private galleryP1 As String = "../../../public/Gallery/"
sub page_load(obj as object, e as eventArgs)
session("galleryp1") = "../../../public/Gallery/"
response.write(session("galleryp1"))
end sub
</script>
........... cè un form che va ad
upload.aspx
<%@ Page Language="VB" AutoEventWireup="false" Debug="true" ValidateRequest="false" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Xml" %>
<script runat="server">
'This variable specifies relative path to the folder, where the gallery with uploaded files is located.
'Do not forget about the slash in the end of the folder name.
Private galleryPath As String = "<%=request.form("galleryp")%>"
...........
qui il valore della variabile galleryPath è vuoto perchè forse sbaglio proprio il ragionamento ?
grazie

Rispondi quotando
