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

Stanton_RouxAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RusselRCommented:
If the page is never intended to be human viewed you are better of using a "Generic Handler" instead of a .net WebForm.
I suspect the message you are getting is because you are using .NET Themes in your WebForms perhaps through a base page class? The automatic application of a stylesheet to your page through theming is failing possibly due to an alteration of the html of the form?

If this is correct then you either need to detach this page from your theming (view the html page tag and check for Theme="xxxx" - remove it , or , unlink it from your page class/modify behaviour of)

Using a generic handler avoids the association of the html to the page.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.