How can we define OnMouseOver Event for the ImageMap control(2.0)?

There is no predefined OnMouseOver Event.We can define as follows in the Page_Load Event. protected void Page_Load(object sender, EventArgs e) { ImageHotSpot.Attributes.Add(‘onmousemove’, ‘MouseOver()’); } Where MouseOver() is the function to be defined in the ClientSide as follows <script> function MouseOver() { alert(‘MouseMoveEvent’); } </script>

How to pass information between panels. Information entered in one panel should be displayed in other panel

<asp:Panel id=’Panel1′ runat=’server’ Width=’271px’ Height=’41px’> <TABLE id=’Table1′ cellSpacing=’1′ cellPadding=’1′ width=’300′ border=’1′> <TR> <TD> <asp:TextBox id=’TextBox1′ runat=’server’></asp:TextBox> </TD> </TR> <TR> <TD> <asp:Button id=’Button1′ runat=’server’ Text=’Button’></asp:Button></TD> </TR> </TABLE> </asp:Panel> <asp:Panel id=’Panel2′ style=’Z-INDEX: 102; LEFT: 16px; POSITION: absolute; TOP: 120px’ runat=’server’ Width=’176px’ Height=’91px’ Visible=’False’> <asp:Label id=’Label1′ runat=’server’></asp:Label> </asp:Panel> On Button Click VB.NET Panel2.Visible =true Label1.Text = TextBox1.Text C# Panel2.Visible =true; Label1.Text = TextBox1.Text ; Note: Based on the criteria you can hide and show panels

Is there a way to set the position of the controls dynamically

Yes. <asp:Button id=’Button1′ style=’Z-INDEX: 101; LEFT: 116px; POSITION: absolute; TOP: 152px’ runat=’server’ Text=’Move’></asp:Button> <asp:RadioButtonList id=’RadioButtonList1′ style=’Z-INDEX: 103; LEFT: 87px; POSITION: absolute; TOP: 27px’ runat=’server’ AutoPostBack=’True’> <asp:ListItem Value=’10px’>10 pixels</asp:ListItem> <asp:ListItem Value=’100px’>100 pixels</asp:ListItem> <asp:ListItem Value=’200px’>200 pixels</asp:ListItem> </asp:RadioButtonList> VB.NET Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ’ Put user code to initialize the page here If Not Page.IsPostBack Then Button1.Style.Add(‘LEFT’, ‘1px’) End If End Sub ’Page_Load Private Sub RadioButtonList1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButtonList1.SelectedIndexChanged Button1.Style.Add(‘LEFT’, RadioButtonList1.SelectedItem.Value.ToString()) End Sub ’RadioButtonList1_SelectedIndexChanged C# private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here if (!Page.IsPostBack ) { Button1.Style.Add(‘LEFT’, ‘1px’); } } private void RadioButtonList1_SelectedIndexChanged(object sender, System.EventArgs e) { Button1.Style.Add(‘LEFT’,RadioButtonList1.SelectedItem.Value.ToString()); }

How to get the list of all System.Web.UI.WebControls in my page

<asp:Repeater runat=’server’ DataSource=’<%# GetControls() %>’ ID=’Repeater1′> <HeaderTemplate> </HeaderTemplate> <ItemTemplate> <%# DataBinder.Eval(Container.DataItem, ‘Name’) %> </ItemTemplate> <FooterTemplate> </FooterTemplate> </asp:Repeater> VB.NET Protected Function GetControls() As ArrayList Dim arrList As New ArrayList() Dim t As Type For Each t In GetType(Page).Assembly.GetTypes() If t.Namespace = ‘System.Web.UI.WebControls’ And GetType(Control).IsAssignableFrom(t) Then arrList.Add(t) End If Next Return arrList End Function ’GetControls ’In Page_Load DataBind() C# protected ArrayList GetControls() { ArrayList arrList = new ArrayList(); foreach (Type t in typeof(Page ).Assembly.GetTypes()) { if (t.Namespace == ‘System.Web.UI.WebControls’ && typeof(Control).IsAssignableFrom(t)) arrList.Add(t); } return arrList; } //In Page_Load DataBind();