This is a migrated thread and some comments may be shown as answers.

Force Postback On Open Click

1 Answer 84 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Christopher Wooten
Top achievements
Rank 1
Christopher Wooten asked on 03 Jan 2011, 02:57 PM
Hey there,

I'm essentially attempting to use the RadUpload control as a means for a user to select a text file which I will then read and render on the screen.  The behavior I have now is functional, but not ideal, as the user is required to click an additional button in order to force a postback so the selected file is shown on the screen.

The behavior I would like to create is as follows:

1.  User clicks "Select."
2.  User selects a file and clicks "Open."
3.  Upon clicking "Open," a postback occurs and the selected file is read and rendered to the screen.

Is there a way to do this?  Or, is there another control that I should look into to accomplish this?  Ultimately, the file-browser functionality of the Upload control is the most important piece of this for me.

Thanks!

Chris

1 Answer, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 04 Jan 2011, 02:29 PM
Hello Christopher,

This help topic should be of use:

http://www.telerik.com/help/aspnet-ajax/upload-automatically-upload-file.html

You have to add a button, but make it invisible to the user.

I hope that helps.
Tags
Upload (Obsolete)
Asked by
Christopher Wooten
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Share this question
or