View Single Post
 
Old November 20th, 2008, 03:40 AM
beetle_jaipur beetle_jaipur is offline
Authorized User
 
Join Date: Feb 2006
Location: jaipur, rajasthan, India.
Posts: 67
Thanks: 7
Thanked 0 Times in 0 Posts
Send a message via Yahoo to beetle_jaipur
Default

calling page
************************************************** ***********
<%
if (CStr(Request("check")) = "redirect") Then
  response.Write("enterred into check")
    if Request.Form("name") <> "" then
       response.Write(" value : " & CSTR(Request.Form("Name")))

       Session("Name") = Request.Form("name")

       Response.Write(session("Name"))
       'Response.Redirect("untitled3.asp") %>

       <a href="untitled3.asp">link</a>
       <%
       else
       Response.Write("No Value")
       end if
else
    Response.Write("not entered into redirect")

end if
%>


<html>
<head>
<title>Untitled Document</title>
</head>

<body>
<form action="untitled-21.asp" method="post" name="ashok">
<input name="name" type="text" size="25" />
<input name="check" type="hidden" value="redirect" />
<input name="ok" type="submit" />
</form>
</body>
</html>

************************************************** ******************

redirected Page
************************************************** ******************
<html>
<head>
<title>Untitled Document</title>
</head>

<body>
   <%
        dim naam
    if naam <> "" then
       naam = session("Name")
       response.Write(naam)
    else
       Response.Write("No Session Value")
    end if
%>

</body>
</html>
************************************************** ***************