Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello friends,
i have some problem when i am using the ajax tool kit. i want to use ajax component in my website but it not work properly. i am using AjaxControlToolkit.Binary.NET35.zip file for ajax component. can you give me the idea how to use this ajax tool kit in my website.
thanks in advance.
Posted

create a new tab in your toolbox, then add the ajax dll which you have downloaded to that tab.
for more, refer to the link below.
Ajaxtoolkitcontrol[^]
 
Share this answer
 
v2
Comments
niravbhavsar 5-Jun-12 2:14am    
i have already install the ajax tool kit. and add the component in in my website. but not work.
ujju.1 5-Jun-12 3:09am    
then what's the issue?
niravbhavsar 5-Jun-12 3:34am    
i use following code to display watermarktext box.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!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:ScriptManager ID="scrtmnage" runat="server">
<asp:TextBox ID="txtsample" runat="server">
<cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtsample" WatermarkText="hello">

</div>
</form>
</body>
</html>
Please refer detailed description:
Get Started with the AJAX Control Toolkit (C#)[^]

This links gives you detailed documentation and tutorials for each of the AJAX controls.
Ajax Control Toolkit Tutorials[^]
 
Share this answer
 
v2
Comments
niravbhavsar 5-Jun-12 2:26am    
i have done same thing to install ajax tool kit. but ajax componenet not work.
Prasad_Kulkarni 5-Jun-12 2:45am    
Is it giving any error??
What exact problem is??
niravbhavsar 5-Jun-12 3:29am    
no it's not display any error. i use the following code for watermark textbox in the page.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!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:ScriptManager ID="scrtmnage" runat="server">
<asp:TextBox ID="txtsample" runat="server">
<cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtsample" WatermarkText="hello">

</div>
</form>
</body>
</html>
Ranjith Reddy CSE 5-Jun-12 7:28am    
Ok Dude, Which Version of Visual Studio.....You are Using.
You need to install AJAX EXTENSION.EXE....
If u use VS2005
select File->NewWebsite->AjaxEnabledWebsie
 
Share this answer
 
Comments
niravbhavsar 5-Jun-12 5:48am    
i use vs2008
Muthu Vinoth Kumar 5-Jun-12 6:01am    
choose Add Reference, then browse to Ajaxtoolkit.dll,then use code
niravbhavsar 5-Jun-12 6:39am    
still no effect.
Ranjith Reddy CSE 5-Jun-12 7:29am    
Finally, Restart ur PC.
Ranjith Reddy CSE 5-Jun-12 7:34am    
ok,Dear Listen to me.
Have u copied the above code from other websites....if u copied...Dont do these...

Just Drag and Drop textbox from toolbox and click the smart tag at the right side of textbox...tou will find extender...click on extender.......it will display ajax toolkit controls.....Just Select WaterMark Extender from the list and in properties of Textbox set the watermark extender Property ....Water Mark Text as Hello

This is clear i think so.

Follow these............Never Copy codes from other websites...Just take idea.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900