473,394 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Move Panel using Drag with Style start position in top left corner

I want to open a panel in the top left corner of my page but then be able to drag it around the page. It will open in the top left corner but then I cannot drag the panel. It always goes back to the starting position. If I remove !important then it will allow the drag feature to work but the panel is then centered on the page when it opens.

There is a conflict that I cannot resolve. Here is my code:

Thanks,
Dave

Expand|Select|Wrap|Line Numbers
  1. <asp:Panel ID="pnlPopUp" runat="server" CssClass="SearchForm" Style="left: 1% !important; top: 1% !important; display: none;" ScrollBars="Auto">
  2.  
  3. <act:ModalPopupExtender ID="ModalPopupExtender1" runat="server" BackgroundCssClass="ModalPopupBackground"
  4.     CancelControlID="btnClose" PopupControlID="pnlPopUp" TargetControlID="lnkFindTPID" 
  5.      PopupDragHandleControlID="pnlPopUp" Drag="true" >
  6. </act:ModalPopupExtender>
Jun 18 '14 #1
1 1436
Here is the solution. You must set the opening position for the Panel in the ModalPopupExtender tag using X="2" Y="2" for example.

Expand|Select|Wrap|Line Numbers
  1. <asp:Panel ID="pnlPopUp" runat="server" CssClass="SearchForm"  ScrollBars="Auto">
  2.  
  3. <act:ModalPopupExtender ID="ModalPopupExtender1" runat="server" BackgroundCssClass="ModalPopupBackground"
  4.     CancelControlID="btnClose" PopupControlID="pnlPopUp" TargetControlID="lnkFindTPID" 
  5.      PopupDragHandleControlID="pnlPopUp" Drag="true" X="2" Y="2">
  6. </act:ModalPopupExtender>
Jun 19 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Ghyslaine Crespe | last post by:
Hello, In my script, the line document.getElementById(id).style.background-position = "-200px -500px"; fails ! So, how can I change the background-position value ?
0
by: Oberon | last post by:
How do I navigate through records using drag 'n' drop controls? I have an example in C# for Windows forms that relies on BindingContext but this is not available for ASP.NET. How do I solve that...
6
by: Sakharam Phapale | last post by:
Hi All, How to move the CommandButton control using mouse from one position to other? Is it possible using Drag, Drop events or I have to write my own code for that? I have set the...
14
by: dutch90 | last post by:
Hi I want to make my header table (with the logo and nav menu) start at 0,0. I tried body {margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding:0px;} but I...
1
by: igpig | last post by:
Sorry if this has been asked before. I've searched the group and the FAQ and didn't find the answer. How can I retrieve x, y coordinates of the browser top left corner in Internet Explorer? ...
2
by: =?Utf-8?B?UmljaA==?= | last post by:
Hello, When clicking on the top left corner of a datagridview - then entire contents of the datagridview is selected. When clicking on that cell - what event gets triggered/fired? I tried...
0
by: =?Utf-8?B?UmljaA==?= | last post by:
In a datagridview, the first column header cell is columnHeader(0), which is immediately to the right of the Top Left Corner Select All cell. And the first RowHeader cell is RowHeaderCell(0) which...
0
by: Polaris431 | last post by:
I have spent hours through newsgroups and googling but I am at a loss how to move the drawing origin from the top left corner to the bottom left corner and have Y values increase towards the top. ...
3
by: Raj Kumar | last post by:
hi i am a begineer in javascript... is it possible to move image one page to next page using drag and drop
4
by: siilexx | last post by:
Hello, I'm trying to write an application which will allow the user to move objects such as Labels between different Panels. I've managed to move the objects in one panel (using...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.