|
by: Rob Cowie |
last post by:
Hi,
Given a string representing the path to a file, what is the best way to
get at the filename? Does the OS module provide a function to parse the
path? or is it acceptable to split the string using '/' as delimiters
and get the last 'word'. The reason I'm not entirely happy with that
method is that it is platform specific. I would prefer to use a built
in method if possible.
Cheers,
|
by: David Norman |
last post by:
I want to implement a repetitive admin function of kicking off an operation
using a file that changes infrequently. All I'm interested in is the file
name and path, I'm not performing any file transfer.
I've put a fileupload control on the page to allow the user to specify the
file. Now I want to push/pull the details to/from appsettings so the user
doesn't have to browse to the file if it hasn't changed.
However I can't set default...
|
by: rn5a |
last post by:
The ASPX FileUpload control displays a TextBox along with a 'Browse...'
Button. Setting the different properties of this control just reflects
the changes in the TextBox but not the Button.
For e.g. if the BackColor of a FileUpload control is set to blue, then
only the TextBox color changes to blue but the BackColor of the Button
doesn't change to blue. Or if the Font-Size of a FileUpload control is
set to 15pt, then only the size of the...
|
by: nicknack |
last post by:
Hello.
I would like to give my user the option to browse his files (like the
simple fileUpload control do) and after selecting the file (and when
the fileUpload control hold in his text box the full path and file
name) I want to press another button and get the path+file name as a
string.
I want to do this with out actually upload the file. I use the
fileupload just for his browsing option.
|
by: rh00667 |
last post by:
hi all,
i'm confused now. how i can get the full path of an application?
if myapp is in a directory which belongs to PATH, argv gives me the
first token of cmd line, and not the real path of the executed
program.
so if i write anywhere:
|
|
by: =?Utf-8?B?QmVydA==?= |
last post by:
Hi
How can you set the filename property in the asp:fileupload control? How can
you persist the value of the chosen filename between postbacks?
thanks
B
|
by: vital |
last post by:
Hi,
I have a User control which has a fileupload control. With the
requirements I placed the user control in a UpdatePanel of ASP.NET
Ajax and the fileupload.postedfile.filename giving error.
I read some articles that Ajax is not compatible with fileupload. I
want to know the solution or workaround for this.
Thanks
|
by: Fresno Bob |
last post by:
I know this has been addressed sortof. It's using the update panel with the
fileupload control. I get how to use a postback trigger to do a full
postbask. However my page has some server side validation. I would like to
partial update until the validation is sucessful and then do a full
postback. Is this possible. I have tried dynamically adding a control via
the RegisterPostBackControl when the validation is successful but I have to...
|
by: =?Utf-8?B?bXVzb3NkZXY=?= |
last post by:
Hi guys
This is a repost as I haven't managed to fix the problem yet. I really hope
someone can help as I'm stuck.
I have an asp:fileupload component on a page, and it's giving the following
security exception...
ERROR: Request for the permission of type
'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0,
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|