CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2005
    Posts
    178

    init comboBox from DataBase

    hi,

    i have 2 combo boxes and when the user choose some value from combo1 i need to get to dataBase and then fill combo2 with values.

    i thouth about using a dataset to save the possible values of combo2 so i wont need to get to the dataBase every time.

    how can i fill combo2 every time the user change the value in combo1?

    i need to do it in javaScript , but how can i get to the dataSet from JavaScript?

    or maybe there is another way?

    thanks in advanced

  2. #2
    Join Date
    Dec 2005
    Location
    Waterloo ON
    Posts
    545

    Re: init comboBox from DataBase

    I don't know how to get data from DB using javascript. But you can try this: http://www.ajaxpro.info/default.aspx.

    If you want use code-behind, I suggest you to store data in Cache (HttpContext.Current.Cache) before loading.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured