Call C# Or C++ From Html Pages For Server Side Scripting / Programming On Localhost?
Sep 25, 2010
I am running Aprelium Abyss Web Server from my home computer and I have a plain old normal website. You know how you can have separate PHP files, and then call the functions inside of then within the HTML page using the onclick="" of a button? Well, I have a C# and C++ program on my computer (where the server is located), and would like to know if I can somehow send a command from my html page to my C# or C++ program which will then execute a function, and return a result. Here's a scenario: User visits [URL] User clicks the 'Create some files' button on the webpage Webpage sends command to C# application on my computer/webserver C# application creates a bunch of empty files C# application sends back filenames of the generated files to the webpage the webpage then displays a list of the filenames that were generated byb the C# application. Can somebody please guide me in the right direction?
We have a GUI which runs on ASP.NET 2.0 framework (Client-Server model). From the support perspective how can one find whether the pages which are opening on GUI at any point of time is a server side scripting or Client side scripting.
ASP.NET server controls has a few categories, for example, normal ones e.g. TextBox, Button which can be done in HTML/JS; Validation controls: can be done in JS; Login controls: I have seen them implemented in JS. Data bound controls: not sure, but maybe JS can work directly with databases, implementing controls like photo slider. So in the time span of next 5-10 years, will server-side web programming model fall out of mainstream and be replaced by JS/Ajax that interacts directly with databases?
Company I work for have a site developed 6-8 years ago by a team that was enthusiastic enough to use their own private PHP-based CMS. I have to put dynamic data from one intranet company database on this site in one week: 2-3 pages. I contacted company site administrator and she showed me administrative part - CMS allows only to insert html blocks & manage site map (site is deployed on machine that is inside company & fully accessible & upgradeable).
I'm not a PHP-guy & I don't want to dive into legacy hardly-who-ever-heard-about CMS engine I also don't want to contact developers team, 'cos I'm not sure they are still present and capable enough to extend this old days site and it'll take too much time anyway. I am about to deploy helper asp.net site on IIS with 2-3 pages required & refer helper site via iframe from present site. New pages will allow to download some dynamic content from present site also. Is it ok and what are the pitfalls with iframe approach?
I have hosted my project in the remote server. i pasted all the dlls & all the necessary files into inetpub->wwwroot ->httpdocs->(pasted all files). In the server we have .net framework 3.5 and IIS 6.0
Now I just want to check whether my files are running locally on the server. So I did the following. Just opened the IIS, made the httpdocs folder as a virtual directory. And then I clicked the httpdocs.It displayed all the files it has in the right side pane. Then I right clicked the default.aspx and then I clicked browse. Now the browser opened with the URL http://localhost/httpdocs/default.aspx. But I could not able to see the aspx page.It just shows "The page is not found"
But when I tried the same steps for opening a .html page it works fine (http://localhost/httpdocs/test.html) I can able to view the html pages.
Whether I need to configure anything on the IIS.... What should I do to view the .aspx files
I have a web page having asp.net button control and textbox. I want a confirm message box, when someone changes the content of textbox and click on button. If user click on yes then event of button should fire other wise nothing should happen. All I want is to implement AJAX call back, but it is not working with ASP.NET button control.
i can use escape() and unescape() functions by Client side easily, but the problem when i have use escape() method for peice of HTML , then i dont know how to unescape this piece of HTMl By Server Side not By Client Side. how i can unescape (escapped HTML) by server side?
I'm want to build web site in asp.net(because I know this language) in server side, and js (probably jquery) in client side, with Ajax technology. I heard that ASP.NET AJAX is too slow, if it's true (is it?) - what are the other options (to combine ASP.NET and Ajax) for me? Which tool combine all that technologies?
I have a simple WCF service that I call server side from code behind via a service reference. It's used for validation and works and was automatically setup by Visual Studio and is using SOAP I think because the binding is wsHttpBinding.
I want to use the same WCF service, but call it client side from jQuery using ajax(). I'm trying to implement it by way of these instructions.
But if I make the changes to get the client side call working, I have to add the decoration below which I think will break what works on the server side and also change the system.serviceModel section in web.config.
I am able to do this on the selected index change. but i am slightly worried about the performance.
n many websites I could see that when you click on a button for the first time you will get an update progress and then get the new data. Second time you click, it does not go to server side and shows the data from the client side. Eg : News section in yahoo.com. Like this, in some websites I could see onmouseover on a word or image they show you a hover menu type control with meaning of a word or some other details.