.net - Handle A Post With An Array?
Sep 4, 2010.net - vb.net handle a post with an array
View 3 Replies.net - vb.net handle a post with an array
View 3 RepliesI am developing an application for windows that is going to upload images to a free image hostings...
I am using WebClient and UploadData for posting my form to the website... now lets take a look to one of these free image hostings , for example img98.com..
as you can see in the main form for uploading there are 4 inputs with the name of "userfile[]" that means userfile is an array...
now I want to know how can I post this value?
I have the following HTML form
[Code]...
This page works fine, but I have several files that need uploading. My question, Is there a way to do this from vb.net? Basicly what I'm looking to do is loop thru an array of files use the vb.net to do the http Post.
Base form baseForm generate an array of childForm (3 fo them). I have one event handler in baseForm which is called when user close each childForm. The problem is that this event handler is only called when the last childForm is closed. When other childForm is closed, the event handler doesn't do anything.
View 7 RepliesHaving a problem with sending a file via HTTP post in vb.net. I am trying to mimic the following HTML so the vb.net does the same thing.[code]
View 4 Replies<edit on 10th March 2010.>
Changed thread type to QUESTION. I was then able to mark AS ANSWER the relevent post which now also immediately follows this post and so it is easier to find as suggested by forum user j2associates .
<edit> It is also my 3rd post in this thread, the 8th one up, of my posts, from the bottom ( for now ), as the forum format has changed yet again.I will leave the rest of this post( as is ) purely for historical reasons. I have been on these forums long enough to see 3 forum changes. <edit> 19th May, 2010> Link added to a video on the next line of text.
[code]....
I wrote an application to handle a joystick with directinput. It works fine if it uses the handle of the main window but it doesnt happen the same if the handle is the one of the component that contains the joystick's operation.
I mean:
main form handle: 15
component handle (which is inside the window and the joystick needs the focus of this component to work): 25
It always work if the handle i initilizate the device is the main form (15).How can i use only the handle of the component?
Im trying to create a software which can post into yahoogroups.I've done trying to log in yahoomail but my problem is when I am going to post in yahoogroups, I am turning back in to yahoo log in page.
Here's my code so far:
Quote:
Imports System.IO
Imports System.Net
Imports System.Text
[code]....
I have an array of people stored in a custom structure array... how can i copy this array to a temp array so that the temp array has all the same values as the original custom array?
View 4 RepliesI am trying to create the following program Store in a 1d array a set of 5 place names and in a 2d array the distances between the places. Ensure that the order of the places is the same in both arrays. When the names are places are input the distance between them is displayed. If they are not both in the table a suitable message is displayed
Dim town(1 To 5) As String
Dim Dist(1 To 5, 1 To 5) As Integer
Dim First As Integer
[CODE]......................
I think the best way forward is pass a parameter to the function findnumber.
I need to figure out how to post/get with PHP within vb.net.
Net.WebRequestMethods has the post/get functions im pretty sure i need
I want to make two request to submit a form of another web application. How can I create post and get request. And how can I use secure this.PS. I don't want to create ajax request. Just httpwebrequest.
View 1 RepliesI use this code to put data from xml to Sql db - tabel order
Module Module1
Sub Main()
Dim _db As New integrationDataContext
Dim _orderfile As XDocument = XDocument.Load("c:xmlorders.xml")
Dim _orders = _orderfile.<orders>.<order>
[Code]...
I've an annoying ASP.NET problem:
I have a Perl script (see below), which gets the form_info variable. Now unfortunately, it's http POST, and not http GET, so Request.Querystring doesn't work...
Now I have to replace the Perl Script with an asp.net page/app, but my problem is that I cannot process the string form_info when I don't have the string... and I cannot change the http POST to a HTTP get, since it's generated by a 3rd party java applet.
# Print out a content-type for HTTP/1.0 compatibility
print "Content-type: text/html
";
#
[Code]....
I know its odd to post 2 different projects in a day but hence the lecturer asked us to do 2 in 1 week what else can I do so here is the problem he wants us to make a tic tac toe game that will ask for player 1 and 2 name then generate a random number for who will play 1st ok.. I though of a solution for that but it seems that player 2 always plays 1st also amm when I click on new game that recalls the code that you will see bellow the lblplayer1.text and lblplayer2.text don't reset to the new values untill I re-use the new game command what seems to be the problem? sorry for the bad explanation my English aint the best
count_turn = 0
score1 = 0
score2 = 0
lblscorep1.Text = 0
[Code]...
I need to send some info to a URL in XML and then read the response received. I'm using the XMLWriter to create an xml file. No problem there.
(1) Now, how do I post that file to a website?
(2) How do I receive the data sent back so that I can use the XMLReader on it to extract the data? Do I need to be listening on a port?
I need to 'post' xml to [url]...
How can I accomplish this in VB.net?
I am creating that will use Post Data instead of a web browser. I am new to post and this is my first time using it. I decided to go with something easy, and just make a program to auto login to Facebook. When I try it out it doesn't log me in. There are no errors or anything, just doesn't work. My code is below if anyone wouldn't mind checking it out to see what is wrong.
Imports System.Net
Imports System.IO
Imports System.Text[code]....
I am trying to add 7 days to an existing date. [code]...
how to add 7 days to the date. txtErrorSent.Text will be the current date set equal to duedate.
I am posting to a website to get data back. The site returns it as an xml. I am able to get the data into a string. But what i really want to do is to have each item in the xml in a different string field.
[Code]...
I want to be able to split these fields and set them to different text boxes on the page.
What is the VB.NET (or C#) code to prepare POST data and send to a different website than specified in the current <form ...> section?
EDIT: Every algorithm I've found online using HttpWebRequest gets the returning page from the other site and outputs it with Response.Write. I want to navigate to the new page posting the data and leaving the current page completely.
EDIT2: (more specific description of what I want)The code below displays a line chart. When the user clicks on the label for a data point, the page refreshes (performs a postback) and displaying the x-value of the clicked point.Instead, upon clicking a label, I want to send other_id="#VALX" as the only POST data to other_results.aspx as if the user had typed the corresponding id into the the TextBox on other_search.aspx and clicked Submit.
<%@ Page Language="VB" AutoEventWireup="true" %>
<%@ Register Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
[code]....
I am upgrading a project from VB6 to VB.NET. Due to my non disclosure agreeement I cannot post DLL names or the full code here.Here's the situation. I am making a program that works with a USB scanner. In VB6 there is this function:
vb.net Public Declare Function GetCode Lib "MyDll.dll" Alias "myAlias" _(ByVal DeviceID as Long, ByVal CodeLine as String, ByVal Length as Long) as Long So, in VB6, to get the code from the scanner, you would do this:
[Code]...
i am trying to get my results to post to one row in a list box for each one but instead it just keep adding up with a million rows and adding each result properly,
Dim A08count As String
Dim A01count As String
Dim totalA08 As Integer
[Code].....
Im trying to get a response from a function in a webservice but i dont think i am creating the service correctly.[code]
View 1 RepliesI am using visual studio 8, using vb.net. I am trying without success to make a post request to a web form as shown below.
[Code]....
I dont think that I am posting the right information. Am i supposed to post just the information or do I post the the tags and the information/
I want to share an executable program that I was working on.
View 3 RepliesI am trying to use eBay API and I have already signed up and connected to their API, now I don't know the VB.NET code needed to retrieve the information, such as "GeteBayOfficialTime" is a command I can use for their API, but how do I go about connecting and requesting "GeteBayOfficialTime"?
View 5 RepliesI have donsome programmng in the past but am just getting back into it.I am trying to post to the following webpage. I need to fill in the "upfile" box and submit.[code]I keep getting 501 not implimented errors. I have asked my mate Google and cant find anything.
View 3 RepliesI'm coding in vb.net, and I haven't in forever so I'm a little rusty now.I want to be able to post data to a website, it can be anything as long as it can call the url (without being in a browser).[URL]
View 1 RepliesI have a very simple application that posts an XML file to a web service.
ohttp.open("POST", "https://target.web.site")ohttp.send(stringrequest)
Now this works on most workstations, the prompt for the private key is displayed the user presses OK and the XML is passed and a response is received. I have found some client computers that this does not work on. The computer does not display the prompt for the private key. I have been trying to figure out what is suppressing/blocking the prompt for the private key confirmation.