Hi,
Please find the code below for both aspx and aspx.cs file.
When we click the small text box, then the calender extender is opening at the top of our page. ie. the calendar opening position is wrong and also when we choose the date it is not reflected in text box.
Default.aspx
Code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default"
ValidateRequest="false" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="aspx" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register TagPrefix="rapidspellweb" Namespace="Keyoti.RapidSpell" Assembly="Keyoti.RapidSpellWeb.ASP.NETv2" %>
<!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 runat="server">
<title>Untitled Page</title>
<style type="text/css">
#form1
{
width: 691px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td>
<asp:TextBox ID="txtPlan" runat="server" Height="385px" Width="710px" TextMode="MultiLine"></asp:TextBox>
<script src="Keyoti_RapidSpell_Web_Common/RapidSpell-AYT.js" type="text/javascript"></script>
</td>
<td>
<asp:TextBox ID="dtpDueon" runat="server" Height="21px" Width="168px" Style="vertical-align: middle" />
<aspx:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="dtpDueon">
</aspx:CalendarExtender>
</td>
</tr>
</table>
<aspx:ToolkitScriptManager ID="scriptMngr" runat="server">
</aspx:ToolkitScriptManager>
</div>
</form>
</body>
</html>
Default.aspx.cs
Code:
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
txtPlan.Text = @"* Testtting data Line Item 1
* Testing data Line Item two
* Testing data Line Item threr Testing dataa Linee Item 4 Testing datta Line Item five
* Testing forr thee inserrtion of star in betweene
* Testing data Line Item 3 Testing data Line Item 4 5 6
* Testing data Line Item to savee";
}
}
Please check with this and send us the corrections as soon as possible