On Oct 23, 8:30*am, bruce barker <nos...@nospam. comwrote:
the browser only sends back the selected value to the server. if
javascript adds a new value, when the postback is processed on the
server, the server side DropDownList has no matching item to select.
in oninit you need to add code on the server side that adds the new
value to the DropDownList. you could look in the form collection for the
value.
-- bruce (sqlwork.com)
Mel wrote:
On a tab I have one DropDownList which requires a postback and two
ListBoxes which do not require any postback because I just have some
javascript, defined in the aspx file, to copy items from one listbox
to the other. *All 3 of these controls exist in a table which is
inside an UpdatePanel. *When the drop down list value changes and the
postback occurs the data that I had in my listbox control disappears.
How do I fix this?
(using: asp.net 2.0, vb.net, visual studio 2005, winxp pro sp2)
Huh? Did you mean Listbox not DropDownList? The drop-down is working
fine, it's the Listbox data that gets cleared after the drop-down list
causes the postback. 0 1830 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ma |
last post by:
Hello,
I installed the latest version of AJAX toolkit today and start playing
with it. I can not add any AJAX control to my page. When I try to add it, it
is added as follow:
<cc1:TabContainer ID="TabContainer1" runat="server">
|
by: MikeB |
last post by:
Hello All, I am new to ajax and wanted to start by trying something simple.
I have a web form with an updatepanel and then inside the update panel I
have a listbox. Then outside of the updatepanel I have a button. In my
buttons click event in the cs / code behind, I have a loop that just inserts
items in the listbox. My question is, once I click the button and the loop
begins, how do I get it to update the listbox? Does this make since?...
|
by: mimifara |
last post by:
Good Morning,
I have a problem with my listbox control, and i tried everything i found on the web but maybe i'm still missing something.
I have a listbox that i control with a datatable <the data table is populated through a data layer which is a seperate application> and i bind it to the listbox,
on selecting an item from that listbox, a second dropdownlistbox should be activated.
My problem is that when i do postback to activate the...
|
by: =?Utf-8?B?TW9oc2luIEtoYW4=?= |
last post by:
Hi,
I am working on a website where i am creating Horizontal Menus Dynamically
from database as per rights available to the user. I have several
UserControls. And the Menu control also brings UserControl's URL stored in
Database while Page load.
There is a TabContainer control below the Menu Control.
Now i want to add corresponding UserControl dynamically when user clicks on
|
by: =?Utf-8?B?Q29sb3JzdG9uZQ==?= |
last post by:
Hi,
I have a TabContainer inside a data bound FormView (to logically group the
form fields into different tabs). The display part of the data binding works
fine, but the Update doesn't. Basically the FormView cannot find the
TextBoxes inside the tab container's tab panels. Some of the forums say that
it's because of the TabContainer's implementation (by design) of
"INamingContainer", and a hack is to take control of the TabContainer's...
| |
by: RichB |
last post by:
I am trying to get to grips with the asp.net ajaxcontrol toolkit, and am
trying to add a tabbed control to the page.
I have no problems within the aspx file, and can dynamically manipulate a
tabcontainer which has 1 panel already, however I want to try create the
TabPanels dynamically. I followed the advice here:
http://www.asp.net/learn/ajax-videos/video-156.aspx (3rd comment - Joe
Stagner)
|
by: Mel |
last post by:
On a tab I have one DropDownList which requires a postback and two
ListBoxes which do not require any postback because I just have some
javascript, defined in the aspx file, to copy items from one listbox
to the other. All 3 of these controls exist in a table which is
inside an UpdatePanel. When the drop down list value changes and the
postback occurs the data that I had in my listbox control disappears.
How do I fix this?
(using:...
|
by: E11esar |
last post by:
Hi there. I have created an asp.net page with C# and have added two tabs using the respective AJAX control.
I am trying to add a table within an AJAX Accordion control in the second tab but I am running into problems where the two accordian entries are not functioning correctly. If I don't use a table and just place some sample text within the accordian body then this works okay but once I add the table, the second accordion value appears on...
|
by: temijojo |
last post by:
Hello, Can someone help me in this problem.
In my content page, I used 2 user controls inside an Ajax Toolkit TabControl. One of the user controls is a data entry with a dropdownlist. The dropdownlist does not retain its selected value when I make a postback (click an update or save button). But when I run it without Tabcontrol, it's ok. Is there anything I should add to the code?
Here's the aspx script:
<asp:Content ID="Content2"...
|
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: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: 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: 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...
| |