can we refresh the page when we click on browse button

Posted by Chaithragm under C# on 3/18/2013 | Points: 10 | Views : 891 | Status : [Member] | Replies : 6
Hi
Im using file upload button to upload the files im displaying the sucess message in the label

<asp:FileUpload ID="FileUpload1" runat="server" AllowMultiple="True" Height="25px" Width="250px" />
After uploading the files message will be displayed..but if i again click on browse last uploded sucess message is displaying.
page has to refresh or message label must set to visible false when i click browse to upload files is their any way to do?




Responses

Posted by: Jayakumars on: 3/18/2013 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

try this code working in my pc


function SucessMsg() {
document.getElementById('<% = lblSucessMsg.ClientID %>').innerHTML = "Sucessfully Uploaded.";
setTimeout("ShowTime()", 1000);
}



</script>


<asp:Button ID="Button1" runat="server" OnClientClick ="ShowTime();"
Text="Submit" onclick="btnSubmit_Click" />

Mark as Answer if its helpful to you

Chaithragm, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Chaithragm on: 3/18/2013 [Member] Starter | Points: 25

Up
0
Down
hi Jayakumar
please find the attachment where in which i have given a screen short

1)Im displaying these 2 messages in a panel1

Upload Successfull...! 0/1 New Image(s) Uploaded.
For more information View Log

2)Again when we browse these messages must not display or else page has to refresh
<asp:FileUpload ID="FileUpload1" runat="server" AllowMultiple="True" Height="25px" Width="250px" /> <br />


Chaithragm, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 3/18/2013 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
chaithragm

no shapshots attached here . Can u provide snapshots

Mark as Answer if its helpful to you

Chaithragm, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Chaithragm on: 3/18/2013 [Member] Starter | Points: 25

Up
0
Down
hi please find the attachment
 Download source file

Chaithragm, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 3/18/2013 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

this is label or JQuery Div? following String.

Upload Successfull...! 0/1 New Image(s) Uploaded.

Mark as Answer if its helpful to you

Chaithragm, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Chaithragm on: 3/18/2013 [Member] Starter | Points: 25

Up
0
Down
label
<asp:Label ID="Label1" runat="server" ForeColor="#669900" Font-Size="Small"></asp:Label>


Chaithragm, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response