473,404 Members | 2,114 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,404 software developers and data experts.

How to Implement a Browse Button in asp.net WebApplication

Hi all,

This is all about ASP.NET WEB APPLICATION...

I have a Button and when i click that button... i need to open the File
Dialog through Which i have to select the Image Path...

And When i press the OK Button of the File Dialog ..... i have to get
the File name selected and set it as TextBox Text and also Show Image
Preview...

Is it possible to implement Browse button in ASP.NET WEB
APPLICATION........

I have used

<input type:file> for selecting the Image Path but could not get the
File Path and Show the PReview Display from it....

Can any One Please help me How to solve this...

Its Urgent.........
PLZ REPLY

Thanks in Advance...

Sanjay.C

Jun 1 '06 #1
2 4834
AFAIK you can't. Though you could perhaps tweak security I believe that
starting with SP2, a web page can't access all local resources even if this
could be considered safe (such as having a src attribute that points to a
local file).

What have you trieed that doesn't work ? (My first thought would be to set
the src attribute of an img tag to the selected file but I believe it won't
work if the file is local, an easy solution if small files would be to
upload the file to the server so that the resource is not local any more).

--
Patrice

<co*******@gmail.com> a écrit dans le message de news:
11**********************@i39g2000cwa.googlegroups. com...
Hi all,

This is all about ASP.NET WEB APPLICATION...

I have a Button and when i click that button... i need to open the File
Dialog through Which i have to select the Image Path...

And When i press the OK Button of the File Dialog ..... i have to get
the File name selected and set it as TextBox Text and also Show Image
Preview...

Is it possible to implement Browse button in ASP.NET WEB
APPLICATION........

I have used

<input type:file> for selecting the Image Path but could not get the
File Path and Show the PReview Display from it....

Can any One Please help me How to solve this...

Its Urgent.........
PLZ REPLY

Thanks in Advance...

Sanjay.C

Jun 1 '06 #2
hi! this is amrit.
sameproblem washappening with me as i also develop applicationsin
asp.net using vb.net.
what you can do for this is you can place a hidden field on for the
html controls toolbox,
and then you have to load that URL in that hidden field bvefore loading
it to the image control.

then lateron, you can access that url.
But the problem that i was facing was that i have to load 5 pics at a
time and using 10 hidden fields in form is not a good practice.
take care
have a nice stay..
mr**********@rediffmial.com
mr**********@gmail.com

Jun 16 '06 #3

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

Similar topics

2
by: Ron Brennan | last post by:
Good afternoon. The entire task that I'm trying to achieve is to allow a user to browse and upload multiple files simultaneously, hiding the Browse button of <input> tags of type="file" and...
1
by: Chris Lasher | last post by:
Hello, I'm trying to write a tool to scrape through some of the Ribosomal Database Project II's (http://rdp.cme.msu.edu/) pages, specifically, through the Hierarchy Browser....
5
by: Fred | last post by:
Hi I am searching for a module, that would allow me to call files by using a 'browse' button. Is there any uniform module for browsing files, or is there a special module for *.txt files? Thanks...
5
by: Ron Brennan | last post by:
Good afternoon. The entire task that I'm trying to achieve is to allow a user to browse and upload multiple files simultaneously, hiding the Browse button of <input> tags of type="file" and...
3
by: oopaevah | last post by:
I want to have a separate button which invokes the "browse" button on an input type=file. In internet explorer the following code works ok, in firefox nothing happens. All I do is call click()...
9
by: Prakash Singh Bhakuni | last post by:
am replacing the default "Browse..." button for input type=file. This works fine except that the form will only submit after the SUBMIT button is clicked twice. Any ideas on why this is happening...
0
by: sreenulanka | last post by:
when i am clicking the browse button image not opened in my applet please help me. // browse button, generate browse event when it clicks if (e.getSource()==browse) { ...
4
by: developing | last post by:
Hi All, I have a browse button that the user can click to select a file. The button then fetches the file path. This is all working fine except my boss wants some add functionality. I need it to...
1
by: ipa | last post by:
Hello, I made one browse button in asp form to store files. Now i am facing the problem is when i am editing that asp form. In that i call browse button during edit.but during edit, that...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
Oralloy
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
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...

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.