This is my Form Tag from The Master Page:
<form id="form1" runat="server" action="Handler.ashx" method="POST" enctype="multipart/form-data">
I have a TextBox in my Content Page:
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
I want to access the TextBox value in the Handler.ashx page Or Send the TextBox value as a query string in the action attribute like this <form id="form1" runat="server" action="Handler.ashx?textBoxVal=SOMETHING" method="POST" enctype="multipart/form-data">
Is this possible?
I belive the problem would be accessing the ID (ClientID or UniqueID ) of your Text box in GenericHttpHandler.
But it could be possible if you set the ClientIDMode=”Static” as a TextBox Property, if you use ASP.Net 4 and try below code