Hello this is the first time I have used Ajax. I added ajax to my visual studio 2010 toolbox and pulled a calendar over my text box. When I run my site I get this error.
MissingManisfestResourceException
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AjaxControlToolkit.Properties.Resources.NET4.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.
Now it says I am missing ExtenderControlBase, Where can I get that?
My code of my calendar:
<asp:TextBox ID="txtBday" runat="server"
style="z-index: 1; left: 327px; top: 436px" Height="22px"></asp:TextBox><asp:CalendarExtender
ID="Birthday" runat="server"
onclientdateselectionchanged="CheckDateEalier" TargetControlID="txtBday"
PopupButtonID="btnBirth" PopupPosition="TopRight" >
</asp:CalendarExtender>
<asp:ImageButton ID="btnBirth" runat="server"
ImageUrl="~/images/calendaricon.jpg" />
It appears you forgot to reference the assembly at the top of your content file and need a script manager here is a working example hope it helps.
<%# Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:TextBox ID="TB" runat="server" />
<asp:CalendarExtender ID="C" runat="server" TargetControlID="TB">
</asp:CalendarExtender>
</form>
</body>
</html>
Related
I've created my first simple widget. It has some textboxes for input and output data and a button. After clicking it, it connects to web service through soap and send back needed data. Now, I've stumbled upon the issue of its deployment. What's the simplest way to deploy it on any sample site without it interfering with the content? How do I approach this and what should I do?
Here's my WebForm.aspx:
<%# Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WidgetTest3.WebForm1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<br />
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<br />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
<br />
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
<br />
<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
</div>
</form>
</body>
</html>
Thank you for your time.
The simplest way to deploy this from within Visual Studio is to use the Build -> Publish command and choose the File System publish method.
To prevent it from interfering with existing files, make sure that the "Delete all existing files prior to publish" is unchecked in the File Publish Options section of the Publish Web dialog.
I am trying to develop an Ajax based website. where is installed ajax control toolkit on visual studio 2010. I created a page.
Here is the code
<%# Page Language="C#" AutoEventWireup="true" CodeBehind="test2.aspx.cs" Inherits="QMSStandard.test2" %>
<%# Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!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></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1">
</asp:CalendarExtender>
</div>
</form>
when I run this page its shows error
Error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure
the correct version of the scripts are referenced. If you are using an
ASP.NET ScriptManager, switch to the ToolkitScriptManager in
AjaxControlToolkit.dll.
Kindly suggest how can i use these controls.
first remove <asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager> and then drag and drop <asp:ToolkitScriptManager> from Ajax Toolbox control
I am struggling with using the AJAX Control Toolkit in my ASP.NET code.
I downloaded and imported the dll files from the website and try to follow the instructions,...
<%# Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxtoolkit" %>
... inserted a Script Manager
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
and put the ajax MaskEditExtender under the text box that I want to check on:
<asp:TextBox ID="ind_customerRevenue" MaxLength="20" runat="server"></asp:TextBox>
<ajaxtoolkit:MaskedEditExtender ID="TextBox1_MaskedEditExtender" runat="server"
CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder=""
CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder=""
CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True"
Mask="99/99/9999" MaskType="Date" TargetControlID="ind_customerRevenue">
</ajaxtoolkit:MaskedEditExtender>
But when I debug the side it says:
0x800a138f - Microsoft JScript runtime error: 'Sys.Extended.UI' is null or not an object
What am I missing out? I cannot find an answer somehow. Thank you.
Use the ToolkitScriptManager instead of the default ScriptManager.
replace
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
with
<ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</ajaxToolkit:ToolkitScriptManager>
My assignment states: Create a site that is similar to Figure 8.9 in ASP.NET 4 Unleashed, but instead of a list of movie hyperlinks, create a list of your favorite activities (sports, reading, shopping etc.) The image in question is just a simple vertical listing of hyperlinked movies. I am running into issues as it will not build correctly though I have no errors or warnings. I do have a message that states
"Message 1 Validation (ASP.Net): Attribute 'ConnectionString' is not a valid attribute of element 'AccessDataSource'. c:\users\owner\documents\visual studio 2010\Projects\Activities\Activities\Activities.aspx 41 5 Activities"
My code is as follows
<%# Page Language="C#" AutoEventWireup="true" CodeBehind="Activities.aspx.cs"
Inherits="Activities.Activities" %>
<!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 id="Head1" runat="server">
<style type="text/css">
.floater
{
float:left;
border:solid 1px black;
padding:5px;
margin:5px;
}
</style>
<title>Activities</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Repeater
id="Repeater1"
DataSourceId="srcActivities"
Runat="server">
<ItemTemplate>
<asp:HyperLink
id="HyperLink1"
Text='<%# Eval("Type") %>'
NavigateUrl='<%# Eval("Activities.aspx?id={0}") %>'
runat="server" />
<br />
</ItemTemplate>
</asp:Repeater>
<asp:AccessDataSource
id="srcActivities"
ConnectionString="Data Source=.\Access;
AttachDbFilename=|Desktop|WD364|Activities.accdb;
Integrated Security=True;User Instance=True"
SelectCommand="SELECT Id, Type FROM Activities"
Runat="server" />
</div>
</form>
</body>
</html>
The database is a simple MS Access Table (there is only one) with a few rows and two columns. One the ID and one the Type with the names of the activities. Any help would be greatly apprecitated
Try this
<asp:hyperlink id="hlxx" runat="server"
NavigateUrl='<%# "~/Activities.aspx?id="+Eval("Type") %>'
Target='<%# "_blank" %>'>Eval("Type")</asp:hyperlink>
Or see this
Send string with QueryString in Repeater Control in ASP.net
and below link have multiple answers
Link
I was trying to embed an asp.net video control using my visual web developer 2008 express ed. which originally doesn't have a built-in asp.net video control on its toolbox. I added the asp.net video control on the toolbox after I extracted the zip compressed folder that I downloaded. I was able to add the three asp.net video controls(WindowsMedia,Realplayer,Quicktime) from the downloaded files on the toolbox. At first, it was working when I tried to drag the WindowsMedia control from the toolbox onto the page but suddenly when I changed it using Realplayer it will now display an Error Creating Control on the control after dragging into the page. The error says:
The server tag 'ASPNetVideo:RealPlayer' is ambiguous. Please modify
the associated registration that is causing ambiguity and pick a new
tag prefix.
So, I keep on changing the control from WindowsMedia to Quicktime and still giving the same error. Here's my source code below for more reference:
<%# Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%# Register assembly="ASPNetVideo.NET2.AJAX" namespace="ASPNetVideo" tagprefix="ASPNetVideo" %>
<%# Register assembly="ASPNetVideo.NET3" namespace="ASPNetVideo" tagprefix="ASPNetVideo" %>
<%# Register assembly="System.Web.Extensions" namespace="System.Web.UI" tagprefix="asp" %>
<!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 id = "mydiv" runat="server">
<br />
<asp:FileUpload ID="FileUpload1" runat="server" />
<br />
<asp:Button ID="Button1" runat="server" Text="Upload" Width="82px" OnClick = "Button1_Click" />
<br />
<br />
<br />
<ASPNetVideo:RealPlayer ID="RealPlayer1" runat="server" >
</ASPNetVideo:RealPlayer>
<br />
</div>
</form>
</body>
</html>
Please advise...Thanks.
<%# Register assembly="ASPNetVideo.NET2.AJAX" namespace="ASPNetVideo" tagprefix="ASPNetVideo" %>
<%# Register assembly="ASPNetVideo.NET3" namespace="ASPNetVideo" tagprefix="ASPNetVideo" %>
RealPlayer is most probably defined in both those assemblies. Try with only one of them and remove the other register.
You can also assign different namespaces to the two assemblies and then you wouldn't be getting an error once you resolve the ambiguity:
<%# Register assembly="ASPNetVideo.NET2.AJAX" namespace="ASPNetVideo" tagprefix="ASPNetVideo" %>
<%# Register assembly="ASPNetVideo.NET3" namespace="ASPNetVideo2" tagprefix="ASPNetVideo" %>