473,386 Members | 1,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

send string from vb to aspx

Hi I have this problem that I want to send a string to a aspx site on my website from my local visual basic application and I would like it both ways.

Can anyone help me:

I ques it is something like
dim a
a = me.season("dsd")
in the web application.

If there dosen't exists any quick code to do this like me.season then tell me.
Jan 19 '08 #1
9 1427
if you want a quick way to send data to a website you an try something like this:

Expand|Select|Wrap|Line Numbers
  1. www.mypage.com/datareciver.aspx?data="MyString"
  2.  
  3.  
  4. then on the datareciver page:
  5.  
  6. string data = Request["data"]
  7.  
<snipped>
Jan 22 '08 #2
Frinavale
9,735 Expert Mod 8TB
Hi I have this problem that I want to send a string to a aspx site on my website from my local visual basic application and I would like it both ways.

Can anyone help me:

I ques it is something like
dim a
a = me.season("dsd")
in the web application.

If there dosen't exists any quick code to do this like me.season then tell me.
There is no such thing as "season"....
Are you trying to use Session?

You are going to have to have to create a common data store which will allow both your web application and desktop application to access the shared data.

You can use a data database, or file, xml file.... or anything that gives permissions to both applications and allows them access to the information you need to share.

You cannot use Session to do this. Sessions are used to identify a person by giving their Browser a cookie to identify them (in general use)....since this doesn't help you with your application, Sessions will be of no use to you.

Hope this helps.

-Frinny
Jan 22 '08 #3
if Dim a = Request("mode") if to request isent there a method to send a string back
to the application?
Jan 23 '08 #4
Frinavale
9,735 Expert Mod 8TB
if Dim a = Request("mode") if to request isent there a method to send a string back
to the application?
Sorry there is not.
You can store the string in a database so that both applications can retrieve and use it.

Your ASPX web application is meant to run on a web server and serve information to users using HTML web pages.

Your desktop application is meant to run on a client's machine.

Web pages just display information, they do not have the rights to do anything to the client's machine...they do not have the rights to communicate with your desktop application.

I do not understand why the web application has anything to do with the desktop application.

Could you please explain what you are trying to do in more detail.

-Frinny
Jan 23 '08 #5
the application have to connect the aspx page so that the aspx page can save the string to a file and the an another computer have to retrive it like multiplayer connection over an aspx page
Jan 23 '08 #6
Frinavale
9,735 Expert Mod 8TB
the application have to connect the aspx page so that the aspx page can save the string to a file and the an another computer have to retrive it like multiplayer connection over an aspx page
I'm sorry but you're going to have to explain what a "multiplayer connection" is.
Are you talking about a game?
Played through an aspx page?
Or a desktop application?


I'm still confused.
Could you please try to explain the problem again and maybe even post some code snippets to help explain what you are trying to do...
What have you tried so far?

-Frinny
Jan 23 '08 #7
its a dektop application witch have to send a string alone with a season number to an aspx and then the desktop application on the other computer will retrived the string by the same season number as the sender.

Its a multiplayer game functioning over an aspx page for faster sending.

I only want to know if the aspx page can send a string to a dekstop application web
browser control.
Jan 25 '08 #8
maybe there is a way to see the web site title from the desktop application.
Jan 25 '08 #9
Frinavale
9,735 Expert Mod 8TB
its a dektop application witch have to send a string alone with a season number to an aspx and then the desktop application on the other computer will retrived the string by the same season number as the sender.

Its a multiplayer game functioning over an aspx page for faster sending.

I only want to know if the aspx page can send a string to a dekstop application web
browser control.
Sorry there's no way that the aspx page can send a string to the desktop application.

Consider using a web service instead...combined with a timer in the desktop application that will retrieve the string (if it's there) from the web service after a certain time period has passed.

-Frinny
Jan 28 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Simon | last post by:
Hi, I have webpage (sql.aspx) in asp.net with a big textbox. In this box, I generate SQL queries. Some of the queries can takes more than 2000 characters lenght. I want to send the content of the...
0
by: Chris Lane | last post by:
I am getting the following error when trying to send the mail object: COMException (0x80040213): The transport failed to connect to the server. ] System.RuntimeType.InvokeDispMethod(String...
0
by: Erwan | last post by:
I have a strange (but very blocking) result when using the smtpmail class from an ASPX page : here is the (very simple !) code... '-------------------------------------------------- mail.To =...
5
by: sincethe2003 | last post by:
Hi, in the following example: ----------- <asp:HyperLinkColum HeaderText="Select an Item" DataNavigateUrlField="IntegerValue" DataNavigateUrlFormatString="detailspage.aspx?id={0}"...
4
by: Aren Cambre | last post by:
Why does SmtpMail.Send throw an exception if the MailMessage's BodyFormat = MailFormat.Html? I've searched all over the place and cannot find a solution anywhere. I am running this on Windows XP...
9
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...
2
by: Ryan | last post by:
Hi, I receive an access denied error (see below) when attempting to send an email with BodyFormat=MailFormat.Html from an asp.net page. Exactly the same code works fine in a console...
5
by: RG | last post by:
I have an aspx web pages which interacts with an asmx service. The calls to web service are done via Javascript. The asmx service method has the following parameters: public string...
1
by: shil | last post by:
Hi, I'm using FW 2.0 to send an email with an attachment using System.Net.Mail class. If I try to attach a file from my file system, I could successfully send the eamil. But I need to generate a...
3
by: Dave | last post by:
string m_request = some_web_page; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(m_request ); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Which works...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...

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.