Results 1 to 2 of 2

Thread: response.redirect

  1. #1

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    response.redirect

    (ASP.net using VB.net)

    I have a combo box which contains a list of clients and there id's. When the user chooses an item from the list and presses the form submit button I want to redirect the user to "Admin_view.aspx" but with the parameter held in the Combo "clientID".

    Can anyone help

    Parksie

  2. #2
    Member HumanCompiler's Avatar
    Join Date
    Dec 2002
    Location
    Decatur, IN USA
    Posts
    52
    If you have the id as the DataValueField of the DropDownList, then I believe you could easily do it like this.

    VB Code:
    1. Response.Redirect("Admin_view.aspx?ClientID=" & MyDropDownList.SelectedItem.Value.ToString())

    I haven't used ASP.NET in a while, but I believe that should work (or at least be close)
    -Erik Porter
    .NET MVP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width