ciao,
dal momento che, in un pezzo di codice, devo mandare automaticamente ad una altra pagina aggiungendo dei parametri avevo pensato di usare un server.transfer così:
codice:
<script runat="server">
Sub cid(sender as object, e as eventargs)
' per controllare il recupero del dato
response.Write(nid.text)
server.transfer("rid.aspx?id=" + nid.text + "")
end sub
</script>
ma mi dà questo errore:
Server Error in '/wcv' Application.
--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30289: Statement cannot appear within a method body. End of method assumed.

Source Error:



Line 59: #End ExternalSource
Line 60:
Line 61: Public Sub New()
Line 62: MyBase.New
Line 63: Dim dependencies As System.Collections.ArrayList


Source File: C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempora ry ASP.NET Files\wcv\a61c80f3\237dbb40\8m_kyjui.0.vb Line: 61
il bello è che commentando l'istruzione server.response, funziona tutto, passando correttamente il dato

aiutooooooooooooo