Click here to Skip to main content
Sign Up to vote bad
good
See more: ASP.NET
how to run sql query with callback in asp.net?
 
i want to load from sql and then after select 'province' dropdownlist filter 'city' dropdownlist ?
Posted 2 Jan '13 - 1:21

Comments
Orcun Iyigun - 2 Jan '13 - 7:27
I think you can run your query from "SelectedIndexChanged" event of your dropdownlist if I understand your question properly. Are you trying to accomplish a cascading dropdown?

3 solutions

Not the callback is the keyword you are looking for, you need Cascading Dropdown.
Look here: http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/CascadingDropDown/CascadingDropDown.aspx[^]
  Permalink  
when use SelectedIndexChanged is postback run!
  Permalink  
In the context of ASP.Net the question you have posted is a very basic question because as a web developer using ASP.Net to create dynamic applications, this type of functionality is the first to be aware of. You may search "DataBinding in ASP.Net using C#" on google to get a start. I would also suggest to get a good book on ASP.Net and start as soon as possible. Start writing some code and the moment you are stuck with something in your code we all are here to solve it. But, to expect that we willl spoon feed you with solutions is a waste of time. I am sorry if I have said something objectionable.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 514
1 CPallini 245
2 Mahesh Bailwal 244
3 Maciej Los 240
4 Aarti Meswania 213
0 Sergey Alexandrovich Kryukov 9,162
1 OriginalGriff 7,179
2 CPallini 3,913
3 Rohan Leuva 3,176
4 Maciej Los 2,588


Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 2 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid