Hi,

How can I put my ASP.NET calculator into my dreamweaver page?

Thanks!!

Dani AI

Generated

A practical summary for embedding an ASP.NET calculator into a Dreamweaver-managed site. asked how to do this and correctly flagged that the available workflow depends on your Dreamweaver build and on where the pages will run. Pick one of these approaches based on your toolchain and hosting.

  • Edit and serve it as ASP.NET (when Dreamweaver supports the server model):

    • Create a site with the server model set to ASP.NET and save pages as .aspx.
    • Put markup and either inline server code (<script runat="server">) or use code-behind; code-behind must be compiled/published by Visual Studio or your build process.
    • Upload to Windows hosting that has the correct .NET runtime. Dreamweaver can edit markup but will not compile or debug server code.
  • Keep the calculator as a separate ASP.NET app and embed or link to it:

    • Build/publish the ASP.NET application (Visual Studio makes this straightforward).
    • Host it on a Windows server and include it in your Dreamweaver pages via a normal hyperlink or an <iframe> (beware of styling and cross-domain restrictions).
  • Convert the logic to client-side JavaScript (fastest, no server required):

    • Reimplement calculation logic in JS and include it in your HTML pages edited in Dreamweaver.
    • Minimal example:
    function calculate(a,b,op){
      a = parseFloat(a)||0;
      b = parseFloat(b)||0;
      switch(op){
        case '+': return a+b;
        case '-': return a-b;
        case '*': return a*b;
        case '/': return b===0 ? 'NaN' : a/b;
        default: return 0;
      }
    }

Checklist and cautions: keep the .aspx extension for server pages; host must support the target .NET version; client-side ports need server-side validation only if results affect server state; use Visual Studio for compiling and debugging server code.

Recommended Answers

All 2 Replies

Hi,

How can I put my ASP.NET calculator into my dreamweaver page?

Thanks!!

bump

Hi,

How can I put my ASP.NET calculator into my dreamweaver page?

Thanks!!

What version of DreamWeaver are you using? CS4 no longer supports ASP.NET but CS3 does.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.