Click here to Skip to main content
15,920,688 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCan you help me? Pin
abglorie15-Sep-09 0:14
abglorie15-Sep-09 0:14 
AnswerRe: Can you help me? Pin
Raghvendra Kumar Roy15-Sep-09 0:47
Raghvendra Kumar Roy15-Sep-09 0:47 
GeneralRe: Can you help me? Pin
abglorie15-Sep-09 1:02
abglorie15-Sep-09 1:02 
AnswerRe: Can you help me? Pin
SeMartens15-Sep-09 0:50
SeMartens15-Sep-09 0:50 
Questionhow to clear the value of the ASP.NET FileUpload control in Web application Pin
coolsharath15-Sep-09 0:09
coolsharath15-Sep-09 0:09 
AnswerRe: how to clear the value of the ASP.NET FileUpload control in Web application Pin
Vimalsoft(Pty) Ltd15-Sep-09 0:21
professionalVimalsoft(Pty) Ltd15-Sep-09 0:21 
GeneralRe: how to clear the value of the ASP.NET FileUpload control in Web application Pin
coolsharath15-Sep-09 0:25
coolsharath15-Sep-09 0:25 
GeneralRe: how to clear the value of the ASP.NET FileUpload control in Web application Pin
Vimalsoft(Pty) Ltd15-Sep-09 0:34
professionalVimalsoft(Pty) Ltd15-Sep-09 0:34 
Pardon me, you are Right. Now Before you Upload , you need to check if there is a File like this


if (FileUpload1.HasFile)
{


}


what you can do is that when you done Uploading you can clear it at the Upda of Uploading process like this

if (FileUpload1.HasFile)
     {
      //Do the Uploading
      //When done Clear the Upload control
       FileUpload1.HasFile = false;
     }

or you can do it like this

or you can do it with javascript like this

<script language="javascript">

    function ClearFileUpload()

    {

    var fil = document.getElementById("FileUpload1");

   fil.select();

   n=fil.createTextRange();

   n.execCommand('delete');

   fil.focus();

    }

    </script>

 

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

<asp:Button ID="Button1" runat="server" OnClientClick="ClearFileUpload()" Text="Clear" />

http://www.dotnetspider.com/resources/2768-clear-value-ASP-NET-FileUpload-Control.aspx[^]

Vuyiswa Maseko,

Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

AnswerRe: how to clear the value of the ASP.NET FileUpload control in Web application Pin
Manas Bhardwaj15-Sep-09 0:35
professionalManas Bhardwaj15-Sep-09 0:35 
GeneralRe: how to clear the value of the ASP.NET FileUpload control in Web application Pin
coolsharath15-Sep-09 1:13
coolsharath15-Sep-09 1:13 
GeneralRe: how to clear the value of the ASP.NET FileUpload control in Web application Pin
Manas Bhardwaj15-Sep-09 1:39
professionalManas Bhardwaj15-Sep-09 1:39 
Questionwindows service not working Pin
iiiii14-Sep-09 23:47
iiiii14-Sep-09 23:47 
AnswerRe: windows service not working Pin
Manas Bhardwaj14-Sep-09 23:54
professionalManas Bhardwaj14-Sep-09 23:54 
QuestionProblem - Gridview databound column's value has a Decimal value consisting decimal point which has been converted to comma when using culture id-ID Pin
G Nathan14-Sep-09 23:32
G Nathan14-Sep-09 23:32 
AnswerRe: Problem - Gridview databound column's value has a Decimal value consisting decimal point which has been converted to comma when using culture id-ID Pin
Manas Bhardwaj14-Sep-09 23:56
professionalManas Bhardwaj14-Sep-09 23:56 
QuestionPass Parameter For Report Pin
vasanth arivali14-Sep-09 23:25
vasanth arivali14-Sep-09 23:25 
QuestionWCF In C#.Net Pin
Rahad Rahman14-Sep-09 23:04
professionalRahad Rahman14-Sep-09 23:04 
AnswerRe: WCF In C#.Net Pin
Manas Bhardwaj14-Sep-09 23:11
professionalManas Bhardwaj14-Sep-09 23:11 
AnswerRe: WCF In C#.Net Pin
SeMartens14-Sep-09 23:12
SeMartens14-Sep-09 23:12 
Questionmysql query in asp.net Pin
Member 464032614-Sep-09 22:38
Member 464032614-Sep-09 22:38 
AnswerRe: mysql query in asp.net Pin
Manas Bhardwaj14-Sep-09 23:01
professionalManas Bhardwaj14-Sep-09 23:01 
GeneralRe: mysql query in asp.net Pin
Member 464032614-Sep-09 23:20
Member 464032614-Sep-09 23:20 
AnswerRe: mysql query in asp.net Pin
sashidhar14-Sep-09 23:18
sashidhar14-Sep-09 23:18 
GeneralRe: mysql query in asp.net Pin
Member 464032614-Sep-09 23:24
Member 464032614-Sep-09 23:24 
GeneralRe: mysql query in asp.net Pin
sashidhar16-Sep-09 0:07
sashidhar16-Sep-09 0:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.