Here is the form :-
See some unwanted lines is being displayed in this form. You can see the code above the design part.
I want your help in:-
1) what this codes means?
2) For what , we wrote this codes?.
Please modify the code and send back.
The whole code I am trying to implement is:-
C#
@{ var imagePath= "";
if( Request["photoChoice"] != null){
imagePath = @"images\" + Request["photoChoice"];
}
}
Display Image on the Fly
Displaying an Image On the Fly
method="post" action="">
I want to see:
name="photoChoice">
value="Photo1.jpg">Photo 1
value="Photo2.jpg">Photo 2
value="Photo3.jpg">Photo 3
type="submit" value="Submit" />
style="padding:10px;">
@if(imagePath != ""){
src="@imagePath" alt="Sample Image" width="300px" />
}

Iftikar HussainRank #423 · 5.9K reputationPosted Aug 16, 2013, 9:23 PM EDT
You should set image by using javascript like below
Regards,
Iftikar
Bineesh ViswanathRank #1,681 · 907 reputationPosted Aug 16, 2013, 9:43 PM EDT
The output is :-
In order to add Images, I created a folder in the root directory called "Images".
Here the complete code. How can I add Images by modify this code?
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DynamicImage.aspx.cs" Inherits="ImageControls.DynamicImage" %>
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 16, 2013, 9:51 PM EDT
in your aspx
in your code
Regards,
Iftikar