Hi Dave,
Thanks for your project. Based on my research, this is a known issue of IE.
A workaround is to fix the width of the button. For example you can try
this:
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click"
Style="z-index: 100;
left: 186px; position: absolute; top: 147px; width:60px"
Text="Button" />
Regards,
Allen Chen
Microsoft Online Support
--------------------
| X-Tomcat-ID: 76601997
| References: <OzR3Ytz#
[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: (e-mail address removed) (Allen Chen)
| Organization: Microsoft
| Date: Mon, 11 Aug 2008 03:37:30 GMT
| Subject: RE: Newbie question
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| Message-ID: <2pJHjP2#
[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Lines: 105
| Path: TK2MSFTNGHUB02.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet:73636
| NNTP-Posting-Host: tk5tomimport1.phx.gbl 10.201.218.19
|
| Hi Dave,
|
| From your description the button is expanded even though its width is not
| set in the aspx, correct?
|
| The source code you provided works fine on my side.
|
| There're two possible reasons I can think of that can cause this problem.
|
| 1. You're probably using Style or Theme for the ASP.NET button control
that
| would affect the Width of the button.
| 2. Width of the button may be hard coded in the code behind.
|
| Please check if my guess is correct. If it still doesn't work please send
a
| demo project to me. I'll try to find the root cause and tell you how to
fix
| it. My email is (e-mail address removed).
|
| Regards,
| Allen Chen
| Microsoft Online Support
|
| Delighting our customers is our #1 priority. We welcome your comments and
| suggestions about how we can improve the support we provide to you.
Please
| feel free to let my manager know what you think of the level of service
| provided. You can send feedback directly to my manager at:
| (e-mail address removed).
|
| ==================================================
| Get notification to my posts through email? Please refer to
|
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
| ications.
|
| Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues
| where an initial response from the community or a Microsoft Support
| Engineer within 1 business day is acceptable. Please note that each
follow
| up response may take approximately 2 business days as the support
| professional working with you may need further investigation to reach the
| most efficient resolution. The offering is not appropriate for situations
| that require urgent, real-time or phone-based interactions or complex
| project analysis and dump analysis issues. Issues of this nature are best
| handled working with a dedicated Microsoft Support Engineer by contacting
| Microsoft Customer Support Services (CSS) at
|
http://msdn.microsoft.com/subscriptions/support/default.aspx.
| ==================================================
| This posting is provided "AS IS" with no warranties, and confers no
rights.
|
| Followup-Asp.Net-42336997-Upload a file to a different
| site-microsoft.public.dotnet.framework.aspnet
|
| Hello Rory,
|
| I am Allen Chen from the newsgroup support team. In the past few days,
you
| have been working with me on an issue "Upload a file to a different site
| " in the microsoft.public.dotnet.framework.aspnet newsgroup. I appreciate
| your time working with me. I am contacting you to see whether there is
| anything else we can do for you. If you have any comments on our support
| service, website design, our product limitation, our process, and etc.,
| please don't hesitate to let me know. I will do my best to follow up.
|
| Thank you for using our Newsgroup Support Service!
|
| --------------------
| | From: "Dave" <
[email protected]>
| | Subject: Newbie question
| | Date: Sun, 10 Aug 2008 16:15:45 -0700
| | Lines: 15
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
| | X-RFC2646: Format=Flowed; Original
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
| | Message-ID: <OzR3Ytz#
[email protected]>
| | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | NNTP-Posting-Host: cpe-76-171-59-74.socal.res.rr.com 76.171.59.74
| | Path: TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP02.phx.gbl
| | Xref: TK2MSFTNGHUB02.phx.gbl
| microsoft.public.dotnet.framework.aspnet:73630
| | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| |
| | I am new to Visual Web Developer 2005 Expres.
| |
| | I am using absolute positioning and every time I add a button control
to
| my
| | web form its width extends all the way to the edge of the page. IOW I
| get a
| | long skinny button that extends to the right side of the browser.
| |
| | This does not appear to happen with other controls. Any idea why it
| happens
| | to the button?
| |
| | Here is how the button looks in source code:
| | <asp:Button ID="Button1" runat="server" OnClick="Button1_Click"
| | Style="z-index: 100; left: 186px; position: absolute; top: 147px"
| | Text="Button" />
| |
| |
| |
|
|