View Complete Post
In our asp.net web application we load the dropdown list boxes in the page load. We than set the SelectedValue of each dropdown list box to an object from session. We have event handlers for many of the SelectedIndexChanged events of the drop down lists boxes, but these do not get executed when we set the selected value programmatically.
Someone else mentioned this is by design, and only when a user manually changes the drop down list selected index, will the event get raised.
I would think this is a common scenario of wanting the selectedindexchanged event handled when setting the selectedvalue/selectedindex/listitem's selected property, of a DropDownList. What is the suggested way to handle this? Is there a significant drawback of creating a custom control inherited from DropDownList that has the functionality of raising this event when changing the SelectedIndex or SelectedValue?
DataBound ComboBox bound to DataTable of 2 columns with 1000 items (ZIP codes) is too slow when current selection is changed via SelectedValue. It tooks even 300ms on my i3 4GB W7 64bit. In case of form with 10 combos on detail UI becames unusable in master/detail scenario.
If I implemented some FindRow method and current item is selected via SelectedIndex it works fine (at least it tooks 10-times less time).
Every possible change events are blocked during call of SelectedValues.
Any ideas how to correct this issue?
Thanks in advance.
VS2010, .NET 40
How do you set the start page with godaddy hosting? I can see no way of doing this! You do not seem to have access to the IIS settings that allow you to change it!
Hi,
I am developing a website in asp.net.How can i make my web pages view same in different screen resolutions.I am using 1024*768 resolution
Hi All,
Getting the below error while setting up application on Win 7 using visual studio.NET 2003.
Error:
I understand by the error, i need to install Front page server extension, but not able to figure how to install using IIS 7.5.
I had XP machine with IIS 5.1, able to find the option.
Need your help in resolving this.
Thanks
Abdul
Hello,
I ever thought that I can set a default localization if the users one (which is set in the browser) isn't available.
I've implemented my localresource files for localization. The start.aspx.resx contains all texts and elements for German use and the start.aspx.en.resx for English users. When I switch the language in the browser settings from German to English everything works fine and the english text is displayed. But when I switch to an other language which is not German or English, it takes defaulty the german resource files.
I've set
UICulture="auto:en-US" Culture="auto:en-US"
as well, but it didn't assume the .en resource file automatically. (For example when I enter the website and switch the browser language to French or Italian it should take the english resource files.)
Thanks and regards,Chris
Hi! I want to display a crystal report in my vb.net application. Suppose I have tables named student details, student marks, student address, etc... Now if I want to display all these details (fields of all tables) in one crystal report (with page breaks if necessary) then how will I achieve it. I will be providing a combo box in my application that contains list of student names. How can I link this combo box with the cystal report to dynamically display report for different student on selected index change of combo box? Help me friends. An example would be appreciable.
This month Paul DiLascia codes some Microsoft Office-style dialog box features.
Paul DiLascia
MSDN Magazine August 2006
The last time I wrote this column (March 2006), I shared an application that allows you to update all the Microsoftî Word documents in a folder and its subfolders. Each time the application finds a document in the specified path, it updates the document properties to match those you specified in the application.
Ken Getz
MSDN Magazine June 2006
Hall of Fame Twitter Terms of Service Privacy Policy Contact Us Archives Tell A Friend