Selecting a File Name From The Server

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/14/2012 2:55:44 PM
Gravatar
Total Posts 148

Selecting a File Name From The Server

Is there a control I can use to retrieve a file name from the server?

I am writing a custom feature that needs to locate a file on the server.  I only need the file name.  I tried using the FileBrowserTextBoxExtender and while it lets me browse the server I can't find a way to retrieve the file name of the file selected file.  I press the "Select" button but it doesn't appear to do anything. I was hoping it would fill in the text box with the selected file name.

Is there another way I can retrieve a file name via a file browser?

6/15/2012 1:11:54 PM
Gravatar
Total Posts 18439

Re: Selecting a File Name From The Server

FileBrowserTextBoxExtender will return the virtual path to the file. But you have to wire it up in code to the textbox you want to populate like this:

fileBrowser.TextBoxClientId = txtUrl.ClientID;

It needs the client id of the textbox so it can wire up javascript that populates the textbox with the path to the file.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.