.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Displaying IDs in cascading dropdowns

Posted By:      Posted Date: September 01, 2010    Points: 0   Category :SharePoint
Hi, I am using sharepoint RTM on windows server 2008 sp2, i have implemented Cascading dropdown scenario by reading the following blog: http://msdnvietnam.net/blogs/quang/archive/2010/03/30/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010.aspx I am having a problem that if i select the City Dropdown for the first time, then it works fine and cascading works fine but if i reselect (or select another city) then the value selected in District dropdown loads the respective items but the previous selection Id is also displayed. e.g, I select City1 from City DropDown, District dropdown shows District1 Name(ID = 1) and District2 Name (ID = 2) Then I select District2 Name then I select City2 from City DropDown, District dropdown shows "2" (District2 ID) and District3 Name and so on. Can anybody help me with this....

View Complete Post

More Related Resource Links

IP2003 cascading dropdowns w/SP2007

I'm new to IP.  My client base is IP2003 only on SP2007.  The forms have repeating data sections so web form is out of the question as I understand it. :(  

The forms are run on the clients local version off IP.  I would like to use a SharePoint list as the basis for some cascading drop downs.  Is that a realistic idea in IP as described? 

Creating cascading dropdowns - Unable to add filter

Hi all ! I'm trying to learn about how to create cascading dropdowns.In fact I found good explainations, but something very weird is happening... When I click on the filter (using external datasource) a message like 'There is no support atr the web form of infopatrh 2007 for filter' (or something like this).Then the buttons to add, modify, etc appear disabled to me. Any hint, felas ?

infopath 2007 cascading dropdowns



Can anyone suggest me the Infopath cascading dropdowns. I need to create one form ...it will have 3 dropdown and based on the users selection in the first dropdown 2nd dropdown should display only one item (out of 3 standard items..users dhould see only one item int he dropdown). based on the user's selection wrd dropdown should show 2 items (out of 5 standard items....users should see some items only based ont he first dropdwons selected value). Can anyone one suggest how to accomplish this?. Thanks in advance to all.

Cascading dropdowns without JavaScipt/jQuery


I have 2 dropdown's in my form in a view.  (Countries and regions)

Obviously I need the regions dropdown to change it's content whenever the countries list have been change.

However, I do NOT want to do this with any dependancy on JavaScript.

Did not do webforms for years, but remember one let the dropdown postback the form.  I dont think it work like this in MVC, as posting my form will force validation to kick in to easy, and the user see a lot of "error messages" just because they are selecting their country and region?

Any advice / tips / links?

Cascading Dropdowns Reload on Event Trigger



I have three cascading dropdowns and two of them need to trigger something outside of the dropdowns, so I have OnSelectedIndexChanged events on them.  So as to not reload the whole page when these items are triggered, I have all of this in an Update Panel.

Everything works fine -- the only issue that the client doesn't like is that the cascading dropdowns reload on the asynchronous postback.  Can you think of any way to avoid this?


Still issue with Cascading Dropdowns


I have looked at the post on http://www.dotnetcurry.com/ShowArticle.aspx?ID=221 and got this to work somewhat.  I have 2 fields just like the example.   One is Location and the other is Lab.  I can have multiple locations, and within the locations, multiple labs for each location.  So when I select a Location, I want to show all labs for that location.  This part works.  But when I click Update, I the Lab value is not getting written back to the database.  I suspect it is because I dont have a SelectedValue='<%# BIND' but when I add one, I get an error.  Also, in the example post above, he does not have one either. 

The code for the Lab field is below.  What am I doing wrong.  This cant be that difficult. 



<asp:TemplateField HeaderText="Lab" SortExpression="LAB">
                            <asp:DropDownList ID="gvLABS_DROPDOWN" runat="server" DataSourceID="SqlDataSource8"  

DropDowns not DIsplaying in IE 8


Hi all,

I have created a master page with drop down menus that display data on the fly.The drop down is visible in IE7 and all the lower versions however not on IE8.All i can see is a blank drop down with no content.It also works on mozilla.

<asp:ContentPlaceHolder id="PlaceHolderHorizontalNav" runat="server">

Add rows dynamically to a table and poulate data in cascading dropdowns

hi,I am using ASP.NET3.5,
I want to Add rows dynamically to a table.I am using masterpage in my .aspx pages.
I have written the following code code.This code is working fine.
but I need to load data in dropdownlist2 dynamically based on another dropdownlist1.and i need to do few calculations based on table data.
but how can I do using  javascript/jquery/Ajax ??
can i do all my calculations using these html controls?

1  dynamically Add rows to table.(which doesnt give burden to server)
2  need to use cascading dropdowns (like Country,States,villages )
3  Have to do some calculations (like Tax calculations based on table data)
4  Have to enable/disable few controls base on input data of dropdowns and textboxes.

    <TITLE> Add/Remove dynamic rows in HTML table </TITLE>
    <SCRIPT language

Cascading Dropdowns with Dynamic Data


Hi there,

 I need to disable a dropdown depending on the selected value of another dropdown in my detailsview in edit mode.

 I had previoulsy created a file enumeration_edit.ascx so that I would be able to bind a list of names to this dropdown but now that we have a new type of user I want to disable this dropdown when a different user type is selected.

I was thinking of adding a simple 'if' statment when binding the list to the dropdown but I'm not sure how to get the other dropdown's selected value from inside enumeration_edit.ascx.


Appreciate some feedback.

cascading dropdowns


Hi - is there a way to do cascading dropdown lists with dynamic data when editing?  For example, a "City" dropdown would be populated based on the drop down selection in the "State" dropdown. 



Displaying SharePoint lists in Web Parts

When you create a built-in or custom list in Microsoft Windows SharePoint Services, Windows SharePoint Services creates a Web Part, a basic building block of a SharePoint site, to display that list. These Web Parts are called List View Web Parts. Windows SharePoint Services stores List View Web Parts in the site collection Web Part gallery. (The site collection Web Part gallery is the most central gallery of Web Parts for a work group. By default, the gallery name is the name of the site, such as "Our Team Site Web Part Gallery." )

Displaying Row Details Tooltip on GridView using JQuery

Continuing exploring JQuery! I decided to implement a feature to display some kind of details related to a row displayed on GridView. For example when displaying employees details on GridView some information might not fit in the GridView because it will make it huge and wide. These infomration can be diplayed as Tooltip. Or when you want to display a picture and some kind of formated text to be diplayed as tooltip when mouse hover on the image.

Using ASP.NET 3.5's ListView and DataPager Controls: Displaying Data with the ListView

Prior to ASP.NET 3.5, developers who needed to display a set of records could choose between the GridView, DataList, and Repeater controls. The GridView provides rich data features, but has a very boxy layout; the DataList and Repeater allow for a more flexible layout, but lack the "point and click" data features found in the GridView, DetailsView, and FormView controls. The ListView bridges the gap between layout flexibility and built-in data features.

This article, the first in a series of articles on the ListView and DataPager controls, looks at the ListView's many available templates and illustrates how to display data. Read on to learn more!

Displaying Data using ASP.NET 2.0 Repeater and C#

This tutorial will show you how to display data using the .NET Repeater Control, ASP.NET 2.0 and C#.NET

The Repeater control is a powerful tool and is easy to use.

First, you will need to import the System.Data.SqlClient namespace.

Displaying Dicom images..........



Please guide

  1. How to display Dicom images in .net web apllications.
  2. How can i convert Dicom images to Jpeg.
  3. Can uplease provide me with a sample web application??

form feild hints are not displaying for textboxses inside create user wizard?



I'm using following JS code to display input hint box besides the textbox whenever that asp.net textbox receives focus. 

I'm doing this for a registration form and all of the textboxes are inside the asp.net create user wizard control.

<script type="text/javascript">
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {

function prepareInputsForHints() {
	var inputs = document.getElementsByTagName("TextBox");
	for (var i=0; i<inputs.length; i++){
		// test to see if the hint span exists first
		if (inputs[i].parentNode.getElementsByTagName("span")[0]) {
			// the span exists!  on focus, show the hint
			inputs[i].onfocus = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "inline";
			// when the cursor moves away from the field, hide the hint
			inputs[i].onblur = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "none";

displaying xsl results in browser


Hi guys,

How can I test what my xsl spits out in the browser, rather than just viewing the xsl itself?


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend