AJAX :: Setting Left / Top Position Not Working In IE

May 21, 2010

In a custom ASP.NET AJAX control, i have this to do some repositioning.

[Code]....

getBounds simply returns the x/y and width/height. I use this to set the left/top, but in IE, it's doubling; say the coordinates are 500, 20; when it sets this on the element, its actually setting to 1000, 40. In firefox, this works correctly.

this.get_element() returns the correct element and all, but it's not setting correctly, even though event logging says it's the correct coordinates. When using setLocation too, it doesn't work in either...

What else in my code may be affecting it? JQuery isn't an option here too.

View 4 Replies


Similar Messages:

Web Forms :: How To Position A Control To The Right / Left Of ListView

May 6, 2010

I have a ListView on my webform and want to display some text and a button to the right of the ListView ("to remove this list and all its items click <asp:button text="Remove List">)

I don't seem to be able to achive this, above, in, below yes but not right/left.

View 2 Replies

New Password Textbox Position Not Normal - Moving To Left Or Right

Jun 9, 2010

The second textbox will go a liiitle to the left or a liiitle to the right, compared with the other 2 textboxes. What is wrong? Should i use absolute positioning? it's just a pixel farther.I'm about to break the keyboard here

Code:

<div>
<asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">
<asp:TabPanel ID="TabPanel1" runat="server" HeaderText="TabPanel1">
<HeaderTemplate>Change Password</HeaderTemplate>
<ContentTemplate>
<asp:Label ID="Label1" runat="server"></asp:Label>
<br />
<asp:Button ID="Button1" runat="server" Text="Button" CausesValidation="False"
Visible="False" />
<br />
<asp:Label ID="Label2" runat="server" Text="Change Password:"></asp:
<asp:Label ID="Labelmessages" runat="server" BackColor="Aqua"></asp:Label>
<br />
<br />
<asp:Label ID="Label3" runat="server" Text="Old Password:"></asp:Label>
<asp:TextBox ID="TextBoxoldpass" runat="server"
TextMode="Password"></asp:TextBox>
<br />
<asp:Label ID="Label4" runat="server" Text="New Password:"></asp:Label>
<asp:TextBox ID="TextBoxnewpass" runat="server"
MaxLength="20" TextMode="Password"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Password short"
ControlToValidate="TextBoxnewpass" ValidationExpression="^.{7,21}$"></asp:RegularExpressionValidator>
<br />
<asp:Label ID="Label5" runat="server" Text="Retype Password:"></asp:Label>
<asp:TextBox ID="TextBoxretypepass" runat="server"
MaxLength="20" TextMode="Password"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="Password short"
ControlToValidate="TextBoxretypepass" ValidationExpression="^.{7,21}$"></asp:RegularExpressionValidator>
<br />
<asp:CompareValidator ID="CompareValidator1"
Runat="server" Text="Passwords do not match!"
ControlToValidate="TextBoxnewpass"
ControlToCompare="TextBoxretypepass"></asp:CompareValidator>
<br />
<asp:Button ID="ButtonPassSubmit" runat="server" Text="Submit"
OnClientClick="return confirm('Try to change password?');"/>
</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2">
<HeaderTemplate>Send us email</HeaderTemplate>
</asp:TabPanel>
</asp:TabContainer>
</div>

Edit, when tested absolute positioning the textbox got bigger(!!!) and in mozilla it was on the wrong side.

View 12 Replies

Web Forms :: How To Set Position For Panel Like Left=50px; Top=100px

Feb 10, 2011

How to set position for panel like left=50px; top=100px?

View 2 Replies

How To Position An Element 2px To The Left Of Another Of A Title Span On Master Page

Mar 11, 2010

I want to position a button 2px to the left of a title span on my master page. The span can vary in size, and is centered in its containing div. How can I do this?

EDIT: Here is the code:

[code]....

EXPLANATION: The checkbox with togglebutton is to mark the page I am on as a favorite. I want this checkbox to be positioned 2px to the left of the TitleLabel span.

View 3 Replies

Web Forms :: Margin-left For Imagebutton Not Working With Mozilla Browser?

Mar 28, 2010

Is there a compatibility issue with asp.net imagebutton with mozilla browser. I have set a margin-left for an imagebutton but when I tried to view on mozilla, it does not work?

View 1 Replies

Web Forms :: Webpage Working Properly In IE But In Firefox And Opera Image Position Changing

Mar 18, 2012

i have created a web page it working properly in IE but in Firefox and opera its images position is changing wt should i do.

View 1 Replies

AJAX :: Storing The X Y Position Of The Ajax Toolkit Drag Panel In Database?

Aug 18, 2010

i found that for X & Y co-ordinates value of the Ajax toolkit dragPanel is very easily calculated from this article

Retain position of a DragPanel Extender after postback using ASP.NET AJAX

but i need to store the value in database and while page_load() i need to render the control as per the Co-ordinate values from the database .

From the above solution everything is fine except that i need to do it with code behind(from server side).

and i don't know a JavaScript a lot .

View 1 Replies

AJAX :: Accordion Control For Left Navigation Menu?

Feb 23, 2010

i want to implement an accordion control to the left navigation menu. The Main title on left menu called Activities is standard so i have hard coded it. The subtitles I want to pull from the database , from the stored procedure "Activity_Get". however i am not able to achieve this because I get an error "DataSource 'sds2 ' for control 'accActivities' doesn't exist". The following is the aspx code.

<div>
<asp:ScriptManager
ID="asm"
runat="server"
/>
<div>
<table
cellpadding="0"
cellspacing="0"
width="100%"><tr>
<td
class="highlightstitle"
style="width:180px;height:500px"
valign="top">
<aj1:Accordion
ID="accLeftMenu"
runat="server"
SelectedIndex="-1"
HeaderCssClass="navlink3" HeaderSelectedCssClass="navlink2"
ContentCssClass="subnav"
AutoSize="None"
FadeTransitions="true" TransitionDuration="250"
FramesPerSecond="40"
RequireOpenedPane="false"
SuppressHeaderPostbacks="true">
<Panes>
<aj1:AccordionPane
ID="acpEdu"
runat="server"
>
<Header>...........

View 3 Replies

AJAX :: Center Accordion Content - Aligns To Left?

Oct 5, 2010

I have an accordion with 2 Panes. The problem is that all the aspnet controsl that are insed the accordion, aligns to the left, I want thaht te controls will be centered. How can I do that.

View 1 Replies

AJAX :: CollapsiblePanelExtender Control Always Expand And Show The Panel On The Left Margin?

Jan 6, 2011

I have made a user control using CollapsiblePanelExtender control. I am getting a small issue, that the panel that expands is not relative to the control. It always open on left side of the page. My control is in different location in different pages. How can I make sure that the expand and collapse is with respect to the control? I see "left: -36px" in the style attribute of "SettingsContentPanel". How can it be relative and doesn't break the code.

[Code]....

View 4 Replies

Web Forms :: Change Position Of Div With Position Absolute?

Jan 13, 2010

i have a div in my page, with position absolute i want change the position TOP if i write;

div.style.remove("top")
style.add("Top","300")

does not happen nothing.

do you know how can i do it?

View 4 Replies

AJAX :: Set The Scroll Position To The Top?

Mar 17, 2011

i have a update panel and when a link button is fired i need to set the scroll position to the top. i need this to happen in the code behind, i have tried the following but it wont work.

ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "srcoll_0", "window.scrollTo(0, 0);", true);

View 3 Replies

AJAX :: DragPanelExtender Position?

May 11, 2010

I am working on printing Application that should gave the user the ability to change the position of the FieldsSo I decide to build a user control as following

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PassportDataItem.ascx.cs"
&nbsp;&nbsp;&nbsp; Inherits="TestShadowImage.PassportDataItem" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"

[code]...

View 1 Replies

AJAX :: ModalPopupExtender / Instead Of Dissapear These Modal Panel It Appers On The Bottom Left Corner Of The Page?

Feb 15, 2010

I'm developing an ASP.NET application with C# and Visual Studio 2008 SP1. I'm using WebForms.

I have an ASPX page with two UpdatePanels, one on the left that holds a TreeView and other on the right where I load dynamically user controls.

On the left panel I also have buttons to load user controls on the right. I have a ModalPopupExtender in a button that show I div with radiobuttons to select a type. When I choose an option and click ok it do a postback to load dynamically a user control but instead of dissapear these modal panel it appers on the bottom left corner of the page.

What's happening? I think it is about dynamic load.

View 9 Replies

AJAX :: Autocomplete Extender Position In IE?

Jul 7, 2010

I implemented autocomplete extender,functionality is working great but my issue is with CSS.It works as expected in Firefox(it applys all stylesheets perect) but in IE it is not behaving as expected it is showing the list about 10 pixels left to the text box.

googled couple of things but none of them were working for me.

My stylesheet:

.listItem
{
background-color: white;
padding: 1px;
}
.highlightedListItem

[Code]....

View 1 Replies

AJAX :: Position Dragpanelextender From Code Behind?

Mar 3, 2011

I create a webusercontrol where there is a dragPanelExtentender. I have had problems in setting the position of this webusercontrol (dragpanel) on page. Is it possible to set position of this component in the with specified x,y position of page from code behind?

View 2 Replies

AJAX :: ValidatorCallout Is Not In Correct Position?

Mar 25, 2010

I have a form that contain many field must filled.

I use Asp Required validator and ajax validator callout to make a cool error message.

I put that form into box which have scrollbar. (Not IE Scrollbar)

Running the application then try to scroll the form with that scrollbar.

Then pressing the button to trigger the validator required.

Finally the message is displayed but the message is not in correct position. It is above suppose to be.

View 2 Replies

AJAX :: Set Position In ModalPopUp Extender?

Sep 21, 2010

i am using a datalist and in this i have a table when i am click on a button then popup display the table .but the position is fixed i want to change the position of popup dynamically as we have many button

Code is-

<table id="tb1" runat="server" width="50%">
<tr>
<td style="background-color: #A1CFF6; border-width: 1px; border-style: groove">
<asp:Image ID="imgClose" runat="server" ImageUrl="~/image/close.gif" ImageAlign="Right" />
<asp:Label ID="lblConInfo" runat="server" Text="Contact Information" Font-Bold="True"
Font-Size="Small" ForeColor="#678FE0"></asp:Label>
<br />
<asp:Label ID="lblName" runat="server" Text="Name:" Font-Bold="True"></asp:Label>
<asp:Label ID="lblFName" runat="server" Text='<%# Eval("c_Fname") %>'></asp:Label>
<asp:Label ID="lblCity" runat="server" Text="City:" Font-Bold="True"></asp:Label>
<asp:Label ID="lbl_city" runat="server" Text='<%# Eval("c_city") %>'></asp:Label>
<asp:Label ID="lblPin" runat="server" Text="PinCode:" Font-Bold="true"></asp:Label>
<asp:Label ID="lbl_PinCode" runat="server" Text='<%# Eval("c_pincod") %>'></asp:Label>
</td>
</tr></table>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" PopupControlID="tb1"
TargetControlID="btnEnquiry" BackgroundCssClass="modalBackground" CancelControlID="imgClose"
X="200" Y="200" Enabled="true">
</cc1:ModalPopupExtender>

View 1 Replies

AJAX :: Accordion Not Save A Position?

Jan 24, 2010

I have a sample in the attach. Why accordion not save a position if click on "MAcK2"?

It is link (I cannot use "Insert/Edit link", show blank window)

[URL]

View 3 Replies

AJAX :: Set Position Of Calendar Extender

May 7, 2015

while i am using Ajax (calender extender) on textbox when i click at first time click the calender show on page top side next time show on textbox side correctly.

<asp:CalendarExtender ID="CalendarExtender4" TargetControlID="txtfrm_date" Format="d/MM/yyyy"
runat="server">
</asp:CalendarExtender>
<asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="txtfrm_date"
FilterType="Custom,Numbers" ValidChars="/">
</asp:FilteredTextBoxExtender>

View 1 Replies

Setting To Selectedindex Or Selectedvalue Of A Dropdownlist In A Repeater Not Working

Aug 16, 2010

I have a repeater with a DropDownList in it. I set the datasource of this list in the itembound event en set the selectedindex. When I debug the selectedindex is set, but when the page is done loading for all the item the default item is selected.

protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
var ddl = (DropDownList)e.Item.FindControl("DataFeedItems");
ddl.DataSource = FilterDropDownData();
ddl.DataTextField = "ColumnName";
ddl.DataValueField = "ColumnName";
ddl.DataBind();
[code]...

View 1 Replies

Web Forms :: Setting Properties Within BasePage Class Not Working?

Jan 11, 2010

We are trying to use a BasePage class (which inherits from Page) to populate and set the Meta Keywords and Meta Description Tags. I am using masterpages and below is an example code extract... According to examples on the internet, I could then set this also via the Page Directive using the MetaKeywords and MetaDescription properties, but they do not appear.

I have tried setting the CodeFileBaseClass="MyNamespace.UI.BasePage" but this does not work either. Using debug I can see that the BasePage classes' MetaKeywords and MetaDescription properties are not being set within my content page. I can access the properties but not set them.

== BASEPAGE CLASS ==

[Code]....

== PAGE CLASS ==

[Code]....

View 3 Replies

AJAX :: CalendarExtender Position In Chrome And Safari 4?

Feb 7, 2010

I am using the CalendarExtender and I've found it works fine in all browsers except for any version of Google Chrome and Safari 4.

In these browsers the calendar appears either on top of the textbox or near the top of the screen instead of under the textbox.

You can reproduce this behavior by going to: http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Calendar/Calendar.aspx

View 2 Replies

AJAX :: Drag Panel Position When It Opens?

Apr 14, 2010

I am a designer prototyping applications. At the moment I want to show in my prototype that a drag panel opens and it belongs to a tab.

Two questions: How can I make a drag panel belong to a tab?

Should that be too complicated code wise (i am a designer - not a developer...): Can I position the drag panel on opening for the first time?So far, my drag panel always opens in the top left corner in my browser. I tried positioning it with CSS but it just ignores that.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved