Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

ajax calendar problem in gridview

$
0
0
<asp:TemplateField HeaderText="Interview Date"><EditItemTemplate><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><ajax:CalendarExtender ID="CalendarExtender1"
                         runat="server" TargetControlID="TextBox1"/></EditItemTemplate></asp:TemplateField>

this gives me an error, when i click on EDIT button in gridview, even ajaxtools are installed and work when i use them simply,

Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "AjaxControlToolkit.Properties.Resources.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.

i added script manager but i gives me another error then :

Extender controls may not be registered before PreRender.

Here is full code :


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ajaxCalendar.aspx.cs" Inherits="ajaxCalendar" %><%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %><%@ Register TagPrefix="Ajaxified" Assembly="Ajaxified" Namespace="Ajaxified" %><!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></head><body><form id="form1" runat="server"><div><asp:GridView ID="GridView1" runat="server" AllowPaging="True"
            AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="teamid"
            DataSourceID="SqlDataSource1"><Columns><asp:CommandField ShowDeleteButton="True" ShowEditButton="True" /><asp:BoundField DataField="teamid" HeaderText="teamid" InsertVisible="False"
                    ReadOnly="True" SortExpression="teamid" /><asp:BoundField DataField="name" HeaderText="name" SortExpression="name" /><asp:BoundField DataField="designation" HeaderText="designation"
                    SortExpression="designation" /><asp:BoundField DataField="commiteerole" HeaderText="commiteerole"
                    SortExpression="commiteerole" /><asp:BoundField DataField="signature" HeaderText="signature"
                    SortExpression="signature" /><asp:BoundField DataField="userid" HeaderText="userid"
                    SortExpression="userid" /><asp:TemplateField HeaderText="Interview Date"><EditItemTemplate ><Ajax:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"/><asp:TextBox ID="txtCal" runat="server"/><Ajax:CalendarExtender ID="CalendarExtender1" runat="server"
                       TargetControlID="txtCal"  SelectedDate="6/6/2012" ></Ajax:CalendarExtender></EditItemTemplate></asp:TemplateField></Columns></asp:GridView><asp:SqlDataSource ID="SqlDataSource1" runat="server"
            ConnectionString="<%$ ConnectionStrings:Waleed_orsfinalConnectionString36 %>"
            DeleteCommand="DELETE FROM [tblScruitnyTeam] WHERE [teamid] = @teamid"
            InsertCommand="INSERT INTO [tblScruitnyTeam] ([name], [designation], [commiteerole], [signature], [userid]) VALUES (@name, @designation, @commiteerole, @signature, @userid)"
            SelectCommand="SELECT * FROM [tblScruitnyTeam]"
            UpdateCommand="UPDATE [tblScruitnyTeam] SET [name] = @name, [designation] = @designation, [commiteerole] = @commiteerole, [signature] = @signature, [userid] = @userid WHERE [teamid] = @teamid"><DeleteParameters><asp:Parameter Name="teamid" Type="Int32" /></DeleteParameters><UpdateParameters><asp:Parameter Name="name" Type="String" /><asp:Parameter Name="designation" Type="String" /><asp:Parameter Name="commiteerole" Type="String" /><asp:Parameter Name="signature" Type="String" /><asp:Parameter Name="userid" Type="Int32" /><asp:Parameter Name="teamid" Type="Int32" /></UpdateParameters><InsertParameters><asp:Parameter Name="name" Type="String" /><asp:Parameter Name="designation" Type="String" /><asp:Parameter Name="commiteerole" Type="String" /><asp:Parameter Name="signature" Type="String" /><asp:Parameter Name="userid" Type="Int32" /></InsertParameters></asp:SqlDataSource></form></body></html>




Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>