Login  
Search All Forums
Dart Home | PowerTCP Telnet for .NET | Custom Development Reply | PowerTCP Telnet for .NET Topics | Forums   
AuthorForum: PowerTCP Telnet for .NET
Topic: \r\n Question
BabuManoharan
Babu.Manoharan@Cox.com

From: Rancho Santa Margarita, CA USA
Posts: 8
Member Since: 02/25/09
posted April 10, 2009 4:34 PM

When i send \r\n ( as a suffix ) with the commands using the send command everything works fine. when i moved \r\n value the the database and dynamically associating the \r\n to the value of the send command as a suffix it is not working !
Jason Farrar (Admin)

From: Oneida, NY USA
Posts: 223
Member Since: 07/24/07

Extra Support Options
Custom Application Development

posted April 13, 2009 7:34 PM

Hi,

I need you to clarify your question. Are you saying that you are storing the string "/r/n" in a database and then retrieving it and appending it to the text of a command in a send command? Can you give steps explaining what you are doing?

Thanks,
Jason
BabuManoharan
Babu.Manoharan@Cox.com

From: Rancho Santa Margarita, CA USA
Posts: 8
Member Since: 02/25/09
posted April 14, 2009 1:03 PM


if you send a command to the Telnet.send

currently i am using in C#

System.Environment.NewLine

Solves the problem, but before what i was trying to do is instead of System.Environment.NewLine i will directly supply '\r\n' using the string concatenation ( + ) with the command i send using Telnet.Send

later i decided to put those '\r\n' inside a database column and pull it dynamically and supply this value. but it is not working.

my column data type is varchar(10), SQL Server 2005

try to reproduce this with a simple app

just

connect
send -> username
send -> password

see how it goes
Reply | PowerTCP Telnet for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX