Use cross-page posting...and the PreviousPage properties.
http://msdn2.microsoft.com/en-us/library/ms178139.aspx
You could also use Server.Transfer.
Juan T. Llibre, asp.net MVP
aspnetfaq.com :
http://www.aspnetfaq.com/
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
===================================
"Chris" <cc*@sdsd.dc> wrote in message news:e8**************@TK2MSFTNGP05.phx.gbl...
Hi,
The first file contains (test1.aspx):
<%@ Page Language="VB" %>
<script runat="server">
Public myvr As String
</script>
<%myvr = "ok"%>
The second file (test2.aspx):
<%@ Page Language="VB" %>
<% Response.Write(myvr)%>
When i run test2.aspx, i get:
"Name 'myvr' is not declared"
How to declare it?
Thanks
Chris