Accessing page by url

Posted on 2008-11-17
Last Modified: 2012-08-13
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
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);






Open in new window

Question by:Stanton_Roux
    1 Comment
    LVL 3

    Accepted Solution

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video discusses moving either the default database or any database to a new volume.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now