title: How to set rangevalidator maximum value to value from stored procedure whose input value is taken from selected item in dropdown?
body: <p>Here's the scenario.
  I have a dropdownlist which populates items. The dropdownlist items contains product id as value.
  Now the quantity to be filled in the textbox needs to be validated using rangevalidator where the maximum value is to be taken from the database according to the selected item's product id.(I already have a stored proc to provide the maxquantity for corresponding productid).
  How can I set the maximum value for the range validator for quantity.
  Also I have used jquery plugin for the design of the dropdown and used clientside script for displaying price according to the product id as selectindexchanged is not fired.
  Would anyone cast some light on this problem.</p>
  
  <p><img src="https://i.stack.imgur.com/j5Moo.png" alt="enter image description here"></p>