473,378 Members | 1,377 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,378 software developers and data experts.

Best way to do it

Hi Guys,

I have three textboxes which I use for filling text, value and link. And I have an Add button in the same form which will add these values to a table in DB and I then bind a listbox to this table.

so every time you add an entry, the items in listbox increases.

when an item in listbox is selected, I would like to fill the three textboxes: text, value and link.

I have value and text in the listbox itself but I don't have the link. My doubt is Do I have to make a call to DB everytime an item of listbox is selected. Is this the only way to do it.

Any help on this would be appreciated

Thanks
Kiran

Nov 19 '05 #1
2 983
Kiran,

Make a hidden listbox with the same text as the first one but use the link as a value. When you select an item in your text-value listbox, select an item with the same index in the text-link listbox and get the link from there.

Eliyahu

"Kiran" <ki**********@gmail.com> wrote in message news:u0*****************@TK2MSFTNGP12.phx.gbl...
Hi Guys,

I have three textboxes which I use for filling text, value and link. And I have an Add button in the same form which will add these values to a table in DB and I then bind a listbox to this table.

so every time you add an entry, the items in listbox increases.

when an item in listbox is selected, I would like to fill the three textboxes: text, value and link.

I have value and text in the listbox itself but I don't have the link. My doubt is Do I have to make a call to DB everytime an item of listbox is selected. Is this the only way to do it.

Any help on this would be appreciated

Thanks
Kiran

Nov 19 '05 #2
Thanks a lot
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:uj**************@TK2MSFTNGP14.phx.gbl...
Kiran,

Make a hidden listbox with the same text as the first one but use the link as a value. When you select an item in your text-value listbox, select an item with the same index in the text-link listbox and get the link from there.

Eliyahu

"Kiran" <ki**********@gmail.com> wrote in message news:u0*****************@TK2MSFTNGP12.phx.gbl...
Hi Guys,

I have three textboxes which I use for filling text, value and link. And I have an Add button in the same form which will add these values to a table in DB and I then bind a listbox to this table.

so every time you add an entry, the items in listbox increases.

when an item in listbox is selected, I would like to fill the three textboxes: text, value and link.

I have value and text in the listbox itself but I don't have the link. My doubt is Do I have to make a call to DB everytime an item of listbox is selected. Is this the only way to do it.

Any help on this would be appreciated

Thanks
Kiran

Nov 19 '05 #3

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

Similar topics

15
by: John J | last post by:
I've written the following code into a class to search for and display the results of all races entered (The complete code is in a previous thread). I wish to amend the code so as to display the...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
20
by: hagai26 | last post by:
I am looking for the best and efficient way to replace the first word in a str, like this: "aa to become" -> "/aa/ to become" I know I can use spilt and than join them but I can also use regular...
3
by: Irene | last post by:
Hi all, I have set up a simple VB program (and later on an ASP interface) to manage an Athletics database. I'm using Access 2000. To simplify, I have the Athlets, the Competitions and the...
5
by: l.woods | last post by:
I want your recommendation on which ASP.NET Shopping Cart software I should buy? Best code Best documentation Best support (if needed. I will buying source code, if possible) TIA, Larry...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
10
by: Ren | last post by:
Hi All, I'm still rather new at vb.net and would like to know the proper way to access private varibables in a class. Do I access the variable directly or do I use the public property? ...
4
by: Ned Balzer | last post by:
Hi all, I am pretty new to asp.net; I've done lots of classic asp, but am just beginning to get my mind wrapped around .net. What I'd like to do is include some code that tests if a user is...
24
by: Earl | last post by:
I have all of my data operations in a separate library, so I'm looking for what might be termed "best practices" on a return type from those classes. For example, let's say I send an update from...
11
by: ankitmathur | last post by:
Hi, I'm trying to overcome a situation whereby I have to search through 4-5 columns and produce the results with an order by according to the values matched in these columns. Example: My...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.