hi i finally acheived to resize the image but its opening in new
window can any one help me to pop the the greeting(with flash effect)
when user click on it.
here is my code
if (!IsPostBack)
{
DirectoryInfo di = new DirectoryInfo(Server.MapPath("~/bio"));
int i = 0;
foreach (FileInfo fi in di.GetFiles())
{
HtmlInputImage ib = new HtmlInputImage();
ib.ID = "ImageButton" + i;
i++;
ib.Src = "../vsjayanthi/bio/" + fi.Name;
ib.Attributes.Add("onclick", "javascript:window.open('" +
"../vsjayanthi/bio/" + fi.Name + "');return false;");
ib.Attributes.Add("height", "100px");
ib.Attributes.Add("class","style17");
PlaceHolder1.Controls.Add(ib);
Literal lit1 = new Literal();
lit1.Text = "<br/>";
PlaceHolder1.Controls.Add(lit1);
}
}
On Nov 18, 5:34 pm, Glenn <[EMAIL PROTECTED]> wrote:
> Are you using CSS? You may be able to control the size that way through the
> use of the Style property. (Perhaps one of our .NET/CSS experts can
> comment!)
>
> ...Glenn
>
>
>
> On Mon, Nov 17, 2008 at 11:34 PM, nag <[EMAIL PROTECTED]> wrote:
>
> > yes i tried ib.height nd ib.width following errors came
> > CS0117: 'System.Web.UI.HtmlControls.HtmlInputImage' does not contain a
> > definition for 'Height'- Hide quoted text -
>
> - Show quoted text -