Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET General > Sending datas through HTTP... help appreciated..


Reply
 
Thread Tools Display Modes
  #1  
Old 10-13-2005, 09:20 AM
Yakata's Avatar
Yakata Yakata is offline
Freshman
 
Join Date: Mar 2003
Location: Bruxelles (Belgium)
Posts: 49
Default Sending datas through HTTP... help appreciated..


Hi there
Don't know if I'm at the right place but this is my problem :

I need to offer to one of our provider a way to insert datas into a SQL server. Our security team don't want to expose the server to the web, ok, then they told me to make a website to allow the provider to do 'post http'.

I've made a webform (in method post), using the Request.querystring in the Form.Load to read the parameters, testing isPostBack. Ok, I have my datas, send them to SQL, everything is allright.

But... if the provider sends more than a message a second, it stucks... My .net environment is frozen, I need to stop the IIS service and to start it again...

I'm a real newbie in the .net world and maybe there is another way of doing it.
Please, I'm in a hurry (it's allways like this ) so any idea will be appreciated

Code:
        Dim SMS As String
        Dim Phone As String
        
        If Not IsPostBack Then

            SMS = Request.QueryString("SMS")
            Phone = Request.QueryString("Phone")

            SqlConnection1.Open()
            SqlCommand1.CommandType = CommandType.Text
            SqlCommand1.CommandText = "Insert into SMS(Message, Phone) values ('" & SMS & "','" & Phone & "')"

            SqlCommand1.ExecuteNonQuery()
            SqlConnection1.Close()

            ParatelSMS = Nothing
            ParatelPhone = Nothing

        End If
HTH
__________________
Yak
Keep the nose in the blue !)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->