Postback causing problem
-
Hello everyone. I created a page in which user can upload images and delete as well. But the problem is if user uploads an image(fine)..n hits f5 then same image is again uploaded..which means on refreshing the upload event starts. I tried it by putting condition on upload button event !page.postback..but then user is unable to upload @ all..how i fix tis problem.. *thnx*
-
Hello everyone. I created a page in which user can upload images and delete as well. But the problem is if user uploads an image(fine)..n hits f5 then same image is again uploaded..which means on refreshing the upload event starts. I tried it by putting condition on upload button event !page.postback..but then user is unable to upload @ all..how i fix tis problem.. *thnx*
After uploading you clear the value of file upload control..... In UI part hope so validation should be there in such a way that it should not allow user to upload file before selecting
-
After uploading you clear the value of file upload control..... In UI part hope so validation should be there in such a way that it should not allow user to upload file before selecting
Ok bt what about..delete controls and sending a message same problem i face there 2..
-
Hello everyone. I created a page in which user can upload images and delete as well. But the problem is if user uploads an image(fine)..n hits f5 then same image is again uploaded..which means on refreshing the upload event starts. I tried it by putting condition on upload button event !page.postback..but then user is unable to upload @ all..how i fix tis problem.. *thnx*
After each event redirect it to the current page itself. if any message to display, assign the message to a session and display in the page load give.. Response.Redirect(this.Request.Url.ToString(), false);
-
After each event redirect it to the current page itself. if any message to display, assign the message to a session and display in the page load give.. Response.Redirect(this.Request.Url.ToString(), false);
Ohh yeah..ur rite..i gt it..it will work..thnx alot!