Bulleted List question

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
 
A

Alexey Smirnov

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top