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?
View 1 Replies
Similar Messages:
Mar 16, 2010
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.
The reason why I ask this is because I understand that some of the codes are executed by the browser such as Javascript. So, if there are such scripts which are handled by the client browser, how can one find out that it is the Client side scripting which is running at that moment.
View 1 Replies
Mar 16, 2011
but I am rather confused about what to invest in. I heard that server-side code translates into client-side code. So, if you have an .aspx file, it will be converted to HTML/CSS/JavaScript. I have experience with the latter three technologies put into a rather dull text file and rendered by a web browser. My question is how much HTML/CSS/Javascript coding would I have to do when server-side programming? In other words, can someone using ASP.NET program purely on the server side and not bother to write for the client side? Of course, I don't care about server-side being translated into client-side, but I am wondering if client-side programming needs to be done explicitly and to what degree.
View 4 Replies
Aug 9, 2010
cookies are generated from the client scripting.e.g. document.cookie = city=NYC;
I want to update this from GUI using
Response.cookies["city"] = LA;
I could not understand why this is not possible.( I read about Httponly and all that stuff but still not clear).If I use Javascript in code behind page then I am able to change the value.e.g.
Literal ltMsgUpdate = new Literal();
ltMsgUpdate.Text = "<script type='text/javascript'>document.cookie = 'city=LA';" + "</script>";
Page.Controls.Add(ltMsgUpdate);
But I could not use this type of code because there is response.redirect statement in the function where I am updating cookie using (response.cookie) and that's why the javascript code never runs.
Bottomline: I want to update cookies in code behind page which is generated in client scripting.
View 4 Replies
Dec 14, 2010
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?
View 2 Replies
Jun 13, 2010
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?
View 1 Replies
Apr 22, 2010
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
View 3 Replies
Apr 21, 2010
How could i call a javascript function in server side. I have to call the javascript function on the click of a linkbutton which inside a repeater control.
View 5 Replies
Jun 28, 2010
<asp:RadioButtonList ID="rbEmployeeGroup" runat="server" RepeatDirection="Horizontal"
AutoPostBack="true" OnSelectedIndexChanged=" [Call java script to check first] then rbEmployeeGroup_SelectedIndexChanged">
<asp:ListItem Selected="True" Text="Employees" Value="employees"></asp:ListItem>
<asp:ListItem Text="Groups" Value="groups"></asp:ListItem>
</asp:RadioButtonList>
How to call the javascript function before call bEmployeeGroup_SelectedIndexChanged this code behind function?
View 2 Replies
Jul 16, 2010
I am using VS2010 and .NET4 for a web app. I have a script manager/update panel that has a couple of grids.
The client just leaves the page opens and views an updated grid every 30 seconds or so.
I want to refresh the grid by calling the server side method to load the grid, but not load the whol page using meta refresh or similar (too much screen flicker and unnecessary bandwith).
Is it possible to set some timer using javascript or something and call a specific server method to refresh controls?
View 3 Replies
Jan 18, 2011
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.
View 5 Replies
Dec 22, 2010
I have this proxy code taken from this article and created as an HttpHandler
public void ProcessRequest(HttpContext context)
{
string url = context.Request["url"];
[code]...
View 1 Replies
Aug 7, 2010
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?
View 2 Replies
Jun 14, 2010
I want to enable comment posting on my page, so i need to execute some html encoding before post is sent and inserted into a database. What is the ideal side for this? Sever side(I work with asp.net) or client side (javascript)?
View 4 Replies
Jan 10, 2010
I Getting A Problem In DataGrid's ItemDataBound Event. I Am Calling A JavaScript Function In DataGrid's ItemDataBound Which Retrun The CellIndex And RowIndex Number On Which UserClick After That I Am Re-Binding The DataGrid With jQuery Function After That ItemDataBound Event Not Working. I Want To Call The Same Function Again. Is Their Any Method To Call A Server-Side Function On ItemDataBound Event Except Client-Side Function..
View 4 Replies
Feb 15, 2013
How to call server side method from. js?
View 2 Replies
Nov 12, 2010
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?
View 2 Replies
Jul 3, 2010
How to call JavaScript function from server side
View 2 Replies
Jun 15, 2010
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.
[WebInvoke(Method = "POST",
BodyStyle = WebMessageBodyStyle.Wrapped,
ResponseFormat = WebMessageFormat.Json,
RequestFormat= WebMessageFormat.Json) ]
How do I have a WCF service that can be called both from the server-side and client side (jQuery/ajax)?
Or put another way, this may be incorrectly worded, can an endpoint have multiple bindings?
View 1 Replies
Apr 3, 2010
How to call a method on a server side from JSON. Below is the code I am using
SERVER SIDE:
[Code]....
Now I want that on button click, I would call the function at the client side [JSON], which pass the textbox value to the function.
View 2 Replies
May 3, 2010
I need to call a c# server method through the javascript. I have a gridview in which i have a column with dropdown list. When i change the dropdown's value i need to call a server side method through javascript and change the value of another text box in the gridview.
I am able to do this on the selected index change. but i am slightly worried about the performance.
i am using asp.net c#.
View 2 Replies
May 19, 2010
I have a function in Code Behind, Can any one let me know "How would I call this function using javascript"?
View 4 Replies
Jan 21, 2010
how can i call client side javascript from server side method (c#)
View 6 Replies
May 8, 2010
i would like to call a jquery dialog box (so html, css,javascript ) via asp.net Server Side event. Is it possible ?
View 1 Replies
Feb 24, 2011
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.
View 2 Replies