|
-
Mar 26th, 2008, 01:13 AM
#1
Thread Starter
Lively Member
[RESOLVED] HtmlGenericControl help please.
Hi all,
This should be so easy but for some reason I just cant get my head around it. I'm using asp.net 2005 to create a page that displays images.
The images display perfectly, but when I try to display only a portion or part of the images (like a preview mode) I start getting problems.
The source code I'm using is as follows:
Source Code:
Dim mydiv As New System.Web.UI.HtmlControls.HtmlGenericControl
mydiv = New System.Web.UI.HtmlControls.HtmlGenericControl("div id=" & Chr(34) & MyImageCell.ID & "Holder" & Chr(34) & " style=" & Chr(34) & "position: absolute; top:112; left:480; clip : rect(0px, 450px, " & CLng(TXTImagePreviewSize.Text) & "px, 0px)" & Chr(34) & ">" & vbNewLine & "<img src=" & Chr(34) & MyImagePath & MyImage & Chr(34) & ">" & vbNewLine & "</div")
Panel2.Controls.Add(mydiv)
What am I doing wrong? Any ideas?
Thankx in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|