Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,825 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,956 people online right now. Registration is fast and FREE... Join Now!




Ajax ModalPopupExtender

 
Reply to this topicStart new topic

Ajax ModalPopupExtender, unable to set coordinates of ModalPopupExtender at runtime

prachigurjar_2000
19 Sep, 2008 - 03:00 AM
Post #1

New D.I.C Head
*

Joined: 19 Sep, 2008
Posts: 1

CODE

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim crd As New Drawing.Point()
        Dim i, j, x, y As Integer

        i = Convert.ToInt32(btnShowPopup.Width.Value)
        j = Convert.ToInt32(btnShowPopup.Height.Value)
        crd = New Drawing.Point(i, j)
        x = crd.X()
        y = crd.Y()
        'Response.Write(x)
        'Response.Write(y)
        mdlPopup.X = x
        mdlPopup.Y = y
End Sub

<div style="padding-left:5px;" >
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:Button id="btnShowPopup" runat="server" Text="Show" OnClick="btnShowPopupClick" />
        <ajaxToolkit:ModalPopupExtender ID="mdlPopup" runat="server" TargetControlID="btnShowPopup" PopupControlID="pnl" CancelControlID="btnClose"></ajaxToolkit:ModalPopupExtender>
        <asp:Panel ID="pnl" runat="server" style="display:block; border-style:groove;" Height="95px" Width="74px">
            test
            <asp:Button ID="btnClose" runat="server" Text="Close"/>
        </asp:Panel>
    </div>


This post has been edited by prachigurjar_2000: 19 Sep, 2008 - 03:02 AM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 03:23PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month