Hi,
How can I put my ASP.NET calculator into my dreamweaver page?
Thanks!!
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):
.aspx.<script runat="server">) or use code-behind; code-behind must be compiled/published by Visual Studio or your build process.Keep the calculator as a separate ASP.NET app and embed or link to it:
<iframe> (beware of styling and cross-domain restrictions).Convert the logic to client-side JavaScript (fastest, no server required):
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.
Jump to Post— dsweb1017 0Hi,
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.
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.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.