.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

rounded corner extender not working

Posted By:      Posted Date: October 18, 2010    Points: 0   Category :ASP.Net


 idrag a panel on a webform and a script manager and a rounded corner extender and assign the TargetControlId for the rounded corner to be the panel1 and set the radius and builded successfully when i test the page the panel1 still not rounded !!

why? any thing missing?


thnaks in advance.


View Complete Post

More Related Resource Links

Give image rounded corner not working


 I'm trying to pass an bitmap and get method to pass it back with rounded corners, any help why this is not working would be great, currently the image comes back with out any changes.


public class ImageHelper
    public static byte[] RoundCorners(Bitmap imgin, int roundedDia, Color BackgroundColor)
            Bitmap bitmap = new Bitmap(imgin.Width, imgin.Height);
            Graphics g = Graphics.FromImage(bitmap);
            g.SmoothingMode = 	(System.Drawing.Drawing2D.SmoothingMode.AntiAlias);
            Brush brush = new System.Drawing.TextureBrush(imgin);
            FillRoundedRectangle(g, new Rectangle(0, 0, imgin.Width, imgin.Height), roundedDia, brush);
            // done with drawing dispose graphics object.
            System.IO.MemoryStream ms = new System.IO.MemoryStream();
            imgin.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
            ms.Position = 0;
            byte[] data = new byte[ms.Length];
            byte[] Image1 = ms.ToArray();
            return Image1;

    public static void FillRoundedRectangle(Graphics g, Rectangle r, int d, Brush b)
    { System.Drawing.Drawing2D.GraphicsPath gp = new System.Drawing.Drawing2D.GraphicsPath();
        gp.AddArc(r.X, r.Y, d, d, 180, 90);

MaterPage Ajax calendar extender not working


AJAX with MasterPage not working.

Setup simple test site below, no error just not working. TIA

    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="ajaxDev.WebForm1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
  <asp:CalendarExtender ID="TextBox1_CalendarExtender" runat="server" 
    Enabled="True" TargetCo

Auto Complete Extender Not Working

I have written everything in that Control but that extender is not working. my Webservice is working properly Plz tell me solution.  

Calendar Extender is not working in IE7 after Postback

We have implemented ajaxtoolkit version: 3.5.40412.0, and my web application is not AJAX enabled. We have included ajaxtoolkit binary reference in our web application. In one of the page, calendar extendar is working fine when it rendar first, after postback it's not working at all in IE7, but it's working fine in Mozilla. The sample code is as below, [ We are not getting any javascript or HTML tag error ]   <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %><asp:Content ID="MyTest" ContentPlaceHolderID="MainContentPlaceHolder" runat="server"><ajaxToolkit:ToolkitScriptManager id="ScriptManager1" runat="server"/><table><td><asp:TextBox ID="txtDate" TabIndex="8" runat="server" Width="144px"></asp:TextBox><ajaxToolkit:CalendarExtender ID="calDate" Format="MM/dd/yyyy" runat="server" TargetControlID="txtDate" PopupPosition="BottomRight" /><asp:RangeValidator ID="DateRangeValidator" runat="server" Display="None" EnableClientScript="false" ControlToValidate="txtDate" ErrorMessage="Selected date is not within range." Type="Date" /><

Hover extender not working after postback

Hi I bind a hover extender to a cell in a gridview, using following code: Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound If e.Row.RowType = DataControlRowType.DataRow Then  Dim hoverMenu As HoverMenuExtender = CType(e.Row.FindControl("hoverMenu"), HoverMenuExtender)  e.Row.Cells(1).Controls.Item(0).ID = e.Row.RowIndex.ToString()     hoverMenu.TargetControlID = e.Row.Cells(1).Controls.Item(0).ID End If End Sub Now This works perfectly and the panel appear when hovering over the second cell.However after a postback it is no longer working and no panel will show when hovering over the cell. Can anybody help plaese?   Jonas   

Calendar Extender Not working

Ok, I have done this before but for the life of me I can not figure out why this is not working. I am trying to use a calendar extender on a field in Formview Insert. The page will load fine but no calendar. Advise? Thank You <%@ Page Language="VB" MasterPageFile="~/buildingpermit.master" AutoEventWireup="false" CodeFile="request_inspection.aspx.vb" Inherits="request_inspection" title="Untitled Page" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <style type="text/css"> .style13 { width: 100%; } .style14 { background-color: #003300; } .style15 { width: 196px; color: #FFFFCC; background-color: #003300; } .style16 { color: #FFFFCC; } .style17 { text-align: left; color: #FFFFCC; background-color: #003300; } </style> </asp:Content> <asp:

modal pop up extender close ICON or Cross in top right corner



I am using a modal extender pop up with dimensions 400px by 400px

and in the top right corner I want

to put a image cross that when clicked will shut the modal pop up.

I know to make the cancel control to the buttom image but I have

seen on some sites the image that seems to sit half in and half out the modal

pop up extender DIV box which the effect I like more than an image internal to the

DIV of the modal popup floated right corner.

I hope this makes sense and apprecaite any tips to do this





autocomplete extender not working


dear all

i'm trying to make this work for several days but it just doesn't work.

this is my code:

aspx page:

<%@ Page Language="C#" AutoEventWireup="true" Trace="false" ValidateRequest="false" CodeBehind="ajaxform1.aspx.cs" Inherits="ajaxtest1.ajaxform1" %>

<%@ 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">
<body style="text-align: center">
    <form id="form1" runat="server">
    <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" CombineScripts="false">
    <asp:ServiceReference Path="~/autocomplete.asmx" />
    <asp:TextBox ID="TextBox1" runat="server" Height="21px" Width="350px">

v3.5 Ajax ToolkitScriptManager Extender Control not working in Nested Master Pages


I am using v3.0.31106.0 of the AjaxControlTookkit.dlll.  I have nested master pages.

The site Master page has the only ScriptManager & holds the oneColumn & twoColumn master pages.
The twoColumn master page holds content pages. In the content page there is a update panel.

Here is my Site Master Page:

<%@ Master Language="VB" CodeFile="SiteMasterPage.master.vb" Inherits="SiteMasterPage" %>

<!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">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    <div><h2>Main Master Page</h2>
        <br /></div>
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">

Here is the Nested Master Page:

SlideShow extender working with code behind in VisualBasic


what i am trying to achieve is a single image control with slideshow extender attached which when of the category option buttons are pressed the SlideService goes get the images for that category from the image folder sub folders and starts to display them -

i have got the code to work as to, the point that i have to hardcode the images  sub folders path in to the webmethod - but i want the image folder name to be passed as a parameter when the webmethod GetSlides is called - the code i have so far is

From the aspx page - (the category name will be a string retrieved from the button text when clicked

<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:Panel ID="Panel1" runat="server">
<asp:Button ID="Button1" runat="server" Text="category 1" />
<asp:Button ID="Button2" runat="server" Text="category 2" />
<asp:Button ID="Button3" runat="server" Text="category 3" />
<asp:Button ID="Button4" runat="server" Text="category 4" />
<asp:Panel ID="Panel2" runat="server&qu

How to create rounded corner webparts in asp.net 3.5??


Hi All,

I want to create rounded corner webparts in my webpage using , if any one have any idea about this then please help..

Auto Complete extender is not working in Web User Control



I am using auto complete extender and it is not working in Web user Control . But Working in Web form Please give its solution ASAP.

Cs Code

    public static string[] GetSuggestions(string prefixText, int count)
        MyDatabaseDataContext db = new MyDatabaseDataContext();
        return db.Movies
            .Where( m => m.Title.StartsWith(prefixText) )
            .OrderBy( m => m.Title )
            .Select( m => m.Title)

<asp:TextBox  id="txtMovieTitle"  AutoComplete="off"  Runat="server" />
    <ajax:AutoCompleteExtender   id="ace1"

Working with SharePoint document libraries

Document libraries are collections of files that you can share with team members on a Web based on Microsoft Windows SharePoint Services. For example, you can create a library of common documents for a project, and team members can use their Web browsers to find the files, read them, and make comments. Users with Microsoft Office 2003 can check out and edit the files as if they resided on a local or network drive.

By default, your team Web site comes with a built-in document library named Shared Documents, which is listed on the Quick Launch bar as well as on the Documents and Lists page.

Working with DropDownList and ListBox Controls in ASP.NET

"In my application i am using dropdownlist to display all categories from a table. When the user clicks this control I display all records in that category. Category table also contains column called color.

I wanted display some categories in dropdown list different color and others in different color using ASP.NET."-Anonymous

no intellisense, smart tag, extender wizard etc


Development Environment:  VS 2008 Pro, IIS 6, asp.net 2.x, sql 2005 server

Installed the version of AJAX Toolkit and Library for the .net 2.0 compatibility (as IIS is still using 2.x)

The problem is as that within the vs 2008 pro, when I select for example a button control...there should be an additional pop-up intellisense indicating...add extender.

to compound this, within the extender control ... the TargetControlID -- should be a drop-down list, indicating which controls are compatible with the extender ... there is no drop-down list.

even if I manually type the control to associate the extender with, this has no effect on the control (such as textbox control) -- as there should be another option appear indicating the association has taken place).

 below is the steps to take (as written by MS) -- but this is what I am not getting:

"If the Button Tasks shortcut menu does not appear, right-click the Button control and then click Show Smart Tag."  -- the smart tag is not appearing

To add an AJAX extender control
Switch to Design view.

If the page does not already contain a ScriptManager control, from the AJAX Extensions tab of the Toolbox, drag one onto the page.

A ScriptManager c

Server side validation of Fileupload control not working



I've tried this method in my code behind to try and validate that the Fileupload control has a file or not. I get the error message the the event "Server Validate" cannot be found. Can anyone tell why? Thanks.

Public Sub CustomValidator1_ServerValidate(ByVal source As Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles CustomValidator1.ServerValidate

' Get file name

        Dim uploadAvatar As FileUpload = DirectCast(AdvertisementForm.FindControl("uploadAvatar"), FileUpload)

        Dim UploadFileName As String = uploadAvatar.PostedFile.FileName

        If UploadFileName = "" Then
            ' There is no file selected
            args.IsValid = False
            Dim Extension As String = UploadFileName.Substring(UploadFileName.L

Row command working on all rows not selected one?



I have this code that hides a column in a gridview.  (The column houses another nested gridview).

    Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand
        If e.CommandName = "Select" Then
            If GridView1.Columns(0).Visible = False Then
                GridView1.Columns(0).Visible = True
                GridView1.Columns(0).Visible = False
            End If
        End If
    End Sub

The trouble is that if I click the select link on one row that action to hide is carried out on all rows.  How can I set this up so that it only hides the row that is selected?


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend