step 3: within update panel write ..
step 4: Drag and drop 2 dropdownlist
step 5: Go to design mode and click the arrow button and go to choose data source.. select the data source to new datasource.. next click on database.. now connect ur database and select the state.. to the next drop downlist select city..
step 6: in the city dropdown list select where clause click column to state,source to control and control id=state.. and then click on add.. set both dropdown list to autopostback=true..
step 7: this whole source code looks like this..
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="cascadingdropdownlist.aspx.cs" Inherits="cascadingdropdownlist" %>
Untitled Page
step 8: set that as a default page.. and run the application..
I hope to understood this application..
thanks
Saturday, December 6, 2008
customised dropdownload list..
In this demo you can learn, when selecting one dropdown list the second dropdown list auto populates.. In this we are using the state and city dropdownlist..
lets us go through these steps one by one:
step 1:First select the Scriptmanger from the toolbox..
step 2:Drag and drop the Update panel inside
Subscribe to:
Posts (Atom)