new to asp.net
-
I'm just starting to get into ASP.net, so forgive my noob-ness. Normally, I use straight C# for client apps. I have a little project I'm trying to start, but things aren't working right (even with VisualStudio). What I want to do is this: - a client C# app sends a string to an aspx page - the aspx page sends the string to a server-side C# file - the server-side cs file processes the string and sends back a string to the aspx file - the aspx file sends the processed string to the client C# app I have to have the server-side C# file because it won't let me use some Windows.Forms objects in just an aspx file. Where do I start at accomplishing this?
-Daniel Typing too fast fro my owngood
-
I'm just starting to get into ASP.net, so forgive my noob-ness. Normally, I use straight C# for client apps. I have a little project I'm trying to start, but things aren't working right (even with VisualStudio). What I want to do is this: - a client C# app sends a string to an aspx page - the aspx page sends the string to a server-side C# file - the server-side cs file processes the string and sends back a string to the aspx file - the aspx file sends the processed string to the client C# app I have to have the server-side C# file because it won't let me use some Windows.Forms objects in just an aspx file. Where do I start at accomplishing this?
-Daniel Typing too fast fro my owngood
I think you want to pass some string to the server and process it there and return to the client app ? If so no need to do like this. You can go for webservices. Create a webservice that accepts this string value. Do the processing inside the webservice method and return the answer.
Heritos Gger wrote:
the aspx page sends the string to a server-side C# file - the server-side cs file processes the string and sends back a string to the aspx file
When an aspx file is loaded, I think it will call cs file automatically. I am not getting what do you mean by sending string to a server side c# file ?
Navaneeth My Website
-
I think you want to pass some string to the server and process it there and return to the client app ? If so no need to do like this. You can go for webservices. Create a webservice that accepts this string value. Do the processing inside the webservice method and return the answer.
Heritos Gger wrote:
the aspx page sends the string to a server-side C# file - the server-side cs file processes the string and sends back a string to the aspx file
When an aspx file is loaded, I think it will call cs file automatically. I am not getting what do you mean by sending string to a server side c# file ?
Navaneeth My Website
When I use VisualStudio, I add a class to the website project. It adds a cs file to an App_Code folder (or something similar). You think I should use a webservice instead? I'll look into it. Thanks for the info! Basically, the client app should pass a string to the server, and the server should process it and return another string. That's basically it (and I don't know how to do it). The whole thing about an aspx file and a cs file is from what I was able to figure out by myself. If there's a better way, I'm more than willing to give it a try.
-Daniel Typing too fast fro my owngood