Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
my form is
XAML
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/invent/Mstinvent.master" CodeBehind="in_cashbook2.aspx.vb" Inherits="in_fisheries4.in_cashbook2" %>
<%@ Register TagPrefix="uc1" TagName="menu" Src="menu.ascx" %>
<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 
<script language="javascript" type="text/javascript">

 
function show()

{

document.write("<head></head>");
}
</script>
    <div style="height: 1000px ;float :none ">
  
<%--<asp:ScriptManager runat="server">
--%>
        <ajaxToolkit:ToolkitScriptManager  runat="server">
        
    <ajaxToolkit:TabContainer ID="TabContainer1"  runat="server" OnClientActiveTabChanged="ClientFunction"  ActiveTabIndex="0"        
         önDemand="true"         AutoPostBack="false" TabStripPlacement="Top"  CssClass="ajax__tab_xp" UseVerticalStripPlacement="true"
        VerticalStripWidth="120px"   Width="875px" Height="600px" Font-Underline="False" Enabled="true"    EnableTheming="True" ScrollBars="Auto" EnableViewState="False"  >
        <asp:TabPanel runat="server" HeaderText="CashBook Entry " ScrollBars="Auto" 
            ID="TabPanel1" OnDemandMode="Once">
            <contenttemplate>
            <table style="width: 545px">
            <tr><td style="width: 64px; height: 32px"></td>
            <td style="height: 32px"><asp:Label ID="Label46" runat="server" Font-Bold="True" Font-Names="Verdana" Font-Size="17px" Text="Step 1 - Entry To CashBook" Width="331px">
            </td><td style="width: 49px; height: 32px"></td>
            <td class="next_button_right" style="width: 50px; height: 32px" id="Step1_Next" önclick="SetActiveTab('<%=TabContainer1.ClientID%>', 1)"></td></tr>
            <tr><td style="width: 64px; height: 13px;"></td><td style="height: 13px"></td>
            <td style="width: 49px; height: 13px;"></td><td style="width: 50px; height: 13px; text-align: center;">Next</td>
            </tr></table>
            <table style="width: 544px"><tr><td><asp:Label ID="Label47" runat="server" Text="Entry Details" Font-Bold="True" 
        Font-Size="12px" Width="148px" Font-Names="Verdana">
        </td>
        <td style="width: 166px">
        </td>
        <td style="width: 187px"></td></tr><tr><td><asp:Label ID="Label48" runat="server" Text="Date:" Font-Names="Verdana"  Font-Size="12px"></td>
        <td style="width: 166px"><asp:TextBox ID="txtadmin_username" runat="server"></td><td style="width: 187px"></td></tr>
        <tr><td style="height: 20px"><asp:Label ID="Label49" runat="server" Text="Ledger:" Font-Names="Verdana"   Font-Size="12px"></td>
        <td style="width: 166px; height: 20px"><asp:DropDownList ID="DropDownList1" runat="server" Height="16px" Width="162px"></td>
        <td style="width: 187px; height: 20px"></td></tr><tr><td style="height: 20px">
        <asp:Label ID="Label50" runat="server" Text="Amount:" Font-Names="Verdana"   Font-Size="12px"></td>
        <td style="width: 166px; height: 20px"><asp:TextBox ID="txtadmin_SecQues" runat="server"></td>
        <td style="width: 187px; height: 20px"></td></tr><tr><td style="height: 20px">
        <asp:Label ID="Label51" runat="server" Text="Remarks:" Font-Names="Verdana" Font-Size="12px"></td>
        <td style="width: 166px; height: 20px"><asp:TextBox ID="txtadmin_SecAns" runat="server"></td>
        <td style="width: 187px; height: 20px"></td></tr>
        <tr><td style="height: 20px"></td><td style="width: 166px; height: 20px"><asp:Button ID="Button1" runat="server" Text="Sbmit" /></td>
        <td style="width: 187px; height: 20px"><asp:Button ID="Button2" runat="server" Text="Proceed For Verification" /></td>
        </tr><caption> </caption>
        </table>
        <table style="width: 545px"><tr><td><asp:DataGrid ID="sanctiongrid" runat="server" AutoGenerateColumns="False" 
                    BackColor="White" BorderColor="#CCCCCC" BorderStyle="Dashed" BorderWidth="1px" 
                    Font-Names="Arial" Font-Size="Small" HorizontalAlign="Center" PageSize="2"><footerstyle backcolor="White" forecolor="#000066" /><SelectedItemStyle BackColor="#669999" Font-Bold="True" ForeColor="White" /><alternatingitemstyle backcolor="Ivory" forecolor="Black">
                        HorizontalAlign="Center" /><itemstyle forecolor="Black" horizontalalign="Center" /><HeaderStyle BackColor="PaleGoldenrod" Font-Bold="True" Font-Size="X-Small" 
                        ForeColor="Black" HorizontalAlign="Center" />
                        <columns>
                        <asp:TemplateColumn HeaderText="S No">
                        <itemtemplate>
                        </itemtemplate>
                        <asp:TemplateColumn HeaderText="Date">
                        <itemtemplate><asp:Label ID="Label4" runat="server" Text=''>
										</itemtemplate>
                                        <asp:TemplateColumn HeaderText="Item"><itemtemplate><asp:Label ID="Label1" runat="server"  Text='gfdg'>
										</itemtemplate><edititemtemplate><asp:TextBox ID="TextBox1" runat="server"  Text=''>
										</edititemtemplate><asp:TemplateColumn HeaderText="Amount">
                                        <itemtemplate><asp:Label ID="Label13" runat="server"  Text=''>
										</itemtemplat><edititemtemplate><asp:TextBox ID="TextBox2" runat="server"   Text=''>
										</edititemtemplate><asp:TemplateColumn HeaderText="Remarks">
                                        <itemtemplate><asp:Label ID="Label4" runat="server" Text=''>
										<asp:Literal ID="Literal1" runat="server" Text=" ">
                                        </itemtemplate>
                                        </columns>
                                        <pagerstyle backcolor="White" forecolor="#000066" horizontalalign="Left" mode="NumericPages" nextpagetext="Next" prevpagetext="Previous" />
                                        
                                        </alternatingitemstyle></td></tr>
                                        </table>
                                        </contenttemplate>
            
        <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Verification">
           
        
         
        <asp:TabPanel ID="TabPanel3" runat="server" HeaderText="Print">
           
        
         
        <asp:TabPanel ID="TabPanel4" runat="server" HeaderText="Day Close">
           
        


    </div>


What I have tried:

No information provided.
Posted
Updated 2-Mar-20 1:34am
v2

1 solution

Your code currently has neither a HEAD or BODY section of the page, furthermore the page is not even declared as HTML.

The normal layout of an HTML page is to place meta information as well as the CSS within the HEAD code of the page. Javascript may be added within the HEAD or BODY sections. The ContentPlaceHolders are normally within the BODY section.

Your page should start off something like this
HTML
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/invent/Mstinvent.master" CodeBehind="in_cashbook2.aspx.vb" Inherits="in_fisheries4.in_cashbook2" %>
<%@ Register TagPrefix="uc1" TagName="menu" Src="menu.ascx" %>
<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%>

<!DOCTYPE html>
<html>
<head runat="server">
<title>The Title of my page</title>
   <meta name="description" content="about my page">
   <style type="text/css">
      // style information
   </style>
</head>
<body>
   <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

   <script language="javascript" type="text/javascript">   /* not needed */
//      function show() {
//         document.write("<head></head>");
//      }
   </script>

   <div style="height: 1000px ;float :none ">

   <!-- rest of your html, placeholders, asp:code, etc -->
</body>
</html>
The script function to write out the head element is not needed and has been commented out.

References:
HTML html tag[^]
HTML head tag[^]
 
Share this answer
 
v3
Comments
Richard Deeming 3-Mar-20 9:13am    
For ASP.NET, you'll need runat="server" on the <head> tag.

Also, it's more common to write HTML tags in lower-case these days. And you'll want a <!DOCTYPE html> at the top of the document, so that it doesn't render in "quirks mode". :)
MadMyche 3-Mar-20 10:29am    
I have adjusted the answer accordingly.
Richard Deeming 3-Mar-20 10:47am    
The runat="server" needs to be on the head tag, not the html tag. :)
Richard MacCutchan 3-Mar-20 11:02am    
Look at the date of the question boys. Mea culpa for adding the first comment.
Richard Deeming 3-Mar-20 11:05am    
D'Oh!

And phil.o for correcting the formatting yesterday morning.

I guess there was a spam answer which dragged this back up the list before being kicked.

But it's still a useful answer, in case someone else encounters the same problem. :)

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