Sending TelNet Sockets?

Aug 23, 2010

How can i send TelNet sockets through aspx.cs code?like sending sockets through PuTTy...

View 2 Replies


Similar Messages:

How To Retrieve Html Source Code Using Telnet And JavaScript

Jan 7, 2011

I need to get the source of aspx page that is stored on my company's server, I don't have access to the server (Or any server - so server language not considered), I'm using HTA localy on my PC.I wrote this code: (JavaScript)var WshShell = new ActiveXObject("WScript.Shell")

WshShell.Run("telnet -fh:/telnetlog.txt xxx.xxx.xxx.com 80"); //The host address
setTimeout("WshShell.SendKeys('GET /subfolder/page.aspx HTTP/1.0~~')",1000);

View 2 Replies

VS 2010 - TCPListener Or Sockets Without Constantly Running Program?

Jan 14, 2012

I'm trying to make a Web Page in ASP.NET that functions like a TcpListener or a Socket so basically you could "connect" to other people accessing that Web Page.

It also can't be a constantly running program that's accepting clients and would crash if the program was closed.

Just wondering if this is possible and where to look.

View 1 Replies

Web Forms :: System.Net.Sockets.SocketException: A Connection Attempt Failed

Feb 14, 2011

I am using the codes sample from Peter through this link:http://www.eggheadcafe.com/articles/20030316.asp
to validate email address. I made some minor modification to validate user email address after the user have entered his or her email address as show below

string[] host = (address.Split('@'));
string hostname = host[1];
IPHostEntry IPhst =
Dns.Resolve(hostname);
IPEndPoint endPt =
new
IPEndPoint(IPhst.AddressList[0], 25);
Socket s =
new
Socket(endPt.AddressFamily,SocketType.Stream,
ProtocolType.Tcp);
s.Connect(endPt);

The last line of code s.Connect(endPt) generated the following error if the user email address is anything other than the company email address. I have try gmail, hotmail and they all generated the same error. Can the experts tell me how to get around the problem.

Here is the error:System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 64.4.20.174:25
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at MGHRadiologyAlert.IfaWebService.ValidateEmailAddress(String address) in

View 1 Replies

C# - Twitterizer 2.2 Sending / Stuck When It Gets To Sending The Tweet?

Jul 22, 2010

I am working on sending twitter updates from my asp.net website. I have the authorization down but I am stuck when it gets to sending the tweet here is my code behind:

protected void btnAuth_Click(object sender, EventArgs e)
{
// add these to web.config or your preferred location
var consumerKey = ConfigurationManager.AppSettings["consumerKey"];
var consumerSecret = ConfigurationManager.AppSettings["consumerSecret"];
//If User is not valid user
if (Request.QueryString["oauth_token"] == null)
{
//Step 1: Get Request Token
OAuthTokenResponse RequestToken = OAuthUtility.GetRequestToken(consumerKey,consumerSecret);
//Step 2: Redirect User to Requested Token
Response.Redirect("http://twitter.com/oauth/authorize?oauth_token="+ RequestToken.Token);
}
else
{
//For Valid User
string Oauth_Token = Request.QueryString["oauth_token"].ToString();
var accessToken = OAuthUtility.GetAccessToken(consumerKey, consumerSecret, Oauth_Token, txtPIN.Text.Trim());
lblMessage.Text = "<b>Hello " + accessToken.ScreenName + ", Welcome to my Twitter App<b>";
lblMessage.Text += "<br/> Token: " + accessToken.Token;
lblMessage.Text += "<br/> TokenSecret: " + accessToken.TokenSecret;
lblMessage.Text += "<br/> UserId: " + accessToken.UserId;
lblMessage.Text += "<br/> VerificationString: " + accessToken.VerificationString;
}
}
protected void btnTweet_Click(object sender, EventArgs e)
{
// add these to web.config or your preferred location
var consumerKey = ConfigurationManager.AppSettings["consumerKey"];
var consumerSecret = ConfigurationManager.AppSettings["consumerSecret"];
OAuthTokens accessToken = new OAuthTokens();
accessToken.AccessToken = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx";
accessToken.AccessTokenSecret = "xxxxxxxxxxxxxxxxxxxx";
accessToken.ConsumerKey = consumerKey;
accessToken.ConsumerSecret = consumerSecret;
TwitterStatus TweetStatus = new TwitterStatus();
TweetStatus.Update(accessTokens, txtTweet.Text);
}

I dont know how to get the AccessToken & AccessTokenSecret.

View 2 Replies

Sending Fax Through C#

Sep 7, 2010

How do I go about sending fax in .NET? We have a fax server through which we need to fax documents to clients. Since we have a fax server, I don't imagine that I have to configure a fax modem on my machine, right? It would just go through the fax server?

Are there any good free (or cheap) Fax APIs out there? IN my research I've come across FAXCOMEXLib, FaxMan, and Windows Fax Service, but the documentation seems limited, so I am hoping someone here can point me in the right direction.

View 4 Replies

C# - Sending IMs Through An API?

Nov 9, 2010

we're looking at add a new feature to our site which would allow users who want to receive updates about their profile to get them sent directly to their Instant Messaging account (eg. Yahoo, Live Messenger, AIM, etc.). We're currently in the preliminary stages, just gathering information and seeing if it's actually something we want to do, so I was wondering if anyone here might be able to us discover if there's a good solution out there?

There's so many cross-network IM platforms (several leap to mind, Trillian, X-Fire, Meebo, Miranda, Digsby, Raptr, Pidgin) but I really don't know a good place to start with regards to using an API. Is there an open-source cross-platform IM API around?

View 3 Replies

Sending SMS Using C#.net?

Mar 11, 2010

i need to known how to send sms to a mobile from my .net application.

Is there any free gateway is available for sending sms.

View 5 Replies

How To Use The C# Code For Sending Sms

Mar 20, 2010

I am devloping a web site for college project So can u forward me how to use the C# code in asp.net for sending sms from [URL] or any other site

View 2 Replies

Sending SMS Using GSM Modem?

Mar 16, 2010

I am developing an ASP.NET web page for sending sms using gsm modem. I have connected my phone using data cable to my PC.What are all the other requirements needed?I need to write vb.net code in code behind file to send SMS Using GSM Modem. What steps do i take to develop my web page for it.

View 2 Replies

SMS Sending Service?

Mar 8, 2010

I want to develop a website which provides the facility of sending free sms to any mobile. the technology which i want to use is asp.net with c#.How should i move further?

View 1 Replies

Sending Data From Web App To A Vb6 App?

Oct 28, 2010

Sending data from Asp.net web app TO a vb6 app...possible?

I need for a user to login to my web app and send some simple data to an existing VB6 legacy app that is installed on the user's machine. Is there anyway of doing this without rewriting the client app in .Net?

View 4 Replies

Sending SMS And Getting Data By SMS

Feb 15, 2011

I have web site that users can register own self and sharing own personality info with my website,I wanna send one SMS to each user after fill all fields and the content of sms should be the fields info.In other side user could send sms and get own info on our DB by SMS.

View 2 Replies

Sending Sms Via Web Application?

Dec 1, 2010

i am new in asp.net. i want to implement a sms application via which a user can send sms.

but i dont know how to implement it.

prerequisites to implement sms service and light the way to understand this concept.

View 10 Replies

MVC :: Sending Value To ActionResult?

Jun 15, 2010

I have a dropdown with several items (hardcoded) and next to it I have a submit button - which invokes an Action in the controller. I can successfully identify the submit button in the controll using the name and value attributes of the submit button, but how can I send the selected value of the dropdown control to the controller?

[Code]....

Then inside the controller I can identify that the submitButton with value of "Start Task ..." has been clicked, but I do not know how to know which value in the dropdown was selected?

[Code]....

View 5 Replies

Sending Mail In .NET?

Oct 14, 2010

I'm trying to send mail in ASP.NET web-site. I have smtp configuration section in web.config file.

View 5 Replies

VS 2010 - Sending Off Fax

Aug 24, 2011

My code will need to send off a fax. Never done anything like this, so figured I'd make this my first stop to ask.

Using: VS 2010, Asp.Net 4, C# 4.0

View 2 Replies

Web Application For Sending Bulk SMS?

Dec 23, 2010

Looking to build a web application which provides a platform for sending bulk SMS on reasonable rates. Whether i have to sign an agreement with GSM providers for sending SMS or is there an alternative for this? If so, how can i embed the SMS service with my application code?

View 1 Replies

Sending Email With Checkboxes?

Jun 30, 2010

I am trying to figure something out, on this page:

[URL]

I have the following code:

PHP Code:

[code]....

View 8 Replies

Sending Mail With Code Behind Vb.net

Jul 30, 2010

I am trying to send email using Asp.net with code behind Vb.net. I cant able to send email and it was not throwing any exceptions.

Try
message.From = New MailAddress("krisssgopi@[URL]")
message.To.Add(New MailAddress("jeganrengasamy@[URL]"))
message.IsBodyHtml = False
message.Priority = MailPriority.Normal
message.Subject = "Hi Buddy.."
message.Body = "This is testing mail.."
MsgBox("message sent..")
smtp.Host = [URL]
smtp.Port = 25
smtp.UseDefaultCredentials = False
smtp.Credentials = New System.Net.NetworkCredential("krisssgopi", "xxxxxx")
smtp.DeliveryMethod = SmtpDeliveryMethod.Network
smtp.Send(message)
MsgBox("message sent..")
Catch ex As Exception
ex.Message.ToString()
End Try

View 2 Replies

IIS Isn't Sending Gzipped Data To IE?

Jan 24, 2011

Using Internet Explorer 8, Firefox 3.6, Chrome 8 and IIS 7.5 on a Win7 x64 box.I'm serving up a file using an IHttpHandler (.NET 4).

According to Fiddler, my IIS request from IE8 says it accepts gzip, but it isn't returned:
(note that loc.portal.com is actually 127.0.0.1)
GET http://loc.portal.com/AdminCenter/FileHandler.ashx?ID=115 HTTP/1.1
Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, application/x-shockwave-flash, */*
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDR; .NET4.0C; .NET4.0E; MS-RTC LM 8; InfoPath.3)
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Host: loc.portal.com
Cookie: LoginName=; ASP.NET_SessionId=d5qiw5nubkjd2r00gnebg3ar; .ASPXAUTH=BAEA blah blah

Header returned from IIS to IE:

HTTP/1.1 200 OK
Cache-Control: private
Transfer-Encoding: chunked
[code]...

Notice it's not gzipped.With Firefox, however, the request looks like this:

GET http://loc.portal.com/AdminCenter/FileHandler.ashx?ID=115 HTTP/1.1
Host: loc.portal.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
[code]....

Chrome looks similar to Firefox. It asks for gzip and gzip is returned. I can see by the content size displayed in Fiddler that the body is, in fact, gzipped for Chrome and Firefox but not IE.

I have "Enable dynamic content compression" (as well as static content compression) set in IIS. My IHttpHandler isn't doing anything special with compression and it's not running different code for different browsers. I searched the source for my project and I don't see any mention of "gzip" at all so I don't see how I could be accidentally mucking with it.

How can I figure out why IIS isn't sending gzipped data to IE?

View 1 Replies

MVC :: Sending The Whole Collection To View?

Mar 7, 2011

mvc-ers in the Model i have a collection of Employees (EMPLOYEE_ID,
FIRST_NAME,
LAST_NAME,
MOBILE)

and i want to send particular fields from it to the view so in the Controller i write this code

[Code]....

how can i retrieve the collection in the view, should i create a class contains (e.EMPLOYEE_ID, Employee_Name)
and cast ViewData["Employees"] to it, or there is a trick?

View 4 Replies

Sending Data From Wordpress?

Dec 19, 2010

I'm working on a Press Release website that currently has an existing distribution platform built on ASP.NET - the site that I have built is utilizes Wordpress Multi-site and BuddyPress, and I need to share information between Wordpress & the existing ASP.NET CMS. The information that needs to be shared between both platforms is 1) Press release information (which is a custom post type in Wordpress) and 2) The login information. Is there a way to have ASP.NET get the information from the Wordpress MYSQL database? Or is the best way to write a plugin for wordpress that will send information to the ASP.NET each time a new press release is written, and each time a new user account is created. I can go either way - having ASP.NET grab the info, or Wordpress send the info out.

View 1 Replies

C# - Sending Encrypted Text In Url

Feb 11, 2011

I have a very simple (rather stupid) question, I hope someone can clear my mind on this :)

I want to send an email to my site user once he clicks a button. This email will contain a link with the userID of a user in the link URL (as query param of a link).

Once the user clicks this email link, my server side code will parse and decrypt the userID query string key to get the user ID and perform some action on it.

I cannot use base64 encoding as it can be reversed and 'hackers' can get to know the real userID. I have to encrypt the ID but when I am using AES alogrithms for encryption, the encrypted text is not "understandable" by the browser, ie I cannot pass the encrypted userId text as a part of the URL because it contains un-encoded characters like "/" which the browser cannot by pass. One option I can think of is to base64 encode the encrypted text once I send it across via URL. Then I can bease64 decode and decyrpt it.

Is this approach better than using Uri.EscapeDataString() on the encyrpted text?

View 4 Replies

Sending SMS Over HTTP / HTTPS In Vb.net?

Oct 8, 2010

i want to send sms by using http/https,can nay one tell me hoe can i do this ?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved