codetoad.com
Home||ASP|ASP.Net|C++/C#|DHTML|HTML|Java|Javascript|Perl|VB|XML||CodeToadPlus!||Forums||RAM
Search Site:
Search Forums:
Problem of Page refresh websandy at 10:29 on Friday, January 28, 2005

Hi,

I have a problem when i refresh the page after postback to server.
The scenario is as follows:
I have input type file control which has been made runat server control ,after selecting the file from browse button and successfully uploading the file,which is then dispalyed in a datagrid control which is populated from SQL server database,and if the page is refreshed
the page remains as it is ,and if gain a file is selected from the browse button adn uploaded succesfully which is again displayed in the datagrid mentioned above,,,and now the actual problem occurs....
now if page is refreshed the second file which was uploaded is agian displayed and if this process of page refresh is continued ,,the second file uploaded goes on getting added to the datagrid......that is its uploading the file even when it founds nothing in the file control on page refresh.....


Thank You,
Sandhya

Re: Problem of Page refresh tgreer at 16:47 on Monday, January 31, 2005

I'd have to see the problem in action, I'm afraid. Can you post a link?

In general, the "file upload" or "input type=file" control is problematic, due to the browser security model. You may have to do a client-side form.reset() to clear the field value.









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
matrix addition
Re: Storing data from HTML to Excel or TXT
Re: function within loop problem
Re: Ô‡´ò¥¯¥é¥Ö¤Ï ¥Æ©`¥é©`¥á¥¤¥É£ò£±£±¥¢¥¤¥¢¥ó ¤Î£··¬ ¤Ç¤¹
Re: Replace
Re: タイトリスト AP2アイアン 712�情�
Re: SMS from Perl using HTTP request
Re: Charl Schwartzel
Re: Adhyayan - Annual Student Conference and Online Coding Festival


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


Copyright codetoad.com 2001-2013