I've got a textbox and a button on a form on default.aspx and in my DownloadHandler.ashx I am getting the value I need from HttpContext.Request.Form("txtURI"):
<asp:TextBox ID="txtURI"
AutoPostBack="true"
runat="server"></asp:TextBox>
<asp:Button ID="DownloadButton"
PostBackUrl="~/DownloadHandler.ashx"
runat="server"
Text="Download"/>
I would like to change it so that the value typed into the textbox gets passed to the DownloadHandler.ashx as a querystring (instead of picking it out of the Request.Form).
What is the best way to accomplish that?