473,405 Members | 2,338 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,405 software developers and data experts.

Passing a variable for a windows application to an ASP page?

Hey Guys and Gals,

I am new to this site..Is it possible, I'm sure that it is I just dont know, to pass a variable for a windows form to an .asp page?

thanks in advance

dollarbillg
May 22 '07 #1
5 1340
Plater
7,872 Expert 4TB
Can you get away with having your windows application trigger a browser to go to:
http://mywebsite/MyASPPage.aspx?MyVar=1234

??

Or do you want it hidden in the background?
There is an object called
Expand|Select|Wrap|Line Numbers
  1.   WebRequest   
that might provide the functionality you require.
May 22 '07 #2
Plater...No I dont believe that would be an option for me...what I need to do is use the variable to create/complete and asp page that needs that variable to complete my select statement on the page...Could you go into more detail or direct me to the object that you are referring to?

thanks
May 22 '07 #3
Plater
7,872 Expert 4TB
If the windows application must be running on the client's side, have you considered sticking an instance of the "WebBrowser" control into your form (possibly as a tab?) and then you could manipulate the URL from withen the windows application.


You can think of the WebRequest object as like "AJAX for a windows application"
online http://msdn2.microsoft.com/en-us/lib...ebrequest.aspx
But if you have the MSDN library installed I like it better for class browsing
May 22 '07 #4
Can you get away with having your windows application trigger a browser to go to:
http://mywebsite/MyASPPage.aspx?MyVar=1234

??

Or do you want it hidden in the background?
There is an object called
Expand|Select|Wrap|Line Numbers
  1.   WebRequest   
that might provide the functionality you require.
Plater,

I am able to have my wndows application trigger a browser do you have any idea how I could incorporate you idea to my issue.

Thanks
May 23 '07 #5
Plater
7,872 Expert 4TB
Try something like:
Expand|Select|Wrap|Line Numbers
  1. System.Diagnostics.Process.Start("http://mywebsite/MyASPPage.aspx?MyVar="+myvar.ToString());
  2.  
May 23 '07 #6

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

Similar topics

1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
2
by: Davide Bruzzone | last post by:
Greetings all... Here's a description of the problem that I'm trying to solve: - I have a Web page from which users can open one or more other windows. - From that web page, the user can then...
12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
8
by: Johnny | last post by:
I'm a rookie at C# and OO so please don't laugh! I have a form (fclsTaxCalculator) that contains a text box (tboxZipCode) containing a zip code. The user can enter a zip code in the text box and...
2
by: Oberon | last post by:
Why does this not work as it should? I expect index.aspx to show:. Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\inetpub\wwwroot\ChatSimple\db\chatusers.mdb Instead, I get: ...
3
by: James Robertson | last post by:
I am new to the ASP and VB thing so be kind. Question I have is that I have created an ASPX web site to use as an E-Mail page. But I want to use this for a lot of users. Can I create the link on...
1
by: rfr | last post by:
I have a need to use a single version of a Visitor Response Feedback Form on numerous HTML documents. Rather than have numerous versions of this, one on each HTML document, it makes more sense to...
5
by: aelred | last post by:
I have a web page where a member can open up a chat window (child window) with another member. - From there the member can also navigate to other web pages. - From other pages in the site, they...
3
by: Wolfman | last post by:
Hi guys I thank you for being the most helpful and responsive tech group around, and I have a new one for you. Have you ever embedded Hulu on a page before? I use it quite extensively in popup...
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
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.