Hi,
I want to Set asp:fileupload Filename at runtime. When I try to do, it
shows "Readonly" error. Anyway to achieve this. 8 7229
I want to Set asp:fileupload Filename at runtime.
You can't for security reasons.
"bsm" <se************ *@saksoft.co.in wrote in message
news:11******** **************@ o5g2000hsb.goog legroups.com...
I want to Set asp:fileupload Filename at runtime. When I try to do, it
shows "Readonly" error. Anyway to achieve this.
Absolutely not, for fairly obvious security reasons!
Imagine a public website with a hidden FileUpload control which uploaded
people's accounts database, or their Windows password file...
-- http://www.markrae.net
It is a read-only property and is automatically set by the ASP.NET runtime
when the user posts back the page with uploaded file from the browser.
"bsm" wrote:
Hi,
I want to Set asp:fileupload Filename at runtime. When I try to do, it
shows "Readonly" error. Anyway to achieve this.
On May 2, 3:43 pm, "Mark Rae" <m...@markNOSPA Mrae.netwrote:
"bsm" <senthilmurug.. .@saksoft.co.in wrote in message
news:11******** **************@ o5g2000hsb.goog legroups.com...
I want to Set asp:fileupload Filename at runtime. When I try to do, it
shows "Readonly" error. Anyway to achieve this.
Absolutely not, for fairly obvious security reasons!
Imagine a public website with a hidden FileUpload control which uploaded
people's accounts database, or their Windows password file...
--http://www.markrae.net
Actually My requirement was-
I have a File Upload control and one DropDownControl . I set
AutoPostBack is true to my DDL. After choosing Filecontrol, if i
change DDL value. The filename has got reset. which our users don't
like this. Do u have any alternate?
"bsm" <se************ *@saksoft.co.in wrote in message
news:11******** **************@ l77g2000hsb.goo glegroups.com.. .
The filename has got reset.
That's right - the filename won't survive the postback...
Do u have any alternate?
No.
-- http://www.markrae.net
On May 2, 4:31 pm, "Mark Rae" <m...@markNOSPA Mrae.netwrote:
"bsm" <senthilmurug.. .@saksoft.co.in wrote in message
news:11******** **************@ l77g2000hsb.goo glegroups.com.. .
The filename has got reset.
That's right - the filename won't survive the postback...
Do u have any alternate?
No.
--http://www.markrae.net
Thanks for ur immediate support.
A FileUpload will not retain its' value between postbacks for security
reasons. Therefore, as long as the ListBox doesn't post back, you won't have
a problem.
--
HTH,
Kevin Spencer
Microsoft MVP
Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries: http://www.miradyne.net
"bsm" <se************ *@saksoft.co.in wrote in message
news:11******** **************@ l77g2000hsb.goo glegroups.com.. .
On May 2, 3:43 pm, "Mark Rae" <m...@markNOSPA Mrae.netwrote:
>"bsm" <senthilmurug.. .@saksoft.co.in wrote in message
news:11******* *************** @o5g2000hsb.goo glegroups.com.. .
I want to Set asp:fileupload Filename at runtime. When I try to do, it
shows "Readonly" error. Anyway to achieve this.
Absolutely not, for fairly obvious security reasons!
Imagine a public website with a hidden FileUpload control which uploaded people's accounts database, or their Windows password file...
--http://www.markrae.net
Actually My requirement was-
I have a File Upload control and one DropDownControl . I set
AutoPostBack is true to my DDL. After choosing Filecontrol, if i
change DDL value. The filename has got reset. which our users don't
like this. Do u have any alternate?
On May 3, 3:23 pm, "Kevin Spencer" <unclechut...@n othinks.comwrot e:
A FileUpload will not retain its' value between postbacks for security
reasons. Therefore, as long as the ListBox doesn't post back, you won't have
a problem.
--
HTH,
Kevin Spencer
Microsoft MVP
Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:http://www.miradyne.net
"bsm" <senthilmurug.. .@saksoft.co.in wrote in message
news:11******** **************@ l77g2000hsb.goo glegroups.com.. .
On May 2, 3:43 pm, "Mark Rae" <m...@markNOSPA Mrae.netwrote:
"bsm" <senthilmurug.. .@saksoft.co.in wrote in message
>news:11******* *************** @o5g2000hsb.goo glegroups.com.. .
I want to Set asp:fileupload Filename at runtime. When I try to do, it
shows "Readonly" error. Anyway to achieve this.
Absolutely not, for fairly obvious security reasons!
Imagine a public website with a hidden FileUpload control which uploaded
people's accounts database, or their Windows password file...
--http://www.markrae.net
Actually My requirement was-
I have a File Upload control and one DropDownControl . I set
AutoPostBack is true to my DDL. After choosing Filecontrol, if i
change DDL value. The filename has got reset. which our users don't
like this. Do u have any alternate?- Hide quoted text -
- Show quoted text -
Thanks for the information. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Uncle Ben |
last post by:
How strong and reliable is the new ASP.NET 2.0 FileUpload control? By that,
I mean is it reliable enough to accept 2-gigabyte file uploads per upload
session?
Also, is it possible or easy to implement an upload progress bar using this
FileUpload control?
Thanks.
|
by: Paolo |
last post by:
Hi to all,
I have an error that drove me crazy. Try the following page that should only
allow to upload a file:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
|
by: Harinath |
last post by:
Hi All,
I am working on a portal using .net2.0.
In one of my page, i have FileUpload control.
I am doing some server side validation for form fields in general. if
there is any validation missing control comes back to the user.
All other fields in the screens are retaining their values, but the
|
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...
|
by: Nathan Sokalski |
last post by:
I have an ASP.NET 2.0 webform which includes both a FileUpload contol and a
Calendar control. When the user selects a new data with the Calendar
control, the FileUpload control is reset (there is no longer a file selected
if one was previously selected). I am assuming this is because the Calendar
control causes a postback when a date is...
| |
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: Nathan Sokalski |
last post by:
I have a FileUpload control which is inside an UpdatePanel which is inside a
TabPanel. In my code, I use the FileUpload's HasFile and FileContent.Length
properties. However, after I select a file, the HasFile=False, and the
FileContent.Length=0. Why is this? Does it have something to do with the
TabPanel and UpdatePanel being AJAX? If so, what...
|
by: GaryDean |
last post by:
Is there any way to make an asp FileUpload control work within an
UpdatePanel?
Thanks,
Garyh
|
by: bharathreddy |
last post by:
How to format FileUpload control. As far as I am consurned there is no direct formating available for formating FileUpload Control using css.
I will share one of my ideas where I implemented this and working fine. I wanted to show the button in a formate which is common in an existing application and i had to create a new form where i need to...
|
by: bharathreddy |
last post by:
I am using updatepanel in my application and fileupload control...there is no way to customize the look and feel of the fileupload control so what i have done is kept an image on top of the browse button of the fileupload control.
And when the user clicks on the imagebutton which will be exactly like a browse button, i raise the fileupload...
|
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...
| |
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. ...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
| |
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.
| |