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

Passing a field's lable

Hi,

I have a listfield that displays a list of 'Themes' stored in a
database. The listfield's lable is Themenames and it's value is
UniqueThemeID. The page that i'm designing allows the user to add or
remove Themes to this list which updates the database.

When the user adds a theme i can use the UniqueThemeID (which is
passed when the form is submitted) to display a page saying that "The
theme *Themename* has been added to the database". My problem is that
i cant do this when the user wants to delete the theme beacuse the
UniqueThemeID no longer exists in the database. So somehow i need to
pass the listfields selected lable, maybe with a hidden field of
something, but i'm stummped as how i can do this. Does anyone have any
solutions. I sure other people must have had this problem in the past,
but i cant find anything on it.

Thanks, Luke
Jul 19 '05 #1
4 1403
> theme *Themename* has been added to the database". My problem is that
i cant do this when the user wants to delete the theme beacuse the
UniqueThemeID no longer exists in the database.
Why not? Why don't you store the themeID?
pass the listfields selected lable, maybe with a hidden field of
something, but i'm stummped as how i can do this. --
http://www.aspfaq.com/
(Reverse address to reply.)
Does anyone have any solutions. I sure other people must have had this problem in the past,
but i cant find anything on it.

Thanks, Luke

Jul 19 '05 #2
> theme *Themename* has been added to the database". My problem is that
i cant do this when the user wants to delete the theme beacuse the
UniqueThemeID no longer exists in the database.
Why not? Why don't you store the themeID?
pass the listfields selected lable, maybe with a hidden field of
something, but i'm stummped as how i can do this.


You can do this with client-side script. Please see a client-side group.
microsoft.public.scripting.jscript

--
http://www.aspfaq.com/
(Reverse address to reply.)
Jul 19 '05 #3
I've sorted it.

What i did was put some code to set up another recordset that opened and
returend the ThemeName and stored it as a variable before the code that
deleted it from the database. Just a matter of putting the functions in
the correct order.
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #4
You'll probably want to store the Themename in a session variable and
then use the variable to get the name when you're ready to print the
advisory. If I were doing the design, I would actually go so far as to
requery the database after the DELETE (or INSERT) and then display a
full list of the themes.

Lukelrc wrote:
Hi,

I have a listfield that displays a list of 'Themes' stored in a
database. The listfield's lable is Themenames and it's value is
UniqueThemeID. The page that i'm designing allows the user to add or
remove Themes to this list which updates the database.

When the user adds a theme i can use the UniqueThemeID (which is
passed when the form is submitted) to display a page saying that "The
theme *Themename* has been added to the database". My problem is that
i cant do this when the user wants to delete the theme beacuse the
UniqueThemeID no longer exists in the database. So somehow i need to
pass the listfields selected lable, maybe with a hidden field of
something, but i'm stummped as how i can do this. Does anyone have any
solutions. I sure other people must have had this problem in the past,
but i cant find anything on it.

Thanks, Luke


Jul 19 '05 #5

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

Similar topics

1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
1
by: Troy | last post by:
Hello, I'd like to pass data between two pages but unable to get code to work. Code is below and any help is appreciated: ...
2
by: Andy G | last post by:
I have a very general question and just need someone to lead me in the right direction. I am constructing a ASP.NET web form that is called 'Acknowledgement'. My client needs people to read and...
3
by: JD | last post by:
Is it possible to have a clear backstyle for a lable control? I want to write some text on a lable and I want the background of the label to match the color of the control I am placing the label...
1
by: Prashwee | last post by:
Hi All Just a small problem. I am using DataGridView control for my project implementing in VB 2005. I need to resize my column header lable withd dyamically so that the user can see the lable...
5
by: iKiLL | last post by:
Hi All, I am trying to Bulid Windows Mobile Forms Control with C# in VS2005 using CF2. On this control A lable is created and some text set for the control. My problem is that i dont know how...
1
by: Chris | last post by:
I need the value of a field of a detailsview in DataBound event. i can find the fieldname with this: Dim a As DataControlField a = DetailsView1.Fields(0) But how to get the value of that field?...
0
by: Ryan Liu | last post by:
Hi, In VS 2005, in design view, if I put a lable on a windows form, and set label Text to "", then this label will totally invisiable. This is right at runtime, but I remember in VS 2003, it...
2
by: ravindarjobs | last post by:
Hi friends i want to generate UPS label from my asp.net C# code. i have UPS account, online tools information with me. but dont know where to start to develop. can any one plz give a link that...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.