wtbonnell Posted November 13, 2004 Posted November 13, 2004 I have a basic input tag: <input type="file"> How would you read the value within the code behind page (I am using C#, but any lang will do)? I tried making the input tag a server control: <input type="file" runat="server" id="html_Browser"> but that did not seem to help within the code behind page. It is easy for server side contols (such as <asp:Label> because all I would do is just lableName.Text to retrieve the value...any ideas with HTML Controls?!?! Thanks Quote
Moderators Robby Posted November 13, 2004 Moderators Posted November 13, 2004 Give the input an ID... <input id="txt1" type="file" name="txt1" runat="server"> Then make sure that the code-behind declares it as a System.Web.UI.HtmlControls.HtmlInputFile HtmlInputFile txt1; Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.