Click here to Skip to main content
15,885,365 members
Home / Discussions / C#
   

C#

 
AnswerRe: show custom control in aspx page Pin
Vimalsoft(Pty) Ltd30-Jun-09 1:37
professionalVimalsoft(Pty) Ltd30-Jun-09 1:37 
GeneralRe: show custom control in aspx page Pin
Pankaj Saha30-Jun-09 1:53
Pankaj Saha30-Jun-09 1:53 
QuestionConnect C# win app and ASP.Net/C# website using HttpRequests? Pin
Mtyb30-Jun-09 1:19
Mtyb30-Jun-09 1:19 
AnswerRe: Connect C# win app and ASP.Net/C# website using HttpRequests? [modified] Pin
Vimalsoft(Pty) Ltd30-Jun-09 2:15
professionalVimalsoft(Pty) Ltd30-Jun-09 2:15 
GeneralRe: Connect C# win app and ASP.Net/C# website using HttpRequests? Pin
Mtyb30-Jun-09 2:47
Mtyb30-Jun-09 2:47 
GeneralRe: Connect C# win app and ASP.Net/C# website using HttpRequests? Pin
Vimalsoft(Pty) Ltd30-Jun-09 2:52
professionalVimalsoft(Pty) Ltd30-Jun-09 2:52 
GeneralRe: Connect C# win app and ASP.Net/C# website using HttpRequests? Pin
Mtyb30-Jun-09 2:59
Mtyb30-Jun-09 2:59 
GeneralRe: Connect C# win app and ASP.Net/C# website using HttpRequests? Pin
Vimalsoft(Pty) Ltd30-Jun-09 3:12
professionalVimalsoft(Pty) Ltd30-Jun-09 3:12 
Its Easy as you said you have a Web Application. in your Web Application Add a New project(Web Service).

You will find it has code like this

using System;
using System.Data;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.ComponentModel;

namespace WebService1
{
    /// <summary>
    /// Summary description for Service1
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    public class Service1 : System.Web.Services.WebService
    {

        [WebMethod]
        public string HelloWorld()
        {
            return "Hello World";
        }
    }
}



as you can see there is example Function,

now change it to your needs , now this will be on your Web Application build it and make sure it has no Errors , in your Windows Application go to your References and right click and Add web Reference and Browse to your Web service, if you are doing this locally it will automatically show a list of web services that you created. choose one and in your Windows Appliction you will access the Web function as a Function that is created locally.


Hope this Helps

Vuyiswa Maseko,

Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

GeneralRe: Connect C# win app and ASP.Net/C# website using HttpRequests? Pin
Mtyb30-Jun-09 3:32
Mtyb30-Jun-09 3:32 
GeneralRe: Connect C# win app and ASP.Net/C# website using HttpRequests? Pin
Vimalsoft(Pty) Ltd30-Jun-09 3:35
professionalVimalsoft(Pty) Ltd30-Jun-09 3:35 
QuestionHow to Add file to the folder only if the file doesnt exist Pin
Krishna Aditya30-Jun-09 1:09
Krishna Aditya30-Jun-09 1:09 
AnswerRe: How to Add file to the folder only if the file doesnt exist Pin
musefan30-Jun-09 2:23
musefan30-Jun-09 2:23 
GeneralADO.NET.... Pin
Isaac Gordon30-Jun-09 0:29
Isaac Gordon30-Jun-09 0:29 
GeneralRe: ADO.NET.... Pin
Pete O'Hanlon30-Jun-09 0:41
mvePete O'Hanlon30-Jun-09 0:41 
GeneralRe: ADO.NET.... Pin
Manas Bhardwaj30-Jun-09 0:44
professionalManas Bhardwaj30-Jun-09 0:44 
GeneralRe: ADO.NET.... Pin
Svetlin Panayotov30-Jun-09 0:50
Svetlin Panayotov30-Jun-09 0:50 
GeneralRe: ADO.NET.... Pin
Vimalsoft(Pty) Ltd30-Jun-09 1:41
professionalVimalsoft(Pty) Ltd30-Jun-09 1:41 
GeneralRe: ADO.NET.... Pin
dan!sh 30-Jun-09 1:51
professional dan!sh 30-Jun-09 1:51 
GeneralRe: ADO.NET.... Pin
PIEBALDconsult30-Jun-09 19:02
mvePIEBALDconsult30-Jun-09 19:02 
QuestionHow to change Web Service url dynamically when it's referenced in a class library (dll) ? Pin
shaul-y29-Jun-09 23:56
shaul-y29-Jun-09 23:56 
AnswerRe: How to change Web Service url dynamically when it's referenced in a class library (dll) ? Pin
Pete O'Hanlon30-Jun-09 0:35
mvePete O'Hanlon30-Jun-09 0:35 
GeneralThanks but this solution is not relevant for my scenario... Pin
shaul-y30-Jun-09 1:12
shaul-y30-Jun-09 1:12 
GeneralRe: Thanks but this solution is not relevant for my scenario... Pin
Pete O'Hanlon30-Jun-09 1:17
mvePete O'Hanlon30-Jun-09 1:17 
GeneralRe: Thanks but this solution is not relevant for my scenario... Pin
shaul-y30-Jun-09 3:08
shaul-y30-Jun-09 3:08 
Questionis there anyway to know default icon or user specified icon showing in the form currently Pin
mutpan29-Jun-09 23:42
mutpan29-Jun-09 23:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.