Populate 2nd Dropdown without page repost ?

  • Thread starter Thread starter Fresh Air Rider
  • Start date Start date
F

Fresh Air Rider

Hi Everyone

Scenario

A Webage has two dropdown lists, one for Suppliers and one for
Products.

When a user selects a supplier, it then populates the Products
dropdown list with the relevant products for the selected supplier.

Question

Can this be done in .Net without the form having to repost ?

I have done this in Classic ASP using Microsoft's rather clunky Remote
Scripting which uses a Java applet.

Any code snippets or relevant URLs would be most appreciated.

Thanks in anticipation
David
 
hi

you can do it using XMLHTTP


javascript
_______________________________________
var objHTTP = new ActiveXObject("Microsoft.XMLHTTP")
objHTTP.Open('GET','httprequest.asp',false)
objHTTP.Send()
______________________________________________
you can parse the response text from 'httprequest.asp' and fill the combo
box with out posting

check these articles for more information


http://www.devguru.com/features/tutorials/xmlhttp/XmlHttp1.html
http://www.w3schools.com/xml/xml_http.asp

regards
Ansil
Trivandrum
 
Back
Top