Cascading dropdown asp.net Part 22

Поділитися
Вставка
  • Опубліковано 18 січ 2025

КОМЕНТАРІ • 95

  • @georgigeorgiev4871
    @georgigeorgiev4871 8 років тому +8

    Amazing, very well detailed and explained tutorial. Great job!

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  8 років тому +5

      Thank you very much for taking time to give feedback. This means a lot. I am very glad you found the videos useful.
      I have organised all the Dot Net & SQL Server videos in to playlists, which could be useful to you
      ua-cam.com/users/kudvenkatplaylists?view=1&sort=dd
      If you need DVDs or to download all the videos for offline viewing please visit
      www.pragimtech.com/kudvenkat_dvd.aspx
      Slides and Text Version of the videos can be found on my blog
      csharp-video-tutorials.blogspot.com
      Tips to effectively use my youtube channel.
      ua-cam.com/video/y780MwhY70s/v-deo.html
      If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel.
      ua-cam.com/users/kudvenkat
      If you like these videos, please click on the THUMBS UP button below the video.
      May I ask you for a favor. I want these tutorials to be helpful for as many people as possible. Please share the link with your friends and family who you think would also benefit from them.
      Good Luck
      Venkat

  • @krismaly6300
    @krismaly6300 10 років тому +1

    Clear and Crisply explained Cascading Drop Down Lists.
    I recommend others to watch.
    Thanks a lot

  • @rifaqatullah2379
    @rifaqatullah2379 7 років тому +1

    Sir you deserve billion likes...thumb up

  • @debojyotichatterjee2845
    @debojyotichatterjee2845 7 років тому

    I absolutely loved this one!! I had already identified the problem you mentioned from 30:01. I figured it out myself and while doing that I thought I will comment about that here, but by the end of the video the I see that you took care of the problem of selecting the previous DropDownList option.
    However I need to see how I can refactor and reduce this code though.
    Really a great help! Moving on to the next video!!

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  11 років тому +5

    Here is the order
    1. C#
    2. Dot Net Basics
    3. SQL Server
    4. ADO.NET
    5. ASP.NET
    6. GridView tutorial
    7. MVC

  • @sharvaryrane1702
    @sharvaryrane1702 7 років тому

    Ur just "The" best.... U explain so much in detail... Great job.. Worth watching your videos and learning in details...

  • @MrJohn2475
    @MrJohn2475 6 років тому +1

    thank you, life saver for a new C# student!

  • @Dannydhanny
    @Dannydhanny 12 років тому

    Superb Venkat Garu!!!

  • @mguyf_artwork5864
    @mguyf_artwork5864 3 роки тому

    Many thanks to your work👌🙏🙏I respect, God bless you 🙏.

  • @Fkn1405
    @Fkn1405 4 роки тому

    Wow... This tutorial still very much valid in 2020. Thank you very much Venkat for such passion and hard work. Watching from South Africa

  • @behnamsafari4978
    @behnamsafari4978 3 роки тому

    Great job with great details thanks

  • @Ayubajbnabi
    @Ayubajbnabi 11 років тому

    Thanks allot for these very useful easy to understand and precise tutorials. Heart prays for you. Thanks.

  • @programmerrafik
    @programmerrafik 8 років тому

    you are professional =D and your vidio is very comprehensive videos thanx alot

  • @vaibhavtrikolikar4902
    @vaibhavtrikolikar4902 7 місяців тому

    Thank you so much sir for another great Video..!

  • @jamalfaiye5464
    @jamalfaiye5464 2 роки тому

    Thanks Venkat
    You are the man :)

  • @AlexMartinez-be2rh
    @AlexMartinez-be2rh 10 років тому +1

    Exactly that the way that make programms in my company, Thanks a lot for this tutorials.

  • @ramyamusuku2022
    @ramyamusuku2022 7 років тому

    Excellent..Very well explained..Thank you for such wonderful explanation

  • @Aritro92
    @Aritro92 2 роки тому

    Super. explained in detail.

  • @ivumm
    @ivumm 7 років тому

    Muy muy bueno. Bien explicado. Felicidades!!

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  11 років тому +5

    To receive email alerts, when new videos are uploaded, please subscribe to my youtube channel. May I ask you for a favour. I want these tutorials to be helpful for as many people as possible. Please share the link with your friends and family who you think would also benefit from them. If you like these videos, please click on the THUMBS UP button below the video.

  • @pavan1910
    @pavan1910 11 років тому

    Superb and Elegant..!!

  • @Levi-qy2yb
    @Levi-qy2yb 7 років тому

    Thank you man this is very useful tutorial for me. And also i am learning coding from you.

  • @juliobarriga
    @juliobarriga 11 років тому

    Great stuff.

  • @shashb3194
    @shashb3194 3 місяці тому

    really awesome sir

  • @oraksoft7471
    @oraksoft7471 7 років тому

    oh man U saved me .Thankyouuuuuuuuuuuuuuuu.

  • @kipropeddie4254
    @kipropeddie4254 8 років тому

    great video, your work is awesome

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  11 років тому

    I understand, you might have checked this already, but just to make sure, have you verified if for any of the dropdownlist, DataSourceID property is specified. Please note that we are specifying DataSource dynamically in code and hence DataSourceID property in the HTML is not required. Hope this solves the issue you have. Please let me know how it goes. Good Luck.

  • @Devilnero1991
    @Devilnero1991 11 років тому

    Very helpful, god bless you sir.

  • @reshmisumanth1675
    @reshmisumanth1675 10 років тому

    Excellent teaching ... thanks alot

  • @maiwanduniversity478
    @maiwanduniversity478 4 роки тому +1

    Very Good Thanks

  • @sarathchandra941
    @sarathchandra941 7 років тому

    thank u very much... for such a valuable information and marvelous explanation

  • @RashidAli-tx3vm
    @RashidAli-tx3vm 8 років тому

    Much appreciated work mate.

  • @rhchino123
    @rhchino123 10 років тому +16

    Mr. Venkat where can i donate some money for u ? omg u r so good

    • @aamirjamal6833
      @aamirjamal6833 7 років тому +6

      I switch my adBlocker off while watching his videos only because he is worth it..

    • @Trzbne
      @Trzbne 6 років тому

      Me too, just watched an Udemi ad, but please visit www.pragimtech.com/support.aspx - aspx, if you know, what I mean :DD

  • @bebek8989
    @bebek8989 9 років тому

    great explanation venkatt

  • @devangkamdar7574
    @devangkamdar7574 6 років тому

    Very well explained the complicated topic "Cascading Dropdown"
    Also choose smarter way when creating GetData()

  • @rishabhagrawal1431
    @rishabhagrawal1431 7 років тому

    Awesome Video

  • @mouradbarakat123
    @mouradbarakat123 12 років тому

    Great presentation. Thank You!

  • @jamoimccleary3664
    @jamoimccleary3664 7 років тому

    Amazing video. Really helped

  • @MiddleEasternInAmerica
    @MiddleEasternInAmerica 11 років тому

    great effort, clear explanation
    I love your videos so much my brother
    hope you record some videos about design pattern and code re-factoring.

  • @PaaruRetheesh
    @PaaruRetheesh 11 років тому

    Hello Venkat Thank you for your awsome tutorials...!!!
    I am a Computer Science graduate. Whn srchng jobs the main problm I am facing is the lack of hands on exp. So I am requesting you pls post video tutorials of small projects that make use of .net platform HTML XML CSS and ofcourse dont forget about the MVC technology. Try to incorporate all the technologies you discussed in diff video tutorials. If you do so it will be very very helpfull for people like me to try developing our own projects

  • @Cougarbite
    @Cougarbite 9 років тому

    Good work!

  • @RowanGontier
    @RowanGontier 8 років тому

    Excellent tutorial.

  • @deepthitulasi13
    @deepthitulasi13 11 років тому

    Hi Venkat! Thank you for the wonderful videos. I have a issue in vb, my page has 5 cas dd n btn to filter. When i select one dd the other needs to be refreshed,that fine. The issue is I am using updatepanel to display results in gridview. So the refreshing of dd is taking long time depending on gridview results. If the results displayed are long then refreshing of dropdowns is long too..if its short then the refresh is short. I want the grid and dropdowns seperated.

  • @moorwahdan
    @moorwahdan 6 років тому

    Very organized, thank you very much

  • @sharmilamohan3882
    @sharmilamohan3882 12 років тому

    Clear Explanation tutorial. Understood many concepts from all of your videos. Could u please upload videos on crystal reports? Thanku ...
    Here some videos are little bit blur.

  • @jayan4657
    @jayan4657 10 років тому

    Sir ur tutorials are very useful,, thanks alot for this type of services

  • @krismaly
    @krismaly 11 років тому

    Dear KV,
    You were taliking on Refacoring in video "Cascading dropdown asp.net Part 22 ".
    Is there anyway you could make a video on Refacoring for the same video. I think this kind of scenarios are frequesntly used in the industry. I hope your Refactoring video would help many including me.
    I have lots of appreciation for you.

  • @DaviKobi
    @DaviKobi 11 років тому

    Hi Venkat Thanks for this great tutorials, keep up the good work.
    Is there any chance that this video can be performed only on client side without posting back to server each time?

  • @franksolomon5805
    @franksolomon5805 11 років тому

    Venkat, this vid like all the others = awesome stuff. Thanks so much!
    Suggestion: at about 8:30, you split off the data handling into private method DataSet. Before I got this specific ASP.net app working (I follow along w/the vid and change things to learn more) the DataSet method crashed. A lot. I found that try / catch / finally would help here. In the "catch" block, maybe have an error msg but definitely have
    return null;
    and in the finally block, have
    con.Close();
    - Frank

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  11 років тому

    Try removing the DatasourceID attribute and it should work as expected.

  • @sridharramachandran3835
    @sridharramachandran3835 6 років тому

    Thanks Venkat

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  12 років тому

    Hi Abhi, check if the values for the first dropdownlist are being loaded in the Page_Load() event. Please check if you are doing the load in (!IsPostback) condition. I think this is what is the issue. If not please share your code. Good Luck. If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel.

  • @CodeRealtime
    @CodeRealtime 12 років тому

    Thank's .. but if it is possible can you please give us a demo on this problem through a video lecture and yes i had already subscribed to your channel long back .

  • @sushantsahay4576
    @sushantsahay4576 4 роки тому

    great

  • @hlams2
    @hlams2 11 років тому

    yea i find that i had writen in specified datasourceID. these videous is very usefull for begginer like me

  • @CodeRealtime
    @CodeRealtime 12 років тому

    Hi Venkat first thanks for uploading video lectures .. i am facing a problem while selecting data from dropdown .. dropdown is selecting only the first index 0 value .. and when i am selecting the other values .. it again sets the values to the first index 0 value.... conclusion not been able to select the other values . and yes i am performing cascading and fetching data from Database .

  • @niteshsingh5236
    @niteshsingh5236 7 років тому

    Thank you so much

  • @kavithasaphal
    @kavithasaphal 8 років тому +1

    thank u so much..

  • @zk850715
    @zk850715 4 роки тому

    Hi Venkat,
    How can I select text when I use data bind dropdown list? Thanks.

  • @prettycolddeath
    @prettycolddeath 10 років тому

    sir, firstly ur adorable. u really make me understand asp.net and i could fast upgrade myself to .net from asp classic. btw, i think u missed something in this session. when u select continent > country > city and select back any continent, u must disable selecting city and set SelectedIndex to 0.
    btw, i watched it again and noticed i missed it. u duplicate
    //ddlCities.SelectedIndex = 0;
    //ddlCities.Enabled = false;
    twice. as;
    if (selectedIndex == 0) and else. and im sure u know that u didnt need to do that like this=)

  • @afghanboy4022
    @afghanboy4022 9 років тому

    Hello sir !
    first I am thankful of your videos in asp and also I have subscribed your channel and fan of you your video lectures.
    Sir I have a question in control of asp.net , dropdownlist control, and my question is this:
    Whenever if we have a dropdown of 100 elements it is not a good way to display them all coz it will generate a dropdown list with a not friendly view. I want display only 10 or 15 in drop down and rest all in scroll of the drop downlist and I really don’t know how to handle that I researched too many sites but still I am stuck and don’t know how to handle it.
    Plz sir show me a way to solve this issue or some referrals to solve this issue I have a final year project I am really needy of dropdownlist.
    Thans in advance!
    Mohammad Hanif from Afghanistan

  • @SiyamandRashid
    @SiyamandRashid 8 років тому

    thanks for all the efforts and good videos ;
    i have one question if you dont mind , i followed along the video , but when i select an item form first dropdown list ... it filters the 2nd dropdown list , without showing Select City text, and its not in the list , i have the code as belwo :
    public partial class Admin_test : System.Web.UI.Page
    {
    protected void Page_Load(object sender, EventArgs e)
    {
    if(!IsPostBack)
    {
    ddlMake.DataSource = GetData("SP_ddlMake", null);
    ddlMake.DataBind();
    ListItem liMake = new ListItem("Select make", "-1");
    ddlMake.Items.Insert(0, liMake);
    ListItem liModel = new ListItem("Select Model", "-1");
    ddlModel.Items.Insert(0, liModel);
    ddlModel.Enabled = false;
    }
    }
    private DataSet GetData(string SPName, SqlParameter SPParameter)
    {
    string cs = ConfigurationManager.ConnectionStrings["Test_Connection"].ConnectionString;
    SqlConnection con = new SqlConnection(cs);
    SqlDataAdapter sda = new SqlDataAdapter(SPName, con);
    sda.SelectCommand.CommandType = CommandType.StoredProcedure;
    if(SPParameter != null)
    {
    sda.SelectCommand.Parameters.Add(SPParameter);
    }
    DataSet DS = new DataSet();
    sda.Fill(DS);
    return DS;
    }
    protected void ddlMake_SelectedIndexChanged(object sender, EventArgs e)
    {
    if (ddlMake.SelectedIndex ==0)
    {
    }
    else
    {
    ddlModel.Enabled = true;
    SqlParameter ddlModelParameter = new SqlParameter("@Make_ID", ddlMake.SelectedValue);
    DataSet ds = GetData("SP_ddlModel", ddlModelParameter );
    ddlModel.DataSource = ds;
    ddlModel.DataBind();
    }
    }
    }

  • @AnalyticalJha
    @AnalyticalJha 6 років тому

    Hello Sir, These videos are very helpful. thanks a lot. Please let me know if Cascading dropdown is possible by using SqlDataReader Instead of SqlDataAdapter. If yes please help how can i do the same. thanks in advance.

  • @khajaaleem5927
    @khajaaleem5927 11 років тому

    Hi sir, i am getting confused which series to learn first either c#,asp.net,ado.net or mvc,please reply me what to start with in order please reply soon.

  • @luigel
    @luigel 9 років тому

    kudvenkat sir do we need to have an ID for each column?

  • @MegaSwarn
    @MegaSwarn 8 років тому

    how to populate textbox value based on dropdown selection? I have created a stored procedure but not able to get the value in the textbox.

  • @ianmk4306
    @ianmk4306 11 років тому

    hi tech i want to find the DB that you use it in your tutorial can u support the link of the DB like continenttable and the other ones that use it in all your tutorials please

    • @bebek8989
      @bebek8989 9 років тому

      hi usama visit here for the code csharp-video-tutorials.blogspot.com/2012/11/cascading-dropdown-in-aspnet-part-22.html

  • @MrShahjaha
    @MrShahjaha 12 років тому

    hii sir, u uploaded a nice series, but there is some missing video. could u upload it again please.
    and could u upload video on LINQ Technique. thanks in advance.

  • @sukhbawa1976
    @sukhbawa1976 10 років тому

    Sir,
    Your tutorial are very helpful. Please let me know is any DVD of tutorials are available in market.

  • @hlams2
    @hlams2 11 років тому

    i have error when trying to start page it says that. Both DataSource and DataSourceID are defined on 'DropDownList1'. Remove one definition. how to solve it?

  • @mehtarahul1419891
    @mehtarahul1419891 11 років тому

    could you tell how it can be done graphically..

  • @alirezakaveh8430
    @alirezakaveh8430 5 років тому

    where is the con.open()? why you did not open connection in the defined method?

  • @kidsfan6464
    @kidsfan6464 4 роки тому

    Sir am facing error declar variable value

  • @MunamYousuf
    @MunamYousuf 8 років тому

    Just a little confusion. in GetData method you didn't open or close the connection. Why is it so. Didn't we expect connection to be open before performing database operations.

    • @bumblebee2012able
      @bumblebee2012able 8 років тому

      +Munam Yousuf SqlDataAdapter doesn't need to open and close connection

  • @dhanashrigurav4980
    @dhanashrigurav4980 6 років тому

    Why error comes to da.fill (DS) -it says databse with the same name exist or specified file cannot be opened..plz help..i m new for asp.net

  • @raphaelbernard7954
    @raphaelbernard7954 7 років тому

    Vankat How do we open this from IIS as tut 82-84? Is it possible? Thank you.

  • @shahbazjutt8353
    @shahbazjutt8353 3 роки тому

    Sir One question

  • @gtrj55tgjr
    @gtrj55tgjr 6 років тому

    hello sir my question is why you use stored procedure because this also done without store procedure
    i have made this code where i have changed to "TRUE" the Autopostback of DropDownList2 only not DropDownList1
    and its work great as like yours..
    namespace Tutorial1
    {
    public partial class DropDown : System.Web.UI.Page
    {
    public String myStateId;
    SqlConnection conn = new SqlConnection("Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\\MyDatabase.mdf;Integrated Security=True");
    protected void Page_Load(object sender, EventArgs e)
    {
    if (!IsPostBack)
    {
    SqlCommand comm = new SqlCommand("Select StateId,State from State", conn);
    conn.Open();
    DropDownList2.DataSource=comm.ExecuteReader();
    DropDownList2.DataTextField = "State";
    DropDownList2.DataValueField = "State";
    DropDownList2.DataBind();
    }
    }
    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {
    Response.Write(DropDownList1.Text);
    }
    protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
    {
    myStateId =DropDownList2.Text;
    SqlCommand comm = new SqlCommand("Select City,CityId from City where State='"+myStateId+"'", conn);
    conn.Open();
    DropDownList1.DataSource = comm.ExecuteReader();
    DropDownList1.DataTextField = "City";
    DropDownList1.DataValueField = "CityId";
    DropDownList1.DataBind();
    }
    }
    }

  • @rajeshwar2261
    @rajeshwar2261 11 років тому

    Could u pls tell me How r getting intellisence in MySQL Server like Ms Visual Stdio

  • @shalinisoni1088
    @shalinisoni1088 4 роки тому

    According to this method we can store a values of records ....🤔in database ..what we do when we want to store text in database

  • @haiderali-fu8pe
    @haiderali-fu8pe 10 років тому

    I need sql ddl scripts for these tables? can you upload them?

    • @bebek8989
      @bebek8989 9 років тому +2

      haider ali visit csharp-video-tutorials.blogspot.com/2012/11/cascading-dropdown-in-aspnet-part-22.html for the code

    • @johnnydepp1499
      @johnnydepp1499 9 років тому

      +bbeek lapan Thanks dude. :)

  • @musashuaibu5198
    @musashuaibu5198 2 роки тому

    C# cascading drop down list store only ids in the database

  • @tourwithamol
    @tourwithamol 7 років тому

    Dear Sir,
    Thanks so much for providing such a great efforts by you..I really appreciate your great work.
    I am getting following error , kindly suggest me the solution for the same..
    Error description:
    Server Error in '/' Application.
    Parser Error
    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
    Parser Error Message: Could not load type 'test.CascadingDropownList'.
    Source Error:
    Line 1:
    Line 2:
    Line 3:
    Source File: /CascadingDropownList.aspx Line: 1