Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 31st, 2004, 08:29 PM
Authorized User
 
Join Date: Jul 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default Another Session Variable Problem

Hi All,

Here is another problem I am having with passing session variables:
I simply want to pass one variable called Department to the next page. Unfortunately, the next page does not show it in the datagrid (using Dreamweaver).

On line 2 of my code, I have...
<script language="VB" runat="server">
Sub SetSessionVariable_Click(ByVal s As Object, ByVal e As EventArgs)
Session("sessDepartment") = Request("tfDepartment")
Session("sessEditPages") = Request("tfEditPages")
Response.Redirect("Page_Manager.aspx")
End Sub
</script>

The code for the textboxes and buttons that the user inputs is as follows:
          <form name="form1" method="post" action="" runat = "server">
            <table width="300" border="1" cellspacing="1" cellpadding="1">
              <tr>
                <td class="BodyText">sessDepartment:</td>
                <td><asp:TextBox ID="tfDepartment" runat="server" /></td>
              </tr>
              <tr>
                <td class="BodyText">sessEditPages:</td>
                <td><asp:TextBox ID="tfEditPages" runat="server" /></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td><asp:Button ID="btSubmit" Text="Set Variables" runat="server" onClick="SetSessionVariable_Click"/></td>
              </tr>
            </table>
          </form>

The next page should show the user's department in the department field, but it doesn't???

Any help on this would be great!
Thx,
Jim
:(

 
Old August 1st, 2004, 03:58 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

So, how about the code from next page? There should be something missing in Page_Manager.aspx.

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with session variable prabhatsriva01 ASP.NET 2.0 Professional 3 May 10th, 2007 11:41 AM
Session Variable Problem caterpillar General .NET 0 August 17th, 2006 11:26 AM
Session Variable Problem leo_vinay Classic ASP Professional 1 October 1st, 2003 10:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.