C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

query


Posted Date: 04 Sep 2008      Posted By: sujit kumar biswal      Member Level: Gold     Points: 1   Responses: 2



i have one html form where i'm having one html input file control to get one txt file n upload it,i want to call tht control from vb.net code.i'm new to vb.net can any body tell how to call tht control

this is how in html file
<input type="file" id="file1" name="file1">

this html code is not written in .net source it is a separate html file with out .net.the html form created by writing html code


i want to call this control from vb.net code to upload





Responses

Author: Ritesh N. Jain    04 Sep 2008Member Level: GoldRating: 3 out of 53 out of 53 out of 5     Points: 3

simply place above code/control on aspx page and add runat="server" tag in at so you can access that control using it's Name/ID

<input type="file" id="file1" name="file1" runat="server">

and in codebehind use file1.PostedFile.--- it's varioud property and methods as per your requirement



Author: Ritesh N. Jain    04 Sep 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

<i>
one html form that is not .aspx page simple html page and i have control in that html page and want to access that control from code behind

in that page i have one upload control
</i>

If it's plain html file than how can you expect it to have code behind page?and why cant you place this control in aspx page it self,can you explain more what you are trying to achieve?



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : javascirpt problem in usercontrol
Previous : to Ritesh
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use