Sunday, 21 October 2012

Image Fetch - ASP.NET



here the code below(.aspx)


<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<script runat="server">

    protected void Button6_Click(object sender, EventArgs e)
    {
        Image1.ImageUrl = "~//p1/i1.jpg";
    }
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <br />
&nbsp;&nbsp;&nbsp;
        <br />
&nbsp;&nbsp;&nbsp;
        <asp:Image ID="Image1" runat="server" Height="200px" Width="200px" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button6" runat="server" onclick="Button6_Click" 
            Text="Show Image" />
        
    
    </div>
    </form>
</body>
</html>

2 comments:

  1. Actually its a sample of code to mentioning a picture in any .aspx webpage. You can call this post as a example of Image Toobox

    ReplyDelete
  2. FOR IMAGE FETCHING ITS BETTER TO USE FLASH(*.swf) FILE. IT LOOKS MUCH IMPRESSIVE

    ReplyDelete

Tech N Science © 2013