Buy Questpond's video subscriptions on
huge discount
.
Online: 3730
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
ASP.NET
>
Loading ...
deleting item form drop down
Posted by
Snvrk1985
under
ASP.NET
on 6/28/2012 |
Points: 10
| Views : 1826 | Status :
[Member]
| Replies : 5
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
I have basically class drop down. under class drop down change event in am binding data to subject dropdown.
i want to delete the item which is selected from subject dropdown next cahnge event of class drop down
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Ajay.Kalol
on: 6/28/2012
[Member]
Starter
|
Points: 25
0
You have to implement Data Manipulation operation on Subject DDL selectindexchanged event
Ajay
ajaypatelfromsanthal.blogspot.in
Snvrk1985
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Premalatha
on: 6/28/2012
[Member]
Starter
|
Points: 25
0
you could grab the first element and store it in a local variable, then remove all items (Clear method) and finally add the first element again.
<script type="text/javascript">
function AddItem(Text,Value)
{
// Create an Option object for adding item to dropdownlist
var opt = document.createElement("option");
// Add an Option object to Drop Down/List Box
document.getElementById("DropDownList").options.add(opt);
// Assign text and value to Option object
opt.text = Text;
opt.value = Value;
}<script />
Premalatha
Software Engineer
Snvrk1985
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Jeffie
on: 6/29/2012
[Member]
Starter
|
Points: 25
0
You can store the selected subject in a viewstate or a hidden variable.. for the ext changed event
you can delete that value from the dropdown if the value is not null
Thanks
http://www.alacraft.com.au/
Snvrk1985
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Ranjeet_8
on: 7/10/2012
[Member]
[MVP]
Gold
|
Points: 25
0
Refer this URL
http://www.plus2net.com/javascript_tutorial/list-remove.php
Snvrk1985
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Patel28rajendra
on: 7/10/2012
[Member]
Starter
|
Points: 25
0
Hi
refer this link
http://forums.asp.net/t/1060744.aspx/1
R D Patel
Snvrk1985
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...