473,406 Members | 2,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,406 software developers and data experts.

drop menu list & delete button - dynamic

From my PHP page:

Grab all data from the database.
Go through a loop to generate the HTML.

Client side:
From the Color drop menu list, if a user change the value. It will
grab that value & update to the database based on the hidden ID.

DELETE ALL will delete everything the databse.
DELETE will only delete that specific row only.
ITEM, NAME, COLOR (single value), ID are store on a SQL database.

My question is:

How can I achieve this in C#.NET?

I am wondering if I can dynamic page like PHP. Thanks alot.

Output HTML from PHP:

< or = !
!table!
!form name="A_FORM" action="index.php" method="post" align="right"!

!tr!
!td!!/td!
!td!!/td!
!td!!/td!
!td align="left" valign="top"!
!input type="submit" value="DELETE ALL" name="DeleteAllName"
id="DeleteAllNameBut" !
!/td!
!/tr!

!tr!
!td align="left" valign="top"!Item!/td!
!td align="left" valign="top"!Name!/td!
!td align="left" valign="top"!Color!/td!
!/tr!
!/form!
!!-- A_FORM --!
!!-- new --!
!form name="NAME_FORM" action="index.php" method="post"
align="right"!

!tr!
!input type="hidden" value="411" name="ID"!
!td align="left" valign="top"!!b!Fruit!/b!!/td!

!td align="left" valign="top"!Apple!/td!

!td align="left" valign="top"!
!select name="nameStatus" onchange="submit();"!
!option id='nameDropID' value='Green' selected='selected'!Green!/
option!!option id='nameDropID' value='Red' !Red!/option!!option
id='nameDropID' value='White' !White!/option!!/select!
!/td!

!td align="left" valign="top"!
!input type="submit" value="DELETE" name="DeleteName"
id="DeleteNameBut" !
!/td!
!/tr!
!/form!

!!-- End --!
!!-- new --!
!form name="NAME_FORM" action="index.php" method="post"
align="right"!

!tr!
!input type="hidden" value="412" name="ID"!
!td align="left" valign="top"!!b!Vegetables!/b!!/td!

!td align="left" valign="top"!Carrot!/td!

!td align="left" valign="top"!
!select name="nameStatus" onchange="submit();"!
!option id='nameDropID' value='Green' !Green!/option!!option
id='nameDropID' value='Red' selected='selected'!Red!/option!!option
id='nameDropID' value='White' !White!/option!!/select!
!/td!

!td align="left" valign="top"!
!input type="submit" value="DELETE" name="DeleteName"
id="DeleteNameBut" !
!/td!
!/tr!
!/form!

!!-- End --!
!!-- new --!
!form name="NAME_FORM" action="index.php" method="post"
align="right"!

!tr!
!input type="hidden" value="416" name="ID"!
!td align="left" valign="top"!!/td!

!td align="left" valign="top"!Brocolli!/td!

!td align="left" valign="top"!
!select name="nameStatus" onchange="submit();"!
!option id='nameDropID' value='Green' selected='selected'!Green!/
option!!option id='nameDropID' value='Red' !Red!/option!!option
id='nameDropID' value='White' !White!/option!!/select!
!/td!

!td align="left" valign="top"!
!input type="submit" value="DELETE" name="DeleteName"
id="DeleteNameBut" !
!/td!
!/tr!
!/form!

!!-- End --!

!!-- new --!
!form name="NAME_FORM" action="index.php" method="post"
align="right"!

!tr!
!input type="hidden" value="413" name="ID"!
!td align="left" valign="top"!!b!Car!/b!!/td!

!td align="left" valign="top"!BMW!/td!

!td align="left" valign="top"!
!select name="nameStatus" onchange="submit();"!
!option id='nameDropID' value='Green' !Green!/option!!option
id='nameDropID' value='Red' selected='selected'!Red!/option!!option
id='nameDropID' value='White' !White!/option!!/select!
!/td!

!td align="left" valign="top"!
!input type="submit" value="DELETE" name="DeleteName"
id="DeleteNameBut" !
!/td!
!/tr!
!/form!

!!-- End --!

!/table!
Oct 4 '08 #1
0 1950

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

Similar topics

2
by: LRW | last post by:
I've a page where I have two form drop-menu. I need the second menu to populate only with items based on what's selected in the 1st menu. I have "Javescript in Easy Steps" and the closest it...
4
by: Yuk Cheng | last post by:
<<<start index.htm>>> <html> <head> <script> function perform(action){ } </script> </head>
2
by: pantagruel | last post by:
I have an old web application I did where browsers with dynamic capabilities received a drop down menu on the top of the page and a fold out on the left hand side of the page and non-dynamic...
1
by: dirk van waes | last post by:
Hello everyone, Being complete newbie in asp.net I am trying to make an example which works with a very simple database. First I made my project in VS- vb.net, draging an oledbconnection and an...
2
by: Ravi Joshi | last post by:
The menu on my site works fine in IE6 and Firefox. In IE7, there is a problem with the menu: when you mouse over the various main catagories, the sub-catagories all appear to the right as they...
0
by: mjohnson0321 | last post by:
I am trying to incorporate a CSS drop-down menu into a site (suckerfish menu). The menu gets lost behind the content below it, but only on one of the drop downs (News). The error occurs on all of...
0
by: Slickuser | last post by:
From my PHP page: Grab all data from the database. Go through a loop to generate the HTML. Client side: From the Color drop menu list, if a user change the value. It will grab that value &...
0
by: Slickuser | last post by:
From my PHP page: Grab all data from the database. Go through a loop to generate the HTML. Client side: From the Color drop menu list, if a user change the value. It will grab that value &...
0
by: Slickuser | last post by:
From my PHP page: Grab all data from the database. Go through a loop to generate the HTML. Client side: From the Color drop menu list, if a user change the value. It will grab that value &...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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
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...
0
Oralloy
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,...
0
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...

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.