asp.net - Display an image on webform2 upon click of button from webform1 -


- making webform1 displays list of car names.  - each car has corresponding button directs webform2 image of    corresponding car displayed.  - storing image of each car in folder in project.  

what algorithm or code should put on button load different image based on corresponding car name clicked on.

you this:

child form

public string carsource{ get; set; }  public testform() {     initializecomponent(); }  public void updatevalues() {     image.source = carsource; } 

initiate it

var child = new testform {carsource = sometextbox.text};  child.updatevalues();  child.showdialog(); 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -