Help - Search - Members - Calendar
Full Version: Communicate ASP.NET page c#?
Skype Community > English > Development, Betas and Skype Garage > Skype Public API
Khurram Shahzad
Dear All,

I integrated (skype API) it through the winform (desktop) using c# 2.0 and it working fine.

Now i'm building an application using asp.net c# through which I want to place a call through ASP.net Page i.e Click button and passing PSTN contact no to skype through UI asp.net .but how can I communicate (Passing Parameter contact phone number) through skype through asp.net 2.0. Basically we interested to make PSTN call through asp.net page and gateway used skype.

i will highly appreciate if any one help me regarding this.
Eric
QUOTE(Khurram Shahzad @ Thu Aug 24 2006, 16:25) [snapback]290725[/snapback]

Dear All,

I integrated (skype API) it through the winform (desktop) using c# 2.0 and it working fine.

Now i'm building an application using asp.net c# through which I want to place a call through ASP.net Page i.e Click button and passing PSTN contact no to skype through UI asp.net .but how can I communicate (Passing Parameter contact phone number) through skype through asp.net 2.0. Basically we interested to make PSTN call through asp.net page and gateway used skype.

i will highly appreciate if any one help me regarding this.


Hi Khurram,

Here is a code sample (see attachment) of the usage of Skype functionalitty on a Asp.Net 2.0 webpage:

Introduction
This sample shows how to use Skype© features in your Asp.Net 2.0 Website.Based upon the SkypeName and Standard Phone Nr you type into the appropiate fields.Six LinkButtons are populated with the strings Skype needs in a Website to do the basic actions which are:

1. Make a Skype Call via Skype

2. Request Contact Info

3. Start a Chat

4. Send a File via Skype

4. Add a Contact 5. Make a Skype Out Call

This sample is easy to use dynamicaly when you store the SkypeName and Phone Nr in a database and present these values in your website, with for example an DetailControl that you load with a DataSource. When you set the SkypeName and Phone Nr as DataKey's for the DetailControl you can use the values they hold at runtime for populating the strings (Skype Name & Phone Nr).

Background
I needed Skype in my website and found out that when a new user subscribed i had two options:

1. Ask the Skype Name and create the strings at that moment and store them in my database, but then i had to set ValidateRequest = "false" in my Code, otherwise an Error would happen due to the skype string i was submitting to my database,this problem was the same for Update page, and i needed different strings for each action

2. Do it at Runtime and store only the Skype Name, with the ValidateRequest functioning.

So it seemed a better idea to do it at Runtime.

Using the code
Open the Code with Visual Studio 2005 (Under File, Open, Website) and it should work when you hit F5, otherwise have a look at the code or send a question to me.

SkypeSample code is updated

Points of Interest
I used the ActiveS Wrapper from ChaosLabs in my Webpage but the usage was not intended for the web (it worked on my local Machine), but i wanted to use Skype on my website so i had to find out how.



With friendly greetings,


Eric
Henate

Hi

I get a Syntax error on the page.

Do you have any idea where it comes from and have you solved it.

Row: 121
Character: 1
Code: 0
URL: http://localhost:2381/SkypeSample/Default.aspx


/Sven




QUOTE(Eric @ Mon Sep 11 2006, 15:42) [snapback]296715[/snapback]

Hi Khurram,

Here is a code sample (see attachment) of the usage of Skype functionalitty on a Asp.Net 2.0 webpage:

Introduction
This sample shows how to use Skype© features in your Asp.Net 2.0 Website.Based upon the SkypeName and Standard Phone Nr you type into the appropiate fields.Six LinkButtons are populated with the strings Skype needs in a Website to do the basic actions which are:

1. Make a Skype Call via Skype

2. Request Contact Info

3. Start a Chat

4. Send a File via Skype

4. Add a Contact 5. Make a Skype Out Call

This sample is easy to use dynamicaly when you store the SkypeName and Phone Nr in a database and present these values in your website, with for example an DetailControl that you load with a DataSource. When you set the SkypeName and Phone Nr as DataKey's for the DetailControl you can use the values they hold at runtime for populating the strings (Skype Name & Phone Nr).

Background
I needed Skype in my website and found out that when a new user subscribed i had two options:

1. Ask the Skype Name and create the strings at that moment and store them in my database, but then i had to set ValidateRequest = "false" in my Code, otherwise an Error would happen due to the skype string i was submitting to my database,this problem was the same for Update page, and i needed different strings for each action

2. Do it at Runtime and store only the Skype Name, with the ValidateRequest functioning.

So it seemed a better idea to do it at Runtime.

Using the code
Open the Code with Visual Studio 2005 (Under File, Open, Website) and it should work when you hit F5, otherwise have a look at the code or send a question to me.

SkypeSample code is updated

Points of Interest
I used the ActiveS Wrapper from ChaosLabs in my Webpage but the usage was not intended for the web (it worked on my local Machine), but i wanted to use Skype on my website so i had to find out how.
With friendly greetings,
Eric

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.