<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" MasterPageFile="~/Transaction.master"
CodeFile="TJFAS109.aspx.cs" Inherits="TJFAS109" %>
<%@ Register TagPrefix="Teja" TagName="DateTime" Src="~/UserControl/DateSelector.ascx" %>
<asp:Content ContentPlaceHolderID="Tran" runat="server">
<script type="text/javascript" language="javascript">
function GetValueTJFS109()
{
__doPostBack('<%= AddNewPrepare.UniqueID %>','');
}
</script>
<ajax:ScriptManager ID="Script1" runat="server">
</ajax:ScriptManager>
<ajax:UpdatePanel ID="Update1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<table class="table" cellspacing="0">
<tr>
<td class="title" colspan="4">
<asp:Label ID="LabelHeading" runat="server" Text="General Ledger>>Financial Documents>>Document Creation"></asp:Label>
</td>
</tr>
<tr>
<td style="height: 400px">
<asp:Panel runat="server" ID="pnlMain">
<table align="center">
<tr>
<td>
<asp:Button ID="ButtonPrepare" runat="server" Text="Prepare" OnClick="ButtonPrepare_Click"
Width="150px" /></td>
<td>
</td>
<td>
<asp:Button ID="ButtonVerify" runat="server" Text="Verify" OnClick="ButtonVerify_Click"
Width="150px" /></td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
<asp:Button ID="ButtonAuthorize" runat="server" Text="Authorize" OnClick="ButtonAuthorize_Click"
Width="150px" /></td>
<td>
</td>
<td>
<asp:Button ID="ButtonViewDocument" runat="server" Text="View Document" OnClick="ButtonViewDocument_Click"
Width="150px" /></td>
</tr>
</table>
</asp:Panel>
<br />
<asp:Panel ID="pnlPrepare" runat="server">
<table align="center">
<tr>
<td>
<asp:Label ID="LabelDocmentcode" runat="server" Text="Doc.Code"></asp:Label></td>
<td>
<asp:DropDownList ID="DropDownListDocumentcode" runat="server" Width="100px">
</asp:DropDownList>
<asp:RequiredFieldValidator ID="reqDocode" runat="server" ControlToValidate="DropDownListDocumentcode"
SetFocusOnError="True" InitialValue="" ValidationGroup="req">*</asp:RequiredFieldValidator></td>
<td>
<asp:Label ID="labelDocno" runat="server" Text="Pov.Doc.No"></asp:Label></td>
<td>
<asp:TextBox ID="TextBoxDocumentno" runat="server" Width="100px"></asp:TextBox>
<asp:RequiredFieldValidator ID="reqDocno" runat="server" ControlToValidate="TextBoxDocumentno"
SetFocusOnError="True" ValidationGroup="req">*</asp:RequiredFieldValidator></td>
<td>
<asp:CheckBox ID="CheckBoxPrint" runat="server" Text="Print" Width="57px" /></td>
<td style="width: 3px">
</td>
<td style="width: 3px">
</td>
</tr>
<tr>
<td>
<asp:Label ID="LabelPostingdate" runat="server" Text="Posting Date" Width="85px"></asp:Label></td>
<td>
<Teja:DateTime ID="DtPostingdate" runat="server" AutoPostBack="false" Enable="true" />
</td>
<td>
<asp:Label ID="LabelDocdate" runat="server" Text="Doc.Date"></asp:Label></td>
<td>
<Teja:DateTime ID="dtDocdate" runat="server" AutoPostBack="false" Enable="true" />
</td>
<td>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="check" Width="20px" /></td>
<td style="width: 3px">
</td>
<td style="width: 3px">
</td>
</tr>
<tr>
<td>
<asp:Label ID="LabelNarration" runat="server" Text="Narration"></asp:Label></td>
<td colspan="2">
<asp:TextBox ID="TextBoxNarration" runat="server" Width="197px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBoxNarration"
SetFocusOnError="True" ValidationGroup="req">*</asp:RequiredFieldValidator></td>
<td>
<asp:Label ID="LabelBasecurrency" runat="server" Text="Base Currency"></asp:Label></td>
<td>
<asp:TextBox ID="TextBoxBasecurrency" runat="server" Enabled="False" Width="100px"></asp:TextBox></td>
<td style="width: 3px">
</td>
<td style="width: 3px">
</td>
</tr>
<tr>
<td>
<asp:Label ID="LabelRemarks" runat="server" Text="Remarks"></asp:Label></td>
<td colspan="4">
<asp:TextBox ID="TextBoxRemarks" runat="server" Width="450px"></asp:TextBox></td>
<td colspan="1" style="width: 3px">
<asp:Label ID="LabelFinalDocno" runat="server" Text="Final document N" Visible="False"
Width="100px"></asp:Label></td>
<td colspan="1" style="width: 3px">
<asp:TextBox ID="TextBoxProvNo" runat="server" Width="100px" Visible="False"></asp:TextBox></td>
</tr>
<tr>
<td align="center" colspan="5" style="height: 15px">
<asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="SingleParagraph"
HeaderText="* Fields Mantatory" ValidationGroup="req" />
</td>
<td align="center" colspan="1" style="width: 3px; height: 15px">
</td>
<td align="center" colspan="1" style="width: 3px; height: 15px">
</td>
</tr>
</table>
<div style="height: 160px; width: 900px; overflow-x: scroll; overflow-y: hidden">
<asp:Panel ID="Panel1" runat="server" Height="25px" Width="1200px">
<div class="gridviewHeader" style="height: 25px; width: 1200px;" align="left">
<table>
<tr>
<td style="width: 80px; height: 15px;">
<asp:Label ID="Label4" runat="server" Text="Dept"></asp:Label></td>
<td style="width: 80px; height: 15px;" align="center">
<asp:Label ID="Label1" runat="server" Text="Leger"></asp:Label></td>
<td style="width: 80px; height: 15px;" align="center">
<asp:Label ID="Label2" runat="server" Text="Account"></asp:Label></td>
<td style="width: 100px; height: 15px;" align="center">
<asp:Label ID="Label3" runat="server" Text="Party Ref No"></asp:Label></td>
<td align="center" style="width: 100px; height: 15px">
<asp:Label ID="Label16" runat="server" Text="Party Ref Date"></asp:Label></td>
<td style="width: 100px; height: 15px;" align="center">
<asp:Label ID="Label5" runat="server" Text="Narration"></asp:Label></td>
<td style="width: 100px; height: 15px;" align="right">
</td>
<td style="width: 60px; height: 15px;" align="right">
<asp:Label ID="Label7" runat="server" Text="Cr/Dr"></asp:Label>
</td>
<td style="width: 120px; height: 15px;" align="right">
<asp:Label ID="Label8" runat="server" Text="Amount"></asp:Label></td>
<td style="width: 140px; height: 15px;" align="center">
<asp:Label ID="Label12" runat="server" Text="Fc.Code"></asp:Label></td>
<td style="width: 100px; height: 15px;" align="center">
<asp:Label ID="Label13" runat="server" Text="Fc.Rate"></asp:Label></td>
<td style="width: 100px; height: 15px;" align="right">
<asp:Label ID="Label14" runat="server" Text="Fc.Amount"></asp:Label></td>
</tr>
</table>
</div>
</asp:Panel>
<div style="height: 120px; overflow-y: auto; overflow-x: hidden; width: 1220px;">
<asp:GridView ID="grdPrepare" runat="server" AutoGenerateColumns="False" ShowHeader="False">
<Columns>
<asp:TemplateField HeaderText="Dept">
<ItemTemplate>
<asp:DropDownList ID="ddlDepartment" Width="80px" runat="server" AutoPostBack="true"
OnSelectedIndexChanged="ddlDepartment_SelectedIndexChanged">
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Ledger">
<ItemTemplate>
<asp:DropDownList ID="ddlLedger" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlLedger_SelectedIndexChanged1"
Width="80px">
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Account">
<ItemTemplate>
<asp:DropDownList ID="ddlAccount" Width="80px" runat="server" AutoPostBack="True"
OnSelectedIndexChanged="ddlAccount_SelectedIndexChanged">
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Party Ref.No">
<ItemTemplate>
<asp:DropDownList ID="ddlParty" Width="100px" runat="server">
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Party Ref.Date">
<ItemTemplate>
<asp:TextBox ID="txtRefdate" Width="100px" Text='<%# Bind("GLDD_PARTY_REF_DATETIME") %>'
runat="server"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Narration">
<ItemTemplate>
<asp:TextBox ID="txtNarration" Width="200px" Text='<%# Bind("GLDD_DOC_NARR") %>'
runat="server"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Cr/Dr">
<ItemTemplate>
<asp:DropDownList ID="ddlDocumentindex" Width="75px" runat="server" AutoPostBack="True"
OnSelectedIndexChanged="ddlDocumentindex_SelectedIndexChanged">
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Amount">
<ItemTemplate>
<asp:TextBox ID="txtAmount" Text='<%# Bind("GLDD_LC_AMOUNT") %>' runat="server" OnTextChanged="txtAmount_TextChanged"
AutoPostBack="true"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Fc.code">
<ItemTemplate>
<asp:DropDownList ID="ddlFccode" runat="server" Width="100px" AutoPostBack="True"
OnSelectedIndexChanged="ddlFccode_SelectedIndexChanged">
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Fc.Rate">
<ItemTemplate>
<asp:TextBox ID="txtFcrate" Width="90px" Text='<%# Bind("GLDD_FC_RATE") %>' Enabled="false"
runat="server"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Fc.Amount">
<ItemTemplate>
<asp:TextBox ID="txtFcamount" Width="90px" Text='<%# Bind("GLDD_FC_AMOUNT") %>' runat="server"
AutoPostBack="True" OnTextChanged="txtFcamount_TextChanged"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="old LC Amount" Visible="False">
<ItemTemplate>
<asp:TextBox ID="txtOldAmount" Text='<%# Bind("OLD_GLDD_LC_AMOUNT") %>' runat="server"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="old Cr-Dr " Visible="False">
<ItemTemplate>
<asp:TextBox ID="txtOldCrDr" Text='<%# Bind("OLD_DR_CR") %>' runat="server"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
</div>
<table align="center">
<tr>
<td>
<asp:Label ID="Label6" runat="server" Text="Dep.Name"></asp:Label></td>
<td>
<asp:TextBox ID="TextBoxDepartmentname" runat="server" Enabled="False"></asp:TextBox></td>
<td>
<asp:Label ID="Label9" runat="server" Text="Debit"></asp:Label></td>
<td>
<asp:TextBox ID="TextBoxTotalDebit" runat="server" Enabled="False"></asp:TextBox></td>
</tr>
<tr>
<td>
<asp:Label ID="Label10" runat="server" Text="Acc.Name"></asp:Label></td>
<td>
<asp:TextBox ID="txtAccountname" runat="server" Enabled="False"></asp:TextBox></td>
<td>
<asp:Label ID="Label11" runat="server" Text="Credit"></asp:Label></td>
<td>
<asp:TextBox ID="TextTotalCr" runat="server" Enabled="False"></asp:TextBox></td>
</tr>
<tr>
<td align="right" colspan="4">
<asp:Button ID="AddNewPrepare" runat="server" Text="AddNew" Visible="False" OnClick="AddNewPrepare_Click" />
<asp:Button ID="ButtonOK" runat="server" Text="Ok" Width="100px" OnClick="ButtonOK_Click"
ValidationGroup="req" />
<asp:Button ID="ButtonSendToVerify" runat="server" Text="Send To Verify" Width="100px" />
<asp:Button ID="ButtonMainMenu" runat="server" Text="Main Menu" OnClick="ButtonMainMenu_Click"
Width="100px" />
</td>
</tr>
</table>
</asp:Panel>
</td>
</tr>
</table>
</ContentTemplate>
</ajax:UpdatePanel>
</asp:Content>
I am using this source code for me
--------------------------------------------------------------- Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near ='ja' ---------------------------------------------------------------------- pls help me