473,796 Members | 2,654 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.Net app send information via HTTP to SQL server

Hi

A want to write a new local VB.Net application. One of the features I want
it to have is to be able to send a few small pieces of information to my
website's backend SQL Server database hosted at GoDaddy.com. E.g.

Client Code: 456418
Amount: $455.98
Stock Number: 945482

I expect I'll just want to run an INSERT query statement to append this data
to the financial transactions table.

How could I do this? I have programmed quite a bit in MSAccess, used
FrontPage to write ASP.NET but never with VB.Net Studio. I can download VS
Express VB.Net from MS.

Mar 23 '08 #1
5 1998

"Jonathan" <no**@none.comw rote in message
news:uV******** ********@TK2MSF TNGP03.phx.gbl. ..
Hi

A want to write a new local VB.Net application. One of the features I want
it to have is to be able to send a few small pieces of information to my
website's backend SQL Server database hosted at GoDaddy.com. E.g.

Client Code: 456418
Amount: $455.98
Stock Number: 945482

I expect I'll just want to run an INSERT query statement to append this
data
to the financial transactions table.

How could I do this? I have programmed quite a bit in MSAccess, used
FrontPage to write ASP.NET but never with VB.Net Studio. I can download VS
Express VB.Net from MS.
What you need is a good ADO.NET book.

http://www.google.com/search?hl=en&q...=Google+Search

Mar 23 '08 #2
Hello Jonathan

The most obvious aproach would be in my opinion to create a webservice that
accepts the parameters from your winform app
so do some googling on webservices and see if this suits your needs in my
opinion it is the easyest way to acomplish what you want
although there are other ways ofcourse,, with the httpwebrequest object for
instance you could post the data to a webpage but this requires a lot more
coding on the client ( winform ) side while the webservices would generate
all the code automaticly ( you wouldn`t be aware of the low level
comunication )
regards

Michel

"Jonathan" <no**@none.coms chreef in bericht
news:uV******** ********@TK2MSF TNGP03.phx.gbl. ..
Hi

A want to write a new local VB.Net application. One of the features I want
it to have is to be able to send a few small pieces of information to my
website's backend SQL Server database hosted at GoDaddy.com. E.g.

Client Code: 456418
Amount: $455.98
Stock Number: 945482

I expect I'll just want to run an INSERT query statement to append this
data
to the financial transactions table.

How could I do this? I have programmed quite a bit in MSAccess, used
FrontPage to write ASP.NET but never with VB.Net Studio. I can download VS
Express VB.Net from MS.

Mar 24 '08 #3
Thanks. That's good because I don't want the user to see what's going on --
they don't need and I don't want them to see the communication. My plan is
to have it come from a Microsoft Office Add-in (Vb.Net, Office 2007, VSTO)
which I am hoping to write soon.

I trust the communication will in all situations get through any corporate
firewalls at any of the client sites?

I have scoured around the internet to see any Vb.Net examples of code of how
this could be done but haven't found a simple, comprehensive example as yet.

If anyone knows the code needed to say run an INSERT query to push the data
into the www.mywebsite.com SQL Server that would be appreciated.

Client Code: 456418
Amount: $455.98
Stock Number: 945482

tblTransactions

Also, in general terms, what really is meant by the phrase 'Webservice'?


"Michel Posseth [MCP]" <MS**@posseth.c omwrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
Hello Jonathan

The most obvious aproach would be in my opinion to create a webservice
that
accepts the parameters from your winform app
so do some googling on webservices and see if this suits your needs in my
opinion it is the easyest way to acomplish what you want
although there are other ways ofcourse,, with the httpwebrequest object
for
instance you could post the data to a webpage but this requires a lot more
coding on the client ( winform ) side while the webservices would generate
all the code automaticly ( you wouldn`t be aware of the low level
comunication )
regards

Michel

"Jonathan" <no**@none.coms chreef in bericht
news:uV******** ********@TK2MSF TNGP03.phx.gbl. ..
Hi

A want to write a new local VB.Net application. One of the features I
want
it to have is to be able to send a few small pieces of information to my
website's backend SQL Server database hosted at GoDaddy.com. E.g.

Client Code: 456418
Amount: $455.98
Stock Number: 945482

I expect I'll just want to run an INSERT query statement to append this
data
to the financial transactions table.

How could I do this? I have programmed quite a bit in MSAccess, used
FrontPage to write ASP.NET but never with VB.Net Studio. I can download
VS
Express VB.Net from MS.



Mar 24 '08 #4
Also, in general terms, what really is meant by the phrase 'Webservice'?

I meant to tell you, a WebService is a UI-less object that can be
interacted with through code. The webservice sends and receives
information through SOAP formatted Xml (see wikipedia for a rundown on
SOAP and Xml). Just imaging have a code library that floats around
hyperspace waiting for it to be used, that, in it's simplest form, is
a web service. One great feature is that a web service can be called
by almost any language, be it .NET or PHP or just plain html.

Be warned, that if you don't authenticate and authorize people to use
your service, anyone who discovers it will be able to call it whenever
and however they want. So besides using just SSL to protect the
transmissions, you might want to figure out a way to lock down your
service to prevent people from abusing it. I would highly recommend
you do some heavy reading (or outside contracting) on ASP.NETs ways of
authorizing users.

Thanks,

Seth Rowe [MVP]
Mar 24 '08 #5
Thanks again.
"rowe_newsgroup s" <ro********@yah oo.comwrote in message
news:57******** *************** ***********@n58 g2000hsf.google groups.com...
Also, in general terms, what really is meant by the phrase 'Webservice'?

I meant to tell you, a WebService is a UI-less object that can be
interacted with through code. The webservice sends and receives
information through SOAP formatted Xml (see wikipedia for a rundown on
SOAP and Xml). Just imaging have a code library that floats around
hyperspace waiting for it to be used, that, in it's simplest form, is
a web service. One great feature is that a web service can be called
by almost any language, be it .NET or PHP or just plain html.

Be warned, that if you don't authenticate and authorize people to use
your service, anyone who discovers it will be able to call it whenever
and however they want. So besides using just SSL to protect the
transmissions, you might want to figure out a way to lock down your
service to prevent people from abusing it. I would highly recommend
you do some heavy reading (or outside contracting) on ASP.NETs ways of
authorizing users.

Thanks,

Seth Rowe [MVP]

Mar 24 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
12094
by: Google Mike | last post by:
I've got RH9 Linux with default PHP. Is there a way to send email on Linux to an Exchange Server from PHP and/or other tools when there is *NOT* SMTP access? Has anyone figured out a way to use PHP to get inside an OWA (Microsoft Outlook Web Access) website to send email that way? The reason I ask is because my corporate office is going to do away with our rogue SMTP server access and force everything through Exchange
1
1879
by: Kenshin | last post by:
Hey! I have another script where i pull all the information from the database and I want to send it to the person. What they do is they enter in their email, and if the email matches, than it will email them their login information. How do you grab the info and than use that info and put it into an email to send? Here is my code thus far for it:
4
4334
by: CK | last post by:
Hi all, I know this question is stupid. But i need some advice for this. I am trying to develop a website, which will allow the user send to order form to the admin email. I am planning to use the CDONTS component method. Can I just to localhost server to test, whether the form can be send up to the admin's email. Or I must have the Hosting server to do that. Can Anyone suggest me, how to I test my scripts can be successfully run (at...
5
4855
by: zorhel | last post by:
Hi. My clients will be IE, Mozilla and Opera in a Windows and *nix OS. So, my web app need to, from a server, send messages to a specific client (browser), send messages for all clients, redirect a client to another page. In other way, a client will be able to send messages to another client, throw the server. These are the first funcionalities.
9
3157
by: eswanson | last post by:
I have a web page I need to post a file plus some other fields to it. How can I do this from a asp.net page. I know I can send individual fields to the other page, but how do I send a file to the other page, or is there something else like a stream which will be like a file. I am attempting to get a way from writing out a file and then having to give the page that I am posting to the file name. Instead I would like to just from asp.net...
10
1601
by: John Davies | last post by:
I want to send a bug report automatically from my VB.NET program. I won't know the end user's smtp server or what email client they are using. The Process.Start with mailto is almost what I need, but the amount of information that will fit in the body is too small for a stack dump and other information. I like the way that it would go into the outbox, but oh well, have to move on. My next choice is Indy or System.Web.Mail, but I...
0
2412
by: howardr101 | last post by:
Hi, Have hunted around on the groups and can't find anything, hence. I've tried this against 2 mail servers (mailtraq and hmailserver) and it occus with both. The problems seems to be that when the SMTPClient attaches to the server and the server sends it greeting message, if anything other than +OK is received by the client it throws an exception and falls over.
4
2488
by: Joseph Geretz | last post by:
We use a Soap Header to pass a token class (m_Token) back and forth with authenticated session information. Given the following implementation for our Logout method, I vastly prefer to simply code m_Token = null in order to destroy the session token when the user logs out. However, I'm finding that setting class instance to null results in no header being sent back to the client, with the result that the client actually remains with an...
1
2292
by: chaitanya02 | last post by:
Hi All, Well- this question might have appeared several times on this forum- but would appreciate your reply on this: I have a asp page, where customers login with some username and the pwd, which are stored in sql. i should be using this user name and pwd and check if it is the same as the userid and the pwd in the sql 4 table..IF so then: display the download url which is in sql3 by querying the four tables.. These four tables are...
1
2454
by: Vijay | last post by:
Hi, I have a problem to send Mail in ASP. I am using CDO for sending mail. My Server configuration are : Windows Server 2003 Stadndard Edition with R2, Service Pack 2, Microsoft Management Console(MMC) 3.0, Internet Information Service(IIS) 6.0 My ASP Code to send mail are as follows :
0
9679
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9527
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10453
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10172
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.