473,320 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Does anyone have an ActiveX control for browsing Directories

I have tried to use the file field HTML object in my code buy I cannot get
the code to recognize the name property ("myfile") of the object. It says:
Name 'myfile' not declared. I have set the property Name to 'myfile' but I
am still getting the error in my code.
Nov 19 '05 #1
3 932
right click, and choose runat server


"JackO" <Ja***@discussions.microsoft.com> wrote in message
news:7B**********************************@microsof t.com...
I have tried to use the file field HTML object in my code buy I cannot get
the code to recognize the name property ("myfile") of the object. It
says:
Name 'myfile' not declared. I have set the property Name to 'myfile' but
I
am still getting the error in my code.

Nov 19 '05 #2
I am still having no luck getting past the error. The html for the object is:
<INPUT id="File1" style="Z-INDEX: 127; LEFT: 384px; WIDTH: 474px; POSITION:
absolute; TOP: 552px; HEIGHT: 22px"
type="file" size="59" name="myfile" runat="server">

"Mr Newbie" wrote:
right click, and choose runat server


"JackO" <Ja***@discussions.microsoft.com> wrote in message
news:7B**********************************@microsof t.com...
I have tried to use the file field HTML object in my code buy I cannot get
the code to recognize the name property ("myfile") of the object. It
says:
Name 'myfile' not declared. I have set the property Name to 'myfile' but
I
am still getting the error in my code.


Nov 19 '05 #3
thats because name is not a property, but an attribute. look in the
controlds attribute collection, and you will find it. note sure why you wnat
to play with though, .net needs it to, so it can identify the control the
postback data goes with (i believe with the file control, it will override
the name anyway with the munged id).

if you are tryimg to set the filename, that would be the value attribute,
but its read only because the browser will ignore it (security).

-- bruce (sqlwork.com)
"JackO" <Ja***@discussions.microsoft.com> wrote in message
news:AB**********************************@microsof t.com...
I am still having no luck getting past the error. The html for the object
is:
<INPUT id="File1" style="Z-INDEX: 127; LEFT: 384px; WIDTH: 474px;
POSITION:
absolute; TOP: 552px; HEIGHT: 22px"
type="file" size="59" name="myfile" runat="server">

"Mr Newbie" wrote:
right click, and choose runat server


"JackO" <Ja***@discussions.microsoft.com> wrote in message
news:7B**********************************@microsof t.com...
>I have tried to use the file field HTML object in my code buy I cannot
>get
> the code to recognize the name property ("myfile") of the object. It
> says:
> Name 'myfile' not declared. I have set the property Name to 'myfile'
> but
> I
> am still getting the error in my code.


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

26
by: Dan Nash | last post by:
Hi guys I have a page that is *supposed* to list the directories on the server. Here's the code... folderspec = server.MapPath("./images/") set fso =...
1
by: John Boghossian | last post by:
Has anyone successfully used the file upload activex control. It would be nice to hear of any practical experiences. I tried to get it working, but I didn´t succeed. Regards John
0
by: Tim Smith | last post by:
Dear All, Uncovered a problem with a home grown site replicator. We have directory browsing enabled to allow our remote clients to "dynamically discover" new files/directories (sites) we have...
3
by: Charles Law | last post by:
Can anyone explain the following behaviour? Create a new, blank project, and place an ActiveX control (e.g. WebBrowser control) on Form1. Now run the solution. The sequence of events is: ...
0
by: Richard Bond | last post by:
Hi, I have a vb ActiveX control in a frame by itself. It itself contains a third party graphing control (Graphics Server). In short, a javascript function passes an HTML table object to the...
0
by: Frank | last post by:
I am attempting to convert an asp file to a asp.net file using C#. The original file has an ActiveX control which is contained in a cab file. The cab file contains the .ocx file which connects...
0
by: jwinkler2083233 | last post by:
I'm integrating some software from different vendors with a winform hosted in IE, so I don't have control over the source... Here are the symptoms: A Test program with a winform exe calling...
7
by: Artie | last post by:
Hi, Our team have a web project which includes some C# ActiveX DLLs. On some developers' PCs, the code which calls methods in the ActiveX dll is succesful - no exceptions. On other PCs, the...
1
by: kimiraikkonen | last post by:
Hi, I decided to try Mozilla's famous webbrowser control as an alternative to IE, but this control crashes when i navigate some websites like google.com and google.com's drop down links like...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.