Click here to Skip to main content
15,889,216 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDatalist Background Pin
Deepak-Tamil4-Jul-12 20:42
Deepak-Tamil4-Jul-12 20:42 
AnswerRe: Datalist Background Pin
Deepak-Tamil5-Jul-12 4:06
Deepak-Tamil5-Jul-12 4:06 
Generalasp.net 2010 code compare Pin
dcof3-Jul-12 10:56
dcof3-Jul-12 10:56 
GeneralRe: asp.net 2010 code compare Pin
jkirkerx3-Jul-12 11:53
professionaljkirkerx3-Jul-12 11:53 
GeneralRe: asp.net 2010 code compare Pin
dcof3-Jul-12 15:09
dcof3-Jul-12 15:09 
GeneralRe: asp.net 2010 code compare Pin
jkirkerx3-Jul-12 18:03
professionaljkirkerx3-Jul-12 18:03 
GeneralRe: asp.net 2010 code compare Pin
dcof4-Jul-12 14:45
dcof4-Jul-12 14:45 
Generalmasterpages Pin
jkirkerx5-Jul-12 7:08
professionaljkirkerx5-Jul-12 7:08 
The Project is writen in c#, so if your project is vb, then you have to translate the MasterPages.cs to vb and rename it MasterPages.vb

The MasterPages.cs file needs to be located in a folder called App_Code. This folder is for non dll class objects, and asp.net will compile everything in that folder to a dll in the background. In other words, the Dll's are located in the
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files 

folder, as shadow copy files.

I use the MasterPage webform, which does the same thing. You make a folder called MasterPages, and place a MasterPage webform type in it. Then you copy and paste your template web markup in it, assign your content region names, and create a regular webform that uses a masterpage, assign the masterpage, and populate your content regions.

The MasterPage has replaced the MasterPages.cs, has a standard item in asp.net, years ago probably back in 2004.

Do a new masterpage as a test, This is a new blank masterpage. The first line is required to tell asp.net that it's a masterpage. I think you can just paste this in, and change your

XML
<%@ Master Language="C#" %>

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

<script runat="server">

</script>

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

        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html>


replace this
<%@ Register TagPrefix="mp" namespace="Microsoft.Web.Samples.MasterPages" assembly="MasterPages" %>

with this
<%@ Master Language="C#" %>


replace this
<mp:region runat="server" id="region1">

with this
<asp:ContentPlaceHolder id="head" runat="server">

GeneralRe: asp.net 2010 code compare Pin
R. Giskard Reventlov3-Jul-12 16:35
R. Giskard Reventlov3-Jul-12 16:35 
GeneralRe: asp.net 2010 code compare Pin
BillWoodruff5-Jul-12 13:41
professionalBillWoodruff5-Jul-12 13:41 
GeneralRe: asp.net 2010 code compare Pin
jkirkerx6-Jul-12 6:58
professionaljkirkerx6-Jul-12 6:58 
Questioncreate website like blogigo Pin
marjan_gh3-Jul-12 9:04
marjan_gh3-Jul-12 9:04 
AnswerTry DotNetNuke Pin
David Mujica3-Jul-12 10:38
David Mujica3-Jul-12 10:38 
QuestionLogin problem Pin
serigraphie3-Jul-12 6:35
serigraphie3-Jul-12 6:35 
AnswerRe: Login problem Pin
jkirkerx3-Jul-12 8:28
professionaljkirkerx3-Jul-12 8:28 
Generalxsl and xsl fo transformations Pin
indian1433-Jul-12 5:42
indian1433-Jul-12 5:42 
SuggestionRe: xsl transformations Pin
AspDotNetDev3-Jul-12 7:20
protectorAspDotNetDev3-Jul-12 7:20 
GeneralRe: xsl and xslfo transformations Pin
indian1433-Jul-12 8:01
indian1433-Jul-12 8:01 
QuestionCreating Dynamic control in oninit method Pin
ankushbelorkar3-Jul-12 5:15
ankushbelorkar3-Jul-12 5:15 
AnswerRe: Creating Dynamic control in oninit method Pin
R. Giskard Reventlov3-Jul-12 5:20
R. Giskard Reventlov3-Jul-12 5:20 
AnswerRe: Creating Dynamic control in oninit method Pin
jkirkerx3-Jul-12 7:46
professionaljkirkerx3-Jul-12 7:46 
QuestionMultiple ScriptManager.RegisterStartupScript Issue Pin
Vimalsoft(Pty) Ltd2-Jul-12 21:11
professionalVimalsoft(Pty) Ltd2-Jul-12 21:11 
AnswerRe: Multiple ScriptManager.RegisterStartupScript Issue Pin
Sandeep Mewara2-Jul-12 23:18
mveSandeep Mewara2-Jul-12 23:18 
GeneralRe: Multiple ScriptManager.RegisterStartupScript Issue Pin
Vimalsoft(Pty) Ltd2-Jul-12 23:19
professionalVimalsoft(Pty) Ltd2-Jul-12 23:19 
GeneralRe: Multiple ScriptManager.RegisterStartupScript Issue Pin
Sandeep Mewara2-Jul-12 23:34
mveSandeep Mewara2-Jul-12 23:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.