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> </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
:(