Click here to Skip to main content
15,925,399 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to update elements in modal popup by using java script Pin
Zapss15-Sep-09 1:57
Zapss15-Sep-09 1:57 
AnswerRe: how to update elements in modal popup by using java script Pin
compninja2515-Sep-09 3:14
compninja2515-Sep-09 3:14 
GeneralRe: how to update elements in modal popup by using java script Pin
Zapss15-Sep-09 20:46
Zapss15-Sep-09 20:46 
GeneralRe: how to update elements in modal popup by using java script Pin
Zapss15-Sep-09 22:20
Zapss15-Sep-09 22:20 
GeneralRe: how to update elements in modal popup by using java script Pin
compninja2516-Sep-09 2:04
compninja2516-Sep-09 2:04 
AnswerRe: how to update elements in modal popup by using java script Pin
Abhishek Sur15-Sep-09 6:58
professionalAbhishek Sur15-Sep-09 6:58 
QuestionString Compair Pin
JAYRAJ GIRI15-Sep-09 1:44
JAYRAJ GIRI15-Sep-09 1:44 
AnswerRe: String Compair Pin
Manas Bhardwaj15-Sep-09 1:52
professionalManas Bhardwaj15-Sep-09 1:52 
QuestionHow to use MS-Word Equation Editor in ASP.Net Pin
abglorie15-Sep-09 1:31
abglorie15-Sep-09 1:31 
AnswerRe: How to use MS-Word Equation Editor in ASP.Net Pin
DavodM15-Sep-09 1:51
DavodM15-Sep-09 1:51 
QuestionHow to configure SMTP on windows 2003 Pin
Raghvendra Kumar Roy15-Sep-09 0:46
Raghvendra Kumar Roy15-Sep-09 0:46 
AnswerRe: How to configure SMTP on windows 2003 Pin
SeMartens15-Sep-09 0:51
SeMartens15-Sep-09 0:51 
AnswerRe: How to configure SMTP on windows 2003 Pin
Manas Bhardwaj15-Sep-09 0:52
professionalManas Bhardwaj15-Sep-09 0:52 
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 

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.