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

Aspx and C# communication...

pnp
Hi all,
I want to develop an app that during it's installation it activates
itself by making a request to a page online (aspx), than runs a script and
provides an activation string for the app. How can I make this communication
happen?

Thanks in advance,
Peter
Nov 16 '05 #1
3 1333
pnp wrote:
I want to develop an app that during it's installation it activates
itself by making a request to a page online (aspx), than runs a script and
provides an activation string for the app. How can I make this communication
happen?


Hi Peter,

look at the System.Net.WebClient class.

Example:

System.Net.WebClient wc = new System.Net.WebClient();
byte[] data = wc.DownloadData("http://www.mkcs.at/index.wml")
string strData = System.Text.ASCIIEncoding.UTF7.GetString(data);

HTH,

Michael

--
How to contact me
~~~~~~~~~~~~~~~~~
directly via mail: remove the "NOTUSEABLE" and the point after it and
reverse the characters
via my portal: go to
http://great.dynu.com/tools/contact....=en&ref=usenet
Nov 16 '05 #2
Hi Peter,

I would think a simple webrequest/response to a specified url would do what you want. You should be able to pass some info to the page with the request. Then you can simply parse the web page returned.

Happy coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #3
Create a webservice. It can just return some XML and you won't have to parse
through an HTML page for the results.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Image transition effects, automatic persistent configuration and
design time mouse operations all in April's issue of Well Formed
http://www.bobpowell.net/wellformed.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://royo.is-a-geek.com/siteFeeder...aspx?FeedId=41

"pnp" <pnp.at.softlab.ece.ntua.gr> wrote in message
news:uT*************@TK2MSFTNGP09.phx.gbl...
Hi all,
I want to develop an app that during it's installation it activates
itself by making a request to a page online (aspx), than runs a script and
provides an activation string for the app. How can I make this communication happen?

Thanks in advance,
Peter

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Mircea Pleteriu | last post by:
Hi all, I need to transfer data via FTP from withing my .NET console application. In VC++ there is the CFtpConnection class to handle the FTP communication. Does anybody know how to handle if...
2
by: Quan Nguyen | last post by:
All examples @ MS website for serial port communication are specifically indicated for RS-232 interface, such as: ...
3
by: Tim Reynolds | last post by:
I support a .Net application running on a SERVER accessing MF Db2 data. Occasionally, we have some type of connection problem that we have been unable to debug up to this point. We typically...
10
by: Girish | last post by:
Ok, Ive been thinking about this problem for a while. I have 30 odd aspx pages (already built) on my website that I need to have some validation occur before the page should load. The validation...
3
by: Evan | last post by:
I have a web page with 2 frames. The left frame is running menu.aspx and the right frame is running images.aspx. When a selection is made in menu.aspx I call a method in images.aspx and pass a...
4
by: MuZZy | last post by:
Hi, I'm not sure i fit's the right NG for WCF, if not - my apology. I just strted looking into WCF and am trying to run the "Getting Started" examples from WFCSamples of .NET 3.0 SDK. I keep...
13
by: Wade Yin | last post by:
Hi, If I can write a ActiveX component that can support socket communication in webpage, that will make browser have strongger capability to communicate with different clients, but not only can...
4
by: =?Utf-8?B?YWx2YXI=?= | last post by:
Hi, I am to write a C# game serrver, which would communicate with a C++ client. It should be used just for the administration communication (not during the game itself, just administrating...
0
by: dantz | last post by:
After reading all of the materials in msdn about interprocess communication now I am confused. I hope someone can give me some enlightment. I am developing a multithreaded client-server...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.