show image
-
i need to show image when the user select path. ie, the file could be at any location. at the time of execution user can give any path in the textbox. and at the same time when selection is made by user in textbox the image immediately should show in the picture box. i use this code protected void Page_Load(object sender, EventArgs e) { Image1.ImageUrl = TextBox.Text; }
-
i need to show image when the user select path. ie, the file could be at any location. at the time of execution user can give any path in the textbox. and at the same time when selection is made by user in textbox the image immediately should show in the picture box. i use this code protected void Page_Load(object sender, EventArgs e) { Image1.ImageUrl = TextBox.Text; }
Looks like it should work. What is the problem ? You could even do this in javascript and not have to post back. Then it would in fact be 'immediate'
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Looks like it should work. What is the problem ? You could even do this in javascript and not have to post back. Then it would in fact be 'immediate'
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
Dear Christian, I have a doubt... Is it possible to open a image from any location...if yes, can you give some sample.
Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]
-
Dear Christian, I have a doubt... Is it possible to open a image from any location...if yes, can you give some sample.
Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]
I am not sure if a local path would work for a local user or not, but if it's an online location, I'd expect what you posted to work just fine.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
i need to show image when the user select path. ie, the file could be at any location. at the time of execution user can give any path in the textbox. and at the same time when selection is made by user in textbox the image immediately should show in the picture box. i use this code protected void Page_Load(object sender, EventArgs e) { Image1.ImageUrl = TextBox.Text; }
'Any path' means will the user select the path from his local PC? How does the user select the path, using a browser window? You can open a file open dialogbox using activex in javascript. But it will work in IE only. Also you cannot display images from a folder from the client PC. It should be available in the location of your web site.