Ask a Question related to ASP.NET General, Design and Development.
-
Mr Gordonz #1
Prompt user with OpenFile dialog
Hi All,
I am trying to replicate the functionality of the HTML FileField control
(<INPUT type="file">). It does everything I need but for one thing: I
can't programmatically set the value of the FileField control - all the
reading I have done says that it is impossible for security reasons.
So, I want to use a standard Server controls: a TextBox control and a Button
control, and replicate the functionality of the FileField HTML control.
When the user clicks a "Browse" button, s/he should be presented with a the
standard Windows OpenFile dialogue box, and when the user selects the file,
the full path (including file name) should be plonked into the TextBox.
This way, I can programmatically set the text property of the TextBox.
Any help greatly appreciated.
Cheers,
Mr Gordonz
Mr Gordonz Guest
-
Shared Object - Prompt Data Permissions Dialog
Hello, I'm creating a small app to run from CD-Rom/local installation that will use multiple shared objects for data storage. To ensure proper... -
Prompt User From a pgplsql Function
Greetings List, I am working on converting a large set of code from a commercial 4gl known as Progress to plpgsql. This code defines a rating... -
prompt user to save changes in datagrid editmode when they try to navigate away from page...how do you do that?
Hello, I have a custom datagrid control that works great. But I was thinking about adding some functionality to it. Currently, I use the... -
prompt to save changes in datagrid in editmode if user tries to navigate away
Hello, I have a custom datagrid control that works great. But I was thinking about adding some functionality to it. Currently, I use the... -
is there a openfile-dialog to open multiple files?
Hi, I just tried the "FileXtra4". Its cool, but I couldnt find anything to open several Files at once. I need to open a bunch of user-selected... -
Mr Gordonz #2
Re: Prompt user with OpenFile dialog
Hi Carl,
I tried that, and it doesn't work. Apparently, this particular control was
designed to NEVER allow its value to be set programmatically. I gather it
was seen as a potential security vulnerability, and so the value property
can't be set programmatically even when it is run as a server control.
Cheers,
MG
"Carl Howarth" <carl.howarth@m-s-solutions.co.uk> wrote in message
news:%23eYN5zCXDHA.2484@TK2MSFTNGP09.phx.gbl...> If you right click on the control from within vs.net, you will be able to
> set it to runat server, this will declare it in the backend code thus you
> will be able to set properties etc.
>
> Carl
>
> "Mr Gordonz" <paul@mobius.net.au> wrote in message
> news:ukkP7pCXDHA.3268@tk2msftngp13.phx.gbl...> Button> > Hi All,
> >
> > I am trying to replicate the functionality of the HTML FileField control
> > (<INPUT type="file">). It does everything I need but for one thing: I
> > can't programmatically set the value of the FileField control - all the
> > reading I have done says that it is impossible for security reasons.
> >
> > So, I want to use a standard Server controls: a TextBox control and a> the> > control, and replicate the functionality of the FileField HTML control.
> > When the user clicks a "Browse" button, s/he should be presented with a> file,> > standard Windows OpenFile dialogue box, and when the user selects the>> > the full path (including file name) should be plonked into the TextBox.
> > This way, I can programmatically set the text property of the TextBox.
> >
> > Any help greatly appreciated.
> >
> > Cheers,
> >
> > Mr Gordonz
> >
> >
> >
>
Mr Gordonz Guest



Reply With Quote

