Bulleted List question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nina297

    Bulleted List question

    My bulleted list is grabbing the correct text and value. I'm doing a
    response.redire ct to Bookcategories. aspx but want to use the
    deafultvaluefie ld on the other page called classificationi d, to pull
    info from the database that equals classifictionid . It's not catching
    the classificationi d. What am I doing wrong?

    Here's my code behind page:

    Protected Sub BulletedList1_C lick(ByVal sender As Object, ByVal e As
    System.Web.UI.W ebControls.Bull etedListEventAr gs) Handles
    BulletedList3.C lick
    'Dim url
    Dim position As Integer = e.Index
    Dim li As ListItem =
    BulletedList3.I tems(position)
    Label1.Text = "You selected = " &
    li.Text & _
    ", with value = " & li.Value
    Response.Redire ct("Bookcategor ies.aspx?
    classificationi d=" & Request("classi ficationid") & "'")

    I

  • Alexey Smirnov

    #2
    Re: Bulleted List question

    On Mar 22, 3:43 pm, "nina297" <nina.childr... @ssa.govwrote:
    My bulleted list is grabbing the correct text and value. I'm doing a
    response.redire ct to Bookcategories. aspx but want to use the
    deafultvaluefie ld on the other page called classificationi d, to pull
    info from the database that equals classifictionid . It's not catching
    the classificationi d. What am I doing wrong?
    >
    Here's my code behind page:
    >
    Protected Sub BulletedList1_C lick(ByVal sender As Object, ByVal e As
    System.Web.UI.W ebControls.Bull etedListEventAr gs) Handles
    BulletedList3.C lick
    'Dim url
    Dim position As Integer = e.Index
    Dim li As ListItem =
    BulletedList3.I tems(position)
    Label1.Text = "You selected = " &
    li.Text & _
    ", with value = " & li.Value
    Response.Redire ct("Bookcategor ies.aspx?
    classificationi d=" & Request("classi ficationid") & "'")
    >
    I
    What's it all about? If you cannot catch the classificationi d in

    Response.Redire ct("Bookcategor ies.aspx?classi ficationid=" &
    Request("classi ficationid") & "'")

    Then you should know that the Request() returns the values of HTTP
    request. If it is a query string, it returns a value following the
    question mark (?) and a keyname...

    What the "deafultvaluefi eld" is?

    Comment

    Working...