C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

img src as .aspx page


Posted Date: 10 Oct 2008      Posted By: Ravi Kiran Nedunuri      Member Level: Gold     Points: 1   Responses: 3



can you specify another aspx location for an img source? How do you handle the size of the image and such.

Thanks in Advance
N.RaviKiran





Responses

Author: D.Jeya kumar(JK)    10 Oct 2008Member Level: DiamondRating: 2 out of 52 out of 5     Points: 4

Hi,

No,you cannot use the image source as aspx it is to display the image in that control. Use the hyperlink to refer to the aspx or other pages. for what you need to refer the aspx file there?.

save the aspx file as image file and then refer the image file

Regards
JK



Author: Ravisanker    10 Oct 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 4

u can use a <iframe> in the SRC="" call a aspx file or ashx file cal the image in that page and resize using

System.Drawing.Image imageLogo
System.Drawing.Image thumbnailimageLogo;
thumbnailimageLogo = imageLogo.GetThumbnailImage(100, 100, null, new System.IntPtr());
thumbnailimageLogo .Save(mstreamWebLogo, imageWebLogo.RawFormat);

hope this helps



Author: Manindra Upadhyay    10 Oct 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 3

No, It is not possible to set image source as a .aspx page .
you can set image height and width by using .
<img src="image.aspx" height="200" width="200"/>



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : javascript
Previous : Css files
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use