C Cor Ligthert [MVP] Aug 16, 2005 #2 Samantha, I create a function in dotnet. How can I call it in a Html page ? Click to expand... Using a button, however than on an ASPX page. I hope this helps, Cor
Samantha, I create a function in dotnet. How can I call it in a Html page ? Click to expand... Using a button, however than on an ASPX page. I hope this helps, Cor
G Guest Aug 16, 2005 #3 Thank you for your answer. However, I want to import the function in a simple html page ( not asp or aspx ) ? I want to load the function when the html page opens (onload), how can I launch the function / what is the syntax to import it ? ( javascript or vbscript )
Thank you for your answer. However, I want to import the function in a simple html page ( not asp or aspx ) ? I want to load the function when the html page opens (onload), how can I launch the function / what is the syntax to import it ? ( javascript or vbscript )
J John Timney \(ASP.NET MVP\) Aug 17, 2005 #4 Asp.net runs server side and outputs html, html is a client side presentation mechanism and any dynamic action therefore really needs javascript - thats done using something called registerstartupscript http://msdn.microsoft.com/library/d...mWebUIPageClassRegisterStartupScriptTopic.asp. You might want to also read up on ajax, or flash or something like the asp2 callbacks to make html make use of server functions from within html. http://west-wind.com/weblog/posts/2302.aspx -- Regards John Timney ASP.NET MVP Microsoft Regional Director
Asp.net runs server side and outputs html, html is a client side presentation mechanism and any dynamic action therefore really needs javascript - thats done using something called registerstartupscript http://msdn.microsoft.com/library/d...mWebUIPageClassRegisterStartupScriptTopic.asp. You might want to also read up on ajax, or flash or something like the asp2 callbacks to make html make use of server functions from within html. http://west-wind.com/weblog/posts/2302.aspx -- Regards John Timney ASP.NET MVP Microsoft Regional Director