title: show an Image on Click of a LinkButton Control
body: <pre><code>How to show an image in ContentPlaceHolder4 on click of a Link Button which is placed on ContentPlaceHolder3.
  </code></pre>
  
  <p>I Have a Master Page and one content page. On master page i have a link INSTRUMENTS by clicking on which i am redirected to content page INSTRUMENTS. Now i have 10 LINK BUTTON controls on my Content Page and i want on the click of each link button corresponding image should open on same content page but in different CntentPlaceHolder. Please  guide me how to add code for Link Button Click and how to render iamge on click of Link Button.
  Following is the code i have added till now.</p>
  
  <pre><code>**This is My Master Page**
  
  
      &lt;%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;&lt;/title&gt;
     &lt;asp:ContentPlaceHolder id="head" runat="server"&gt;
  
      &lt;/asp:ContentPlaceHolder&gt; 
      &lt;style type="text/css"&gt;
          .style1
          {
          }
          .style2
          {
              width: 162px;
          }
      &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;div&gt; &lt;img src="IMAGES/main.png" style="background-color: #99FF99; border-top-color: #800000; width: 1082px; height: 105px;" /&gt;
      &lt;/div&gt;  &amp;nbsp;
      &lt;a href="HOME.aspx"&gt;HOME&lt;/a&gt;&amp;nbsp;&lt;a href="INSTRUMENTS.aspx"&gt;INSTRUMENTS&lt;/a&gt;&amp;nbsp;&lt;a href="LOGIN.aspx"&gt;LOGIN&lt;/a&gt;&amp;nbsp; 
  &amp;nbsp;&lt;a href="ADRESS.aspx"&gt;ADDRESS&lt;/a&gt;&amp;nbsp;
   &lt;table style="width: 100%; height: 288px; margin-top: 11px;"&gt;
          &lt;tr&gt;
              &lt;td bgcolor="#FF0066" align="center" class="style2" 
                  style="text-align: center; vertical-align: top;"&gt;
                  &lt;asp:ContentPlaceHolder ID="ContentPlaceHolder3" runat="server"&gt;
                  &lt;/asp:ContentPlaceHolder&gt;
              &lt;/td&gt;
              &lt;td bgcolor="#33CCCC" class="style1"&gt;
                  &lt;asp:ContentPlaceHolder ID="ContentPlaceHolder4" runat="server"&gt;
                  &lt;/asp:ContentPlaceHolder&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;/table&gt;
      &lt;/form&gt;
  
     &lt;/body&gt;
  &lt;/html&gt;
  
  **This is My Content Page**
  
      &lt;%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="INSTRUMENTS.aspx.cs" Inherits="INSTRUMENTS" %&gt;
  
   &lt;asp:Content id="content3" ContentPlaceHolderID="head" runat="server"&gt;
       &lt;link href="StyleSheet.css" rel="stylesheet" type="text/css" /&gt;
  
      &lt;/asp:Content&gt; 
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server"&gt;
  
      &lt;asp:LinkButton ID="LinkButton1" runat="server"  OnClick="lkbutton_click"&gt;Sitar&lt;/asp:LinkButton&gt;&lt;br /&gt;
      &lt;asp:LinkButton ID="LinkButton2" runat="server"&gt;Harmonium&lt;/asp:LinkButton&gt;
      &lt;br /&gt;
      &lt;asp:LinkButton ID="LinkButton3" runat="server"&gt;Tabla&lt;/asp:LinkButton&gt;
      &lt;br /&gt;
      &lt;asp:LinkButton ID="LinkButton4" runat="server"&gt;Drum&lt;/asp:LinkButton&gt;
      &lt;br /&gt;
      &lt;asp:LinkButton ID="LinkButton5" runat="server"&gt;Guitar&lt;/asp:LinkButton&gt;
      &lt;br /&gt;
      &lt;asp:LinkButton ID="LinkButton6" runat="server"&gt;Sarod&lt;/asp:LinkButton&gt;
      &lt;br /&gt;
      &lt;asp:LinkButton ID="LinkButton7" runat="server"&gt;Flute&lt;/asp:LinkButton&gt;
      &lt;br /&gt;
      &lt;asp:LinkButton ID="LinkButton8" runat="server"&gt;Santoor&lt;/asp:LinkButton&gt;
      &lt;br /&gt;
      &lt;asp:LinkButton ID="LinkButton9" runat="server" onclick="LinkButton9_Click"&gt;Keyboard&lt;/asp:LinkButton&gt;
      &lt;br /&gt;
      &lt;asp:LinkButton ID="LinkButton10" runat="server"&gt;LinkButton&lt;/asp:LinkButton&gt;
  
  
  &lt;/asp:Content&gt;
  &lt;asp:content ID ="C2" ContentPlaceHolderID ="ContentPlaceHolder4" runat="Server"&gt;
  &lt;asp:Image ID ="I1" ImageUrl ="~/IMAGES/F.png" &gt;
  
  &lt;asp:Image /&gt;
  
  &lt;/asp:content&gt;
  </code></pre>