Your title means a risk of someone being able to help you not even reading your post since ASP is not ActionScript - it's ASP and has nothing to do with the question.
But yes you can. Send a get or post request. Have the server side script talk to the db and return the results.