Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / January 2006

Tip: Looking for answers? Try searching our database.

asp.net 2 page and serial port

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TdarTdar - 23 Jan 2006 19:25 GMT
Hello,
I am writing an web base application that needs to read data
from a serial port(Postal Scale), I assume i will be using this namespace

System.IO.Ports.SerialPort

I know in vb it would be something like:
(serialport Control, 1200,8,E,1 ...)

       Dim Weight As String
       SerialPort1.Open()
       SerialPort1.Write("W" & Chr(13))
       Weight = SerialPort1.ReadLine
       MessageBox.Show(Weight)
       SerialPort1.Close()

I want to read the info from the local (clients) system that when press  
"get weight" button it will call the routine and get this info.

I relize there will be security issuse involved, how to I setup the client
to allow this process.

Generally I need some help understanding and or an example of this in
asp.net 2

Thanks,
Tdar
Yunus Emre ALPÖZEN [MVP] - 23 Jan 2006 20:08 GMT
Hi,
It is not possible ! Because it is a WEB APPLICATION not a WINDOWS
APPLICATION. There is an important difference between them. Web Applications
are executed on server, but windows applicaitons are executed on client.. In
the following code, u try to access server's serial port. U have two choice
to do this, one is writing a windows application and the second one is
implementing an ActiveX component. and embedding that activeX component into
your asp.net page....

Signature

HTH

Thanks,
Yunus Emre ALPÖZEN
BSc, MCSD.NET
Microsoft .NET & Security MVP

> Hello,
> I am writing an web base application that needs to read data
[quoted text clipped - 23 lines]
> Thanks,
> Tdar

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.