Archive for June, 2009

Dot Net Troubleshooting

June 24, 2009

Exception  : System.Web.HttpException 1
Content controls have to be top-level controls in a content page or a nested master page that references a master page.

Causes:
You have content in the same way like the old .aspx file including tags. However, when you use a master page, all content on all other pages should go into tag.

Solution:
Example,

%@Page Language=”VB” AutoEventWireup=”False” CodeFile=”Login.aspx.vb” Inherits=”Login” MasterPageFile=”Masterpage.master”%

<asp:content id=”content” contentplaceholderid=”contentplaceholder1″ runat=”server”>

content goes here!

</asp:content>

————————————————————————————————————————————————-

Exception : System.Web.Exception 1

Content controls are only allowed in content page that references a master page.

Causes : Missing MasterPageFile=”Masterpage.master” attribute in current file.

Solution  : Add it.

————————————————————————————————————————————————-

Hello world!

June 24, 2009

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!


Follow

Get every new post delivered to your Inbox.