Dear Sir,
I have write all code, but i am getting error.
Server Error in '/' Application.
A page can have only one server-side Form tag.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: A page can have only one server-side Form tag.
Stack Trace:
[HttpException (0x80004005): A page can have only one server-side Form tag.]
System.Web.UI.Page.OnFormRender() +9771466
|
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.9191.0
HTML
<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeFile="inbox.aspx.cs" Inherits="masterpg.inbox" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
<form id="form1" runat="server">
<div class="container">
<table width="1150px" height="450px" border="1">
<tr>
<td style="font-size: xx-small; background-color: #003366;" class="auto-style5">
<asp:GridView ID="GridView1" runat="server" CssClass="table table-striped table-hover"
DataKeyNames="Id" AutoGenerateColumns="False" GridLines="Horizontal" BackColor="White"
BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="1650px">
<AlternatingRowStyle BackColor="#F7F7F7" />
<Columns>
<asp:TemplateField HeaderText="ID">
<ItemTemplate>
<asp:Label ID="Id" runat="server" Text='<%# Eval("Id") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Employee Id">
<ItemTemplate>
<asp:Label ID="EmpCode" runat="server" Text='<%# Eval("EmpCode") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Asset Name">
<ItemTemplate>
<asp:Label ID="asst_typ" runat="server" Text='<%# Eval("asst_typ") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Location">
<ItemTemplate>
<asp:Label ID="lcn" runat="server" Text='<%# Eval("lcn") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Purpose">
<ItemTemplate>
<asp:Label ID="prps" runat="server" Text='<%# Eval("prps") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Remark">
<ItemTemplate>
<asp:Label ID="rmk" runat="server" Text='<%# Eval("rmk") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Action">
<ItemTemplate>
<asp:LinkButton ID="lnkBtnEdit" runat="server" Text="View" CssClass="btn btn-info"
OnClick="Display"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
<PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
<RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
<SortedAscendingCellStyle BackColor="#F4F4FD" />
<SortedAscendingHeaderStyle BackColor="#5A4C9D" />
<SortedDescendingCellStyle BackColor="#D8D8F0" />
<SortedDescendingHeaderStyle BackColor="#3E3277" />
</asp:GridView>
</td>
</tr>
</table>
</div>
<div>
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
×</button>
<h4 class="modal-title">Requst Details</h4>
</div>
<div class="modal-body">
<div class="col-lg-12 col-sm-12 col-md-12 col-xs-12">
<div class="form-group">
<font size='2'>
<b>ID :</b> <asp:Label ID="Id" runat="server" Text="Id"></asp:Label> <br /><br />
<b>Employee Id : </b><asp:Label ID="EmpCode" runat="server" Text="EmpCode"></asp:Label>
</font>
</div>
<font size='2'>
<div class="form-group">
<b>Asset Type : </b> <asp:Label ID="asst_typ" runat="server" Text=""></asp:Label>
</font>
</div>
<font size='2'>
<div class="form-group">
<b>Location : </b><asp:Label ID="lcn" runat="server" Text="lcn"></asp:Label> ,
<b>Purpose : </b><asp:Label ID="prps" runat="server" Text="prps"></asp:Label><br /><br />
<b>Remark : </b><asp:Label ID="rmk" runat="server" Text="rmk"></asp:Label>
</div>
</font>
</div>
<font size='2'>
<div class="form-group">
<b>Asset Status : <asp:dropdownlist runat="server" id="ddlTest">
<asp:listitem text="Available" value="Available"></asp:listitem>
<asp:listitem text="Not Available" value="Not Available"></asp:listitem>
</asp:dropdownlist>
<b>Intalation date : </b><asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
</b><br /><br />
<b>Asset Serial No. : </b><asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
</b><br /><br />
<b>Remark : </b><asp:TextBox ID="TextBox1" runat="server" width="300px"></asp:TextBox>
</div>
</font>
</div>
<div class="modal-footer">
<asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" ToolTip='Click here to Save Data' CssClass="btn btn-info" />
<asp:Button ID="btnchk" runat="server" Text="Check" OnClick="btnchk_Click" ToolTip='Click here to Check Asset Details' CssClass="btn btn-info" />
<button type="button" class="btn btn-info" data-dismiss="modal">
Close</button>
</div>
</div>
</div>
</div>
<script type='text/javascript'>
function openModal() {
$('[id*=myModal]').modal('show');
}
</script>
</form>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>