Showing posts with label Ajax. Show all posts
Showing posts with label Ajax. Show all posts

Thursday, October 23, 2014

How To retain aspajax:CalendarExtender selected value after postback




Try This below snippet to retain the CalendarExtender selected value after postback


if(isPostback)
{
           YourCalendarExtender.SelectedDate =
                    DateTime.ParseExact(YourTextBox.Text, YourCalendarExtender.Format, null);
}

Wednesday, March 19, 2008

Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

Solution
If Your Using Ajax Extension In Your Project Then you have to Add This following Dll To Your Project Bin folder System.Web.Extensions.Design.dllSystem.Web.Extensions.dll,because it may not be installed in the server where you are hosting your project,thats why you are getting the following Parser Error Message.

Line 63: </httpHandlers>
Line 64: <httpModules>
Line 65: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
Line 66: </httpModules>
Line 67:
Note:Add that Two Dll to your project, this two dll available in the following Path if you installed ajax extension in your system,
C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025

Friday, October 19, 2007

Solution For Sys.WebForms.PageRequestManagerTimeoutException

< asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeOut="300" >

</
asp:ScriptManager>

By Default AsyncPostBackTimeOut Property Value's 90 sec

Ajax UpdatePanal Custom Error Handling

Put This Code Within Inline Form Tag,
Note:Dont Put This JavaScript As a Seperate js File in your project,
use within a form tag

<form id="form1" runat="server">
<script language="javascript" type="text/javascript">


function pageLoad(sender, args)
{

Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequest);
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequest);

}

function beginRequest(sender, args)
{

.
.
.


}

function endRequest(sender, args)
{

var e = args.get_error();

if (e != null)
{
args.set_errorHandled(true);
alert('Custom Error');
}

}
</script>
</form>

Sunday, September 23, 2007

AJAX Control Toolkit 10920 Released

AJAX Control Toolkit 10920 released on 09-20-2007,

More Details and Download,