Bulleted List question

  • Thread starter Thread starter nina297
  • Start date Start date
N

nina297

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

Here's my code behind page:

Protected Sub BulletedList1_Click(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.BulletedListEventArgs) Handles
BulletedList3.Click
'Dim url
Dim position As Integer = e.Index
Dim li As ListItem =
BulletedList3.Items(position)
Label1.Text = "You selected = " &
li.Text & _
", with value = " & li.Value
Response.Redirect("Bookcategories.aspx?
classificationid=" & Request("classificationid") & "'")

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

Here's my code behind page:

Protected Sub BulletedList1_Click(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.BulletedListEventArgs) Handles
BulletedList3.Click
'Dim url
Dim position As Integer = e.Index
Dim li As ListItem =
BulletedList3.Items(position)
Label1.Text = "You selected = " &
li.Text & _
", with value = " & li.Value
Response.Redirect("Bookcategories.aspx?
classificationid=" & Request("classificationid") & "'")

I

What's it all about? If you cannot catch the classificationid in

Response.Redirect("Bookcategories.aspx?classificationid=" &
Request("classificationid") & "'")

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 "deafultvaluefield" is?
 
Back
Top