Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Accessing page by url

Posted on 2008-11-17
Medium Priority
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

Accepted Solution

RusselR earned 2000 total points
ID: 22974347
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.

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
Suggested Courses
Course of the Month13 days, 7 hours left to enroll

581 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