I'm using a sql data source in asp.net, trying to have a variable here
SELECT TOP @Number *
From Table
I want the variable to be from a dropdown that postsback on the same page. All the options in that dropdown are ints. How do I add the parameter? The DataSource.SelectParameters.Add() method only takes a string input