Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!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 id="Head1" runat="server">
<title>Franco Design Catalog</title>
</head>
<body>


<form id="form1


</body>
<%@ Master Language="C#" MasterPageFile="/templates/main.master" %>
<asp:contentplaceholder runat="server" id="customHead" />
<asp:content id="homeContent" contentPlaceHolderId="masterContent" Runat="server">


<asp:contentplaceholder runat="server" id="infoContent"/>



<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">

My Address Book





Id Full Name Company Phone Email





Add A Contact



First Name <asp:TextBox runat="server" ID="txtFirstName" />
Last Name <asp:TextBox runat="server" ID="txtLastName" />
Company <asp:TextBox runat="server" ID="txtCompany" />
Phone <asp:TextBox runat="server" ID="txtPhone" />
Email <asp:TextBox runat="server" ID="txtEmail" />
<asp:Button Text="Save" runat="server" ID="btnSave" />





<asp:TextBox ID="txtSearch" runat="server" />
<asp:Button ID="btnSearch" runat="server" Text="Search" OnClientClick="search();return false;" />










<asp:TextBox ID="txtDelete" runat="server" />
<asp:Button ID="btnDelete" runat="server" Text="Delete" OnClientClick="deleteuser();return false;" />

</html>
Posted
Updated 7-Mar-14 9:02am
v2
Comments
Krunal Rohit 7-Mar-14 15:03pm    
What is happening ?

-KR
phil.o 7-Mar-14 15:05pm    
That is not a question, just a code dump - an unformatted code dump.
You should describe concrete and actual error message(s); there is a very tiny chance someone will dig into your code to find what is wrong without you describing your concrete issues.
Help us to help you.
petra.elhashem 7-Mar-14 15:07pm    
is this the full full source code? coz u have many unclosed tags along with wrong structure.
Start by creating ur masterpage. then when creating ur default.aspx page u get to choose if it has a master page or not. start by fixing these
Smith2014 7-Mar-14 15:18pm    
Here is the error message gotten:

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The directive 'master' is unknown.

Source Error:



Line 14: </form>
Line 15: </body>
Line 16: <%@ Master Language="C#" MasterPageFile="/templates/main.master" %>
Line 17: <asp:contentplaceholder runat="server" id="customHead" />
Line 18: <asp:content id="homeContent" contentPlaceHolderId="masterContent" Runat="server">
petra.elhashem 7-Mar-14 15:24pm    
hi smith u seem really new to asp.net if u want i can guide u along send ur skype name and i will add u.

You can't just grab random bits of the internet and chuck them together into a single file and hope it all works.

It won't.
As you are starting to see.
You need to look at what you are grabbing, extract the bits that are relevant to your application and include those only - not grab the lot and start praying.

Even then, you will have to understand what the code you are adding is doing, and how it does it.

This is not a strategy that is going to work. You need to learn how ASP.NET works, how JavaScript world's, how C# works.

I don't know if this is a proper job you have blagged your way into, or homework that is way, way beyond your abilities as yet, but you are in way over your depth, and it is very unlikely that you will be able to do anything really useful without significant training.

Sorry, but there really is no alternative. You need to learn how to do this properly.
 
Share this answer
 
v2
Hi,
If this is your full page source code,then its whole writing structure is incorrect format that's the big issue.So you have to go through the HTML format how to write.U cant copy like everything from internet.Most important in this source of page master page is used.So try to add a master page.That's why its showing that error.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900