I am currently working on a form that performs several calculations and then submits it to a sql server. I was able to post test data to SQL when using command.CommandText = "<SQL insert statement, inserted values 'test, 5'>" followed by command.ExecuteNonQuery(). But now when i try to submit data using variables i get an "A first chance exception of type System.Data.SqlClient.SqlException' occurred in System.Data.dll"I am not a programmer, so sorry if my code looks a bit rudimentary...
I'm using Visual Studio 2005 and ASP. NET 2.0 with this program. This is written in VB.net
Right now, we've got a Gridview that is embedded and databound into another gridview. The 2nd Gridview is hidden by default and expanded by the user. Within the 2nd gridview are several DropDownLists. The problem is that these DropDownLists are not firing the OnSelectedIndexChanged functon nor AutoPostback whenever I change the selecteditem.[code]...
I would like to search an online (internet) database and import the result in my own Windows program. As I understand from reading and searching I first have to do a get from the default (search) page to get the cookies for instance and then do a post providing the filled input fields and adding the previously collected cookies. So far getting the information seems to work but submitting the data back to get the actual search result doesn't seem to work. This is what I have so far: [code]Anybody that can point me in the right direction? I my assumption correct that I first have to do a Get and then Post the correct data back?
I'm having an issue with sending textfiles line by line on a timer.Currently I can pass a textfile location to my program, and on each tick it will send the first line, or the whole thing line by line. What I want to do is have my program pass line 1 of the text file on the first tick, and line 2 on the second tick, etc.LocationTB is where the user passes a file location.
ElseIf RadioButton2.Checked = True Then Dim FILE_NAME As String = LocationTB.Text Dim TextLine As String If System.IO.File.Exists(FILE_NAME) = True Then
I have read the Sticky's on the CodeBank Forum. Since I havn't done this before, and I want to avoid upsetting anyone:A. Compiled Code- I am intending to upload a sample vs2008 project file, and some resources used in the project. I plan to delete the contents of the bin/Debug and bin/Release folders before doing so. Is this all I need to do?
I am trying to get my PayPal IPN code behind to work, but I've got a couple of compiling errors which I've put a capital letter comment next to. (Sorry about the grammar !)Also, although I pinched the script from the PayPal site, I've had to alter a few little bits. Generally, are there any glaring errors or things I should do differently ?
<code> Imports Microsoft.VisualBasic Imports System Imports System.Data
I have a form which contains a fairly large number of values. I am currently submitting with a POST method, but I wish to convert this to do it with jQuery via AJAX. I have been experimenting with converting my code-behind "save to database" function into a Web Method. I am using a two-step function method, firstly preparing all the variables from Request.Form("parameterName") and then passing them all into a "saveData" function as follows:
[Code]...
From the post mentioned above, I can see I can send this string, but how do I process it server-side when recieved? The article implied that HttpContext.Current.Request.Form("parameterName") should work, but it doesn't... I'm guessing because I need to access it from the txtQuery variable..
Is there another way to easily make a POST request in .NET other than the WebRequest class? I have a very, VERY small piece of data I need to post: password=theword but WebRequest randomly, and I mean randomly, drops the data when posting to my server. I've tested it by using a chunk of code from my server that dumps the request to a console, and I can that the client is sometimes sending and sometimes not sending the POST data.The code that I'm using that uses WebRequest works in another project, when talking to IIS. The server being talked to (a minimal web server in another system) responds properly every time I POST data to it through Firefox. I've got a function in the same project that fires off a GET request, and that works. It just seems like my POST function isn't completing the transaction...something I've noticed in the past when asking WebRequest to handle small strings.[code]
I would like to build an application with visual basic.NET ( i currently have visual studio 2010) which posts a comment from my application to the remote website.On my VB form :i have 4 textboxes ( name, email , site address , and the comment text)and one submit button.on the remote site: 4 texts and 1 submit button !! same fields as my VB form.anyway what i want to do is to just post a comment from my vb application to the site.
I want to ask for the steps that i have to do and a code to use for a e-shop using paypal. is there a standard code that it is used for these transactions?
I am using the code below for paypal notifications. I checked the notification history and it comes back as payment_status is Complete BUT the VB code performs the code for the "INVALID" case...
'Post back to either sandbox or live Dim strSandbox As String = "https://www.sandbox.paypal.com/cgi-bin/webscr" Dim strLive As String = "https://www.paypal.com/cgi-bin/webscr" Dim req As HttpWebRequest = CType(WebRequest.Create(strSandbox), HttpWebRequest)
i am going to put a trial version of my applicaton on various websites such as softpedia and download.com....but i heard that you can set up a little website through paypal to sell the downloads of the full version...i have looked around the internet and paypal but not sure how to do something like this...anybody else know?
I am trying to login and then post message but my code seems useless. Can log in but does not post any message! Please help!!!
Private Sub ButtonPostMessage_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonPostMessage.Click Try request = Net.HttpWebRequest.Create(strURL)
I've been trying to get this to work for days now, but I fail I have a very small HTTP Web Server using TCP sockets listening on port 80. I can connect and display html to the browser, parse GET parameters; but what I can't get is getting POST data. When I get a POST request, the headers and everything else come in fine, but the POST data is missing:
I'm making an API for my website that i'll be able to utilize over VB.NET;So far the only thing i'm having problems with is uploading files;I'm trying to keep it as simple as possible on the .net side, so my PHP Script needs all the variables to be in the function;I know how to post a file via HTTP, But when I use this vb.net code:[code]
i've two offices at main office i've main server and application. at branch office there's local sql server and application. at the evening when branch is closing i want to make a module which update all the records in main server via connecting through dialup or wireless.
i want to make a form like when one record is updated at the server then the counter will be 1 and similarly after all the records updated the counter shows the no.of records updated.i've made a module but there's i cannt handle the counter it updates all records very fast and shows me the counter of last record.
i need the counter with some delay like when one record is updated at server the counter label should be 1 for sometime then the other record update query execute any idea??
send data collected from a asp.net web page using vb.net that has a bunch of text boxes for first name, last name, address... item price, quantity, total price... to paypal for processing and settlement?i have never worked with paypal so i am assuming paypal will get this info and generate a bill to send the user.
Using VB MVC 3 with Razor ... can I create the PayPal ipn in any controller? say I put it in its own controller say IPN. Would the URL not then be [URL] ? and if that is correct. Do I need to create a blank view page named Ipn or what ever the Ipn action name is?? In this view would It need to contain any razor syntax? I have been back and fourth over every single post I could find about IPN but there is nothing for MVC 3 vb.net.. This has been edited... I have got the IPN handler reutrning status 200. And when I run it through the tester I get success... However actual test transactions are not being entered in the database...The Ipn Controller function is this:
End Function <AcceptVerbs(HttpVerbs.Post)> Function IPN_Handler(ByVal sender As Object, ByVal e As System.EventArgs) Dim strFormValues As String = Request.Form.ToString()
I was wondering if anyone could please point me in the right direction. I have spent some time looking for answers on the web and not found exactly what I need.in a nutshell:I want my program to be registered once a user enters a serial number of some sort along with their email address. I have an app for my phone and that is what I had to do to get the full version of it.
How do I download transactions info from Paypal using VB.NET
I want to create an app which when i press a button. It downloads each new Paypal transaction to a textfile. I would like information like purchase item name, item description. And price to be added to textfile.
[code]...Download Transactions Info From Paypal Using VB?