• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Sql
  • php
  • C program
  • Seo

Codelack.com

  • Home
  • C++
  • networking
  • Sql server
    • what is rdbms | one to one | one to many | many to many relation-codlack
    • sql server create table
    • code rules in sql server
  • ASP.NET
    • control state in asp.net
    • cookie in asp.net
    • datalist control in asp .net
    • Using ASP.NET To Send Email
    • application state in asp.net
    • file upload control in asp.net
  • contact us
  • Data structure
    • what is Data structure
    • doubly linked list program in c
    • Array in data structure
    • circular queue in data structure
    • Linear data structure
    • Delete node at any position in singly linked list
    • dequeue in data structure
    • implementation of stack using a Linked list in data structure
    • implementation of stack using array in data structure
    • linked list algorithm
    • linked list in data structure
  • C
    • continue and break in c
    • history of c programming language
    • array program in c
    • c programming practice questions
    • enumeration in c
    • C programs with solutions
    • Characteristic of c
    • print 1 to 100 without using loop in c program
    • two single dimension 2D array in c
  • php
    • php
    • Variables in PHP
    • Scalar data types in php
    • Output function in php
    • how to use php string functions | example of string function
    • point to point configuration
    • error in php
    • Array in  php

file upload control in asp.net

November 2, 2017 by admin Leave a Comment

fileupload control in asp.net

 The fileupload control  enables  you to upload file to the server. It displayed a text control and a browse button that allow users to select a file upload to the server.

This control is used to upload any type of file . but we can set it only specific format of file ,  using some code writing behind it .

html code of file upload control in asp.net

<asp:FileUpload ID="FileUpload1" runat="server" />

The asp.net fileupload control is introduce in asp.net 2.0 framework that provides the advanced  functionality to the  users to sent a file from their computer to  the online web server.

It renders using HTML input type file control that appears as  combination of two control such as textbox control  and button control. The textbox control sends the path of the  file selected from the use’s computer to the server whereas button control provides the functionality to open a file-navigation dialog box. Users can  navigate between the directories and files available on their system and select a file that they  want to upload  to the web server.

 

The security  feature  of file upload  control does  not allow , you  to specify the file path dynamically  and users are also not allowed to type-in the file path in the text box field available  with file upload control in asp.net. Users have to browse the file  using file-navigation dialog box to select it for uploading.

 

Tha asp.net  fileupload  control provides different  types of  properties  that  enable you to examine the  characteristics of the uploaded file and save it to  a specific  location on the web server.

 

fileBytes  :-    it provides  the  access to the  bytes array generated  from the  stream of file selected by the user to upload.

FileContent:-  it provides the  Sysmte.IO.Stream  object  that  points to the file  specified for uploading. You  access all the methods and properties stream class that allows you to read or write the bytes array stream of the  file that is being upload  by the fileupload control.

FileName :-   it returns the  name of the  file selected by the user to upload using fileuplaod control.

SaveAs :-   the saveas method  of it provides   the functionality to save the uploaded file at the location specified in the code to write it in the server .

PostedFile :-    the postedFile  provides as object of httpPostedFile class that  points to the  single file that  have been upload  using FileUpload  control. It  provides the access to the  properties such  as ContentLength, ContentType, FileName, InputStream and SaveAs method.

The asp.net  FIleUpload   control caches  the entire contents of the  elected file from client’s computer system to the the server memory after finishing the caching process it move forward to execute the code specified in the web page.

 

Related Topic

  • FormView Control in aap.net with example
  • cookie in asp.net

Filed Under: asp.net Tagged With: asp.net

privacy policy

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

sql

  • introduction of sql
  • database management system
  • hierarchical database management system
  • what is rdbms | one to one | one to many | many to many relation-codlack
  • codd rules in sql server
  • Character Data Type
  • constraint unique
  • sql server create table

data structure

  • Data structure
  • Linear data structure
  • Array in data structure
  • What is a algorithm
  • stacks in data structure
  • queue data structure
  • dequeue in data structure
  • Priority queue
  • circular queue in data structure
  • linked list algorithm
  • Delete node in singly linked list
  • tree in data structure
  • implementation of stack using array in data structure
  • implementation of stack using a Linked list in data structure
  • Doubly Linked List Implementation

C programming

  • history of c programming language
  • C programs with solutions
  • Characteristic
  • constraint unique
  • continue and break
  • doubly linked list program in c
  • dynamic memory allocation
  • enumeration
  • print 1 to 100 without using loop
  • Variable declaration

c++

  • Introduction to C++ || similarities of  C++ structure and  class
  • default argument in c++
  • access specifiers in c++
  • Function In C++
  • friend function in c++
  • constructor in c++
  • destructor in c++ | How to call destructor C++
  • exception handling in c++

Categories

array multiplication (1) asp.net (10) B.ed (1) C# (1) c# (1) C++ (2) C program (3) FormView control (1) php (2) Seo (5) Sql (1) Uncategorized (10)
disclaimer

Copyright © 2022 · codelack.com