Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 June 11th, 2004, 03:14 AM
Authorized User
 
Join Date: Jun 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to dorothee
Default ddl response.redirect and passing value

Hello!
Here are the specs:
1 web form. on submit button, the record is updated in a recordset.
on this form there is a ddl with a response.redirect no auto-post back.
so far, it is working. on submit, the details are updated for the record and the page redirects to a new page depending on the dropdown selection.
however because the dropdown selection redirects to a URL, the database is updated with the URL name instead of the value in the box.

How do I get to change the session variable from url to selection. and how do I pass that variable to my next page?
here is the code:
 <asp:DropDownList
        OnSelectedIndexChanged="SubmitBtn_Click" ID="DeviceType" runat="server">
            <asp:ListItem Value="">Choose</asp:ListItem>
            <asp:ListItem Value="/site2.aspx">Other</asp:ListItem>
            <asp:ListItem Value="/AllPCs.aspx">Laptop</asp:ListItem>
            <asp:ListItem Value="/AllPCs.aspx">PC</asp:ListItem>
           </asp:DropDownList>

Thanks for your help!







Similar Threads
Thread Thread Starter Forum Replies Last Post
response.redirect sarah lee ASP.NET 1.0 and 1.1 Basics 1 October 27th, 2006 08:57 AM
response.redirect ava_h .NET Framework 2.0 0 October 18th, 2006 10:21 PM
response.redirect crmpicco Classic ASP Basics 3 February 9th, 2005 01:50 AM
passing a variable using response.redirect katie456 Classic ASP Databases 3 January 20th, 2004 02:35 AM
Response.Redirect dhborchardt Classic ASP Basics 4 June 16th, 2003 05:56 AM





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