index > .NET Framework Data Access and Storage > How to call a aspx page from a exe file

How to call a aspx page from a exe file

Hi,

Here is my problem.I have an application in which i enter data into database using one asp page.After the whole data is entered i want to start a exe file which executes some code and that data should be entered into the database and into a aspx page and i want that page to be displayed as soon as the exe file finishes executing the code.

Can anyone help me out by telling how can we call a aspx page from a exe file.

Thanks.

Karthik Juneni

You can call an aspx page using System.Net.HttpWebRequest
class from .NET.

Search for articles about screen scraping, this should get you pretty close for example:

http://www.dotnetjohn.com/articles.aspx?articleid=93

Might be easier to just create an asp.net web service to post back the data to, this is easier to program than trying to POST to an ASP.NET web page.




Matt Neerincx [MSFT]
Matt Neerincx
Thanks for the feed back.
Karthik Juneni
reply 3

You can use google to search for other answers

 

More Articles

• Problem using SqlDataAdapter/Query builder
• Can a DataSet tell if tables in the SQL database have been update...
• Automate Application - Active Directory, Console App,?
• Dataview Sort Problem
• Question about data access with datasets
• SQL Server 2005 JDBC Driver and x64 systems
• Odbc and OleDb to VFP with tables of 64 or more fields and record...
• Returning DataReaders
• SQLExpress - SQLDataAdapter Conflict
• OracleClient DataAdapter
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Which Method is Better for Transferring
• import / parse DIF files (Data Interchan
• default value 0
• DataReader or DataSet/DataAdapter or som
• Datatable value not displaying!!!
• Requesting a list of datasources in vs 2
• InsertCommand of a SqlDataAdapter with m
• Save SQL dataset to Access database
• Help: UInt32 vs Int32 as foreign and pri
• Update Excel Data
• System.NullReferenceException: Using Dat
• Null Value exception thrown, need to cha
• Simple Update from a VS 2005 vb project
• FAQ
• Error in dataAdapter.Fill

Hot Articles

• Number of Query values and destination f
• if data exists in table A delete it from
• ADO Recordset Getting Closed in C#
• QUERY written in MS Access does not work
• Err: Format of the initialization string
• Query a View
• problems in Executing stored procedures
• is it good practice to pass datagrid to
• Typed Dataset Question #2
• Error : VFPOLEDB1.0 is not registered on
• Error in dataAdapter.Fill
• questions about Automatically Generating
• Compiling Stored Procedures within Oracl
• Help!!! Fail to update Oracle CLOB colum
• Problem with c# and Access DB

Recommend Articles

• Insert Data from DataReader into a TextBox
• The provider could not determine the Dec
• SqlDataReader.Close or .Dispose results
• The type initializer for 'System.Data.Sq
• wwhich version of ADO.NET for DB Mirrori
• how to get a javascript value in c#
• VB.Net Data Storage
• Help!!! Fail to update Oracle CLOB colum
• Deny access to all my .mdb in a directory
• add parameters to oledb
• DataView RowFilter not filtering on perc
• Framework Versions
• Default Values with a DataSet and SQL Se
• Active Directory+Database
• ASP.NET/SQL Server/IIS - Not preserving