upload and download
-
Hello My web page has download and upload page. I design the form with text boxes and combo boxes. I want to know what should I write in the code-behind for the button to collect the information from the text boxes and recieve the attached file. Excuse me for bad english writing.
-
Hello My web page has download and upload page. I design the form with text boxes and combo boxes. I want to know what should I write in the code-behind for the button to collect the information from the text boxes and recieve the attached file. Excuse me for bad english writing.
If all the controls are Runat=Server you can directly access the objects in the server side. Like fileupload.SaveAs("filelocation") //File Upload is asp:FileUpload control YourTextbox.Text = "Hello" Hope this helps. :thumbsup:
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.
-
Hello My web page has download and upload page. I design the form with text boxes and combo boxes. I want to know what should I write in the code-behind for the button to collect the information from the text boxes and recieve the attached file. Excuse me for bad english writing.
hasani2007 wrote:
I design the form with text boxes and combo boxes
What is the purpose of TextBox and Combo Box over here ? Use only
FileUpload
Control To Upload File and Use anButton
say Upload. OnClick on that button upload the file. Use this samle code. Please Check the syntax.If(FileUplaod1.HasFile)
{
FileUpload1.SaveAs(FilePath);
}Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
hasani2007 wrote:
I design the form with text boxes and combo boxes
What is the purpose of TextBox and Combo Box over here ? Use only
FileUpload
Control To Upload File and Use anButton
say Upload. OnClick on that button upload the file. Use this samle code. Please Check the syntax.If(FileUplaod1.HasFile)
{
FileUpload1.SaveAs(FilePath);
}Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
some free tool