TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kavi suja
NA
298
171.7k
FileUpload - ImageButton - FilePath on ImageButton
Jul 8 2013 3:20 AM
Hi,
I use Imagebutton as FileUpload Control using the following code.When i click on image,the popup for choosing file from local system will be shown.
<head runat="server">
<title></title>
<script type="text/javascript">
function chooseFile() {
document.getElementById("FileUpload1").click();
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<div style="height: 0px; overflow: hidden">
<asp:FileUpload ID="FileUpload1" runat="server" />
</div>
<asp:ImageButton ID="ImageButton1" runat="server" OnClientClick="chooseFile();" ImageUrl="btnlogin.png" />
</div>
</form>
</body>
</html>
Now I want to display the path of the selected file on imageButton after the file selected.Can anyone help me to do this?
Reply
Answers (
6
)
combobox Selected Item to be display in DatagridView
Retrive Image from Database