About AJAX extenders
About AJAX extenders
I'm using VS 2008 and AJAX tool kit... In a situation I just tried to drag and drop "round corner extender" to the design interface where I found I couldn't(if Code is inserted in to HTML is also not working).Even when I right click on a text box, the "show smart tag" label is also got disabled , so i cant choose "add extender" option..please help me...this is urgent and I'm soo worried about this...
Re: About AJAX extenders
There must be something wrong in your code it seems. I'm attaching some code here.
HTML
C#
The example at CodeProjectis also good for reference.
HTML
Code: Select all
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div style="width: 300px; margin: 0px auto;">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<contenttemplate>
<asp:Panel ID="Panel1" runat="server" Width="200px" BackColor="#c0c0c0" ForeColor="#ffffff" Font-Bold="true" Font-Size="16px">
<div style="padding: 5px; text-align:center">
You can add ASP.Net Server Controls or content here.
</div>
</asp:Panel>
<ajaxToolkit:RoundedCornersExtender
ID="RoundedCornersExtender1"
runat="server"
TargetControlID="Panel1"
Corners="All"
Color="#c0c0c0"
Radius="20">
</ajaxToolkit:RoundedCornersExtender>
<div class="clear"><br /></div>
<table cellpadding="4" cellspacing="0" border="0">
<tr>
<td width="100">
<asp:Label ID="Label1" runat="server" Text="Set Radius: " Font-Bold="true"></asp:Label>
</td>
<td>
<asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="true" RepeatDirection="Horizontal" RepeatLayout="Table" CellPadding="4" CellSpacing="0" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged">
<asp:ListItem Text="2px" Value="2"></asp:ListItem>
<asp:ListItem Text="5px" Value="5"></asp:ListItem>
<asp:ListItem Text="10px" Value="10"></asp:ListItem>
<asp:ListItem Text="20px" Value="20" Selected="True"></asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label2" runat="server" Text="Set Corner Style: " Font-Bold="true"></asp:Label>
</td>
<td>
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
<asp:ListItem Text="All"></asp:ListItem>
<asp:ListItem Text="Bottom"></asp:ListItem>
<asp:ListItem Text="BottomLeft"></asp:ListItem>
<asp:ListItem Text="BottomRight"></asp:ListItem>
<asp:ListItem Text="Left"></asp:ListItem>
<asp:ListItem Text="None"></asp:ListItem>
<asp:ListItem Text="Right"></asp:ListItem>
<asp:ListItem Text="Top"></asp:ListItem>
<asp:ListItem Text="TopLeft"></asp:ListItem>
<asp:ListItem Text="TopRight"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
</table>
</contenttemplate>
</asp:UpdatePanel>
Code: Select all
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
DropDownList1.SelectedIndex = 0;
}
protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
RoundedCornersExtender1.Radius = Convert.ToInt32(RadioButtonList1.SelectedValue);
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
RoundedCornersExtender1.Corners = (AjaxControlToolkit.BoxCorners)Enum.Parse(typeof(AjaxControlToolkit.BoxCorners), DropDownList1.SelectedValue);
}
Re: About AJAX extenders
is it possible to drag and drop AJAX extenders to the design interface???
Re: About AJAX extenders
I think so...