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 4 1437
> 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
> 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.publi c.scripting.jsc ript
-- http://www.aspfaq.com/
(Reverse address to reply.)
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!
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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:
----------------------------------------------------------------------------
<?php
ini_set("session.use_cookies", "off");
ini_set("session.use_trans_sid", "on");
session_start();
$_SESSION = "";
$_SESSION = "";
echo "<form method='POST' action='login.php'>
|
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:
**********************************************************************
'Page1.aspx
<%@ import namespace="System.Data" %>
<%@ import namespace="System.Data.sqlclient" %>
|
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 accept a privacy
disclosure statement before they register for the applications main
offerings. I was hoping someone could lead me in the right directions in
where to start for this. Here are a few questions that possibly need to be
answered; Do...
|
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 on where the color of that
control will be changing will be changing. Is this
doable? If not, is there a control I can do this with? to
have a clear/see through backstyle?
Thanks,
JD
|
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 text as a whole when i enter headers text dynamically.
What is the property that i need to set here?
Thanks in advance
Prash
| |
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 lond the text is going to be. so i need to
set the height and width of the label a cording to the data.
un fortunatly i have not been able to find a simple Auto Resize property
|
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?
i tried a lot of things without succes:
Protected Sub DetailsView1_DataBound(ByVal sender As Object, ByVal e As
System.EventArgs) Handles DetailsView1.DataBound
dim enqna as DetailsViewRow
|
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 used to show a place holder. Without
it, really hard to know there is a lable on there.
I am using Simplified Chinese version since I guess it might has better
support for Chinese characters I used in my application.
|
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 helps me out.
thank you
Ravindar
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |