473,395 Members | 1,496 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Bulleted List question

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

Mar 22 '07 #1
1 1776
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.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?classificat ionid=" &
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?

Mar 22 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Stoic | last post by:
I have a bulleted list and want to increase the spacing between the list items but not the line spacing overall. Is there a way to do this? I'd hate to put a <br /> in the <li>'s. Thanks.
1
by: Dan V. | last post by:
Why when I add a bulleted list to a page does it mess up the Navigation list on the left? These are the two pages: (one has a bulleted list the other does not and works fine) ...
2
by: Woody Splawn | last post by:
What is the tool I use to do bullets? That is, I have an ASPx web page and I would like to create have it show three Hyperlinks as follows: Georgia Texas Arizona But I would like each to...
0
by: sawah | last post by:
how do i create a bulleted list in a scroll bar to become part of powerpoint presentation? it opens up a window in VB6 and gives me Private Sub ScrollBar1_Change() End Sub i have 12...
2
ak1dnar
by: ak1dnar | last post by:
CREATE TABLE `products` ( `p_id` int(11) NOT NULL, `p_name` varchar(15) default NULL, `p_features` varchar(100) default NULL ) from this table I am going to fetch the records and display...
1
by: shapper | last post by:
Hello, I have a DataSet with 3 columns: Id, Name, Number I want to display a list (maybe a bulleted list?) which display a list item where each one is an anchor. The text of each anchor...
2
ak1dnar
by: ak1dnar | last post by:
Hi, I have build up a client registration application with HTML/JSP/JS. the form consist with two fields Name,Email. Before insert these values to MySQL table i have done a validation...
0
by: Linda Jimerson | last post by:
Hello - I created a simple Bulleted Rollover List from a Listamatic resource. When I contain this list (in a DIV with a width), IE 6.0 goes crazy (makes a mess). All other browsers act...
10
by: maya | last post by:
hi, I'm having a problem w/bulleted lists.. as you know FF and IE do diff margins/spacing for these, so have to do stuff like /* IE: */ * html ul.headlines {margin-left:20px; margin-top:0px;...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.