Link to home
Start Free TrialLog in
Avatar of Stanton_Roux
Stanton_RouxFlag for South Africa

asked on

Accessing page by url

Hi There

I have a url that gets posted to my web site from another application .
when that url is posted to the site it does some proccessing

http://www.mysite.com/test/default.asp?var1=xxx&var2=yyy
When I type in the url in my browser i get the following error message

Using themed css files requires a header control on the page. (e.g. <head runat="server" />).

How do I set up a aspx page to handle http posts.
The page must not be opened it must just run its process in the background
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Medibook.Business;
 
public partial class _SMSReciever : Page
{
  private MessengerManager m_messenger;
  private string SentFromNo;
  private string strMessage;
  private string MOBILE_MESSAGE;
 
  protected void Page_Load(object sender, EventArgs e)
  {
      SentFromNo = Request.QueryString["From"];
      strMessage = Request.QueryString["Text"];
     
      
  }
    private void sendToEmergencyContacts()
    {
       
        MOBILE_MESSAGE = "Testing two way sms";
 
 
        m_messenger = new MessengerManager("+" + SentFromNo, "+27840031277", MOBILE_MESSAGE + "-" + strMessage);
        m_messenger.process();
       
        return;
    }
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of RusselR
RusselR

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial