Click here to Skip to main content
15,900,429 members

Comments by Mary Abraham (Top 27 by date)

Mary Abraham 17-Apr-14 9:16am View    
Sorry I did not notice thank you so much
Mary Abraham 16-Apr-14 21:14pm View    
Thanks will do.
Mary Abraham 16-Apr-14 21:13pm View    
Hi I am asking how to find 03/06/2009 using regular expression using javascript
Mary Abraham 27-Jan-14 10:45am View    
Hi

can you help me in creating aspx page www.davidloo.com is windows application
I am able to create windows application but dont know how to create the same in aspx
because dont know what we can use instead of picture box control in asp.net
Mary Abraham 24-Jan-14 15:39pm View    
Hi I go the page count working but I dont know how to retrive page by page by clicking the button

my ashx page is

namespace WebApplication1
{
///
/// Summary description for Handler1
///

public class Handler1 : IHttpHandler
{


public void ProcessRequest(HttpContext context)
{
string path = context.Server.MapPath("~/image/045237302.tif");
Image img = Image.FromFile(path);



int count = img.GetFrameCount(FrameDimension.Page);
for (int idx = 0; idx < count; idx++);
MemoryStream byteStream = new MemoryStream();

//images.Add(Image.FromStream(byteStream));


img.Save(context.Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
context.Response.ContentType = "image/tif";

}

public bool IsReusable
{
get
{
return false;
}
}
}
}

My Default aspx page is

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Untitled Page</title>
<script runat="server">


protected void Button1_Click(object sender, EventArgs e)


{
//if (!IsPostBack){
Image img = new Image();
img.ImageUrl = "Handler1.ashx";
Page.Form.Controls.Add(img);
}


</script>

</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Display Tiff file" OnClick="Button1_Click"/>
<asp:Image ID="Image1" width="443px" Height ="380px" ImageUrl="~/Handler1.ashx"
runat="server" Visible="False" />
</div>
<asp:Button ID="Button2" runat="server" Text="Display next page" OnClick="Button1_Click" />
</form>
</body>
</html>

I dont know how to retrive pages by clicking the button it is only loading the first page but I got the count working.