Bineesh  Viswanath

Bineesh Viswanath

  • NA
  • 1k
  • 780.2k

How to implement unique page style to all .aspx in ASP.NET

Dec 18 2013 8:03 AM
Sir, I am in the midst of a confusion that How can inherit a page design pattern to multiple  web form in asp.net.

What I want is , I created a  WebUserControl1.asax  page and made some disigns in it. I want this design in all .aspx pages too.


How can I do this?, please help me.



WebUserControl1.asax page:-


<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl1.ascx.cs" Inherits="ASP_Hotel_Room_Reservation.Web_User_Control.WebUserControl1" %>
<div style="width:100%; height:150px; background-color:#6b8e23;">
<h1 style="margin:30px 30px 60px 30px; width: 385px;">Hotel Reservation System</h1>
</div>

<div style="background-color:Silver; height:30px; border:2px solid maroon; font-size:20px; ">

 
</div>
<div style="float:left; width:150px; height:600px; background-color:steelBlue;"></div>
<div style="float:right; width:150px; height:600px; background-color:steelBlue;"></div>


And here my .aspx page:-

 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfrmCustomer.aspx.cs" Inherits="ASP_Hotel_Room_Reservation.Web_Forms.wfrmCustomer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <title></title>
</head>
<body>
  <form id="form1" runat="server">
  <div>
 
  </div>
  </form>
</body>
</html>


Answers (1)