.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Sharon Maxwell
Post New Web Links

How do I do this?

Posted By:      Posted Date: October 21, 2010    Points: 0   Category :ASP.Net
 

When I try this I get an error message that the Response.--- type isn't supported. That this cs file has got nothing to do with HTML.

I think I need to make it so that I am in a Page_load method, but that I want to be sure that this cannot work this way. The cs file needs to be linked to a html page. I thought via the Page.cshtml file.


default.cshtml

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title></title>
    </head>
    <body>
        <img src=@Href("Page.cshtml") />
    </body>
</html>

Page.cshtml

@using System.Drawing;

@{
    var picture = new ProduceImageFile(1.0f, 1.0f, 1.0f, 100);
}

ProduceImageFile.cs

    public ProduceImageFile(float zoomIN, float startReIN, float startImIN, int startColorIN)
    {
        zoom = zoomIN;
        startRe = startReIN;
       


View Complete Post


More Related Resource Links

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend