473,748 Members | 3,604 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Newbie question

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="Button 1_Click"
Style="z-index: 100; left: 186px; position: absolute; top: 147px"
Text="Button" />
Aug 10 '08 #1
5 1397
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 v-******@microsof t.com.

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:
ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/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.publi c.dotnet.framew ork.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.publi c.dotnet.framew ork.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" <da*******@news group.nospam>
| 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: <Oz************ **@TK2MSFTNGP02 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: cpe-76-171-59-74.socal.res.rr .com 76.171.59.74
| Path: TK2MSFTNGHUB02. phx.gbl!TK2MSFT NGP01.phx.gbl!T K2MSFTNGP02.phx .gbl
| Xref: TK2MSFTNGHUB02. phx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:7363 0
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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="Button 1_Click"
| Style="z-index: 100; left: 186px; position: absolute; top: 147px"
| Text="Button" />
|
|
|

Aug 11 '08 #2
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="Button 1_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: <Oz************ **@TK2MSFTNGP02 .phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: v-******@microsof t.com (Allen Chen)
| Organization: Microsoft
| Date: Mon, 11 Aug 2008 03:37:30 GMT
| Subject: RE: Newbie question
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
| Message-ID: <2p************ **@TK2MSFTNGHUB 02.phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| Lines: 105
| Path: TK2MSFTNGHUB02. phx.gbl
| Xref: TK2MSFTNGHUB02. phx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:7363 6
| NNTP-Posting-Host: tk5tomimport1.p hx.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 v-******@microsof t.com.
|
| 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:
| ms****@microsof t.com.
|
| =============== =============== =============== =====
| Get notification to my posts through email? Please refer to
|
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/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.publi c.dotnet.framew ork.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.publi c.dotnet.framew ork.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" <da*******@news group.nospam>
| | 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: <Oz************ **@TK2MSFTNGP02 .phx.gbl>
| | Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| | NNTP-Posting-Host: cpe-76-171-59-74.socal.res.rr .com 76.171.59.74
| | Path: TK2MSFTNGHUB02. phx.gbl!TK2MSFT NGP01.phx.gbl!T K2MSFTNGP02.phx .gbl
| | Xref: TK2MSFTNGHUB02. phx.gbl
| microsoft.publi c.dotnet.framew ork.aspnet:7363 0
| | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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="Button 1_Click"
| | Style="z-index: 100; left: 186px; position: absolute; top: 147px"
| | Text="Button" />
| |
| |
| |
|
|

Aug 12 '08 #3
Thanks Allen. Setting the width attribute fixes the problem

Is this a known issue for IE7 only or all versions of IE?

So if no width attribute is specified, IE will not display the button
correctly?

"Allen Chen [MSFT]" <v-******@online.m icrosoft.comwro te in message
news:IE******** ******@TK2MSFTN GHUB02.phx.gbl. ..
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="Button 1_Click"
Style="z-index: 100;
left: 186px; position: absolute; top: 147px; width:60px"
Text="Button" />
Regards,
Allen Chen
Microsoft Online Support

Aug 13 '08 #4
Hi Dave,

Thanks for your updating. This is a known issue of IE 7 (and IE 8 if you
run it in IE 7 Emulation mode). The button will be incorrectly expanded if
we set both left and position: absolute to it.

Currently besides fixing the width of the button we can also set position:
relative style to body element, which I think is a better workaround.

We're now investigating this issue.

Thank you for highlighting it and please let me know if you have any
further questions.

Regards,
Allen Chen
Microsoft Online Support

--------------------
| From: "Dave" <da*******@news group.nospam>
| References: <Oz************ **@TK2MSFTNGP02 .phx.gbl>
<2p************ **@TK2MSFTNGHUB 02.phx.gbl>
<IE************ **@TK2MSFTNGHUB 02.phx.gbl>
| Subject: Re: Newbie question
| Date: Tue, 12 Aug 2008 20:33:07 -0700
| Lines: 30
| 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: <#2************ **@TK2MSFTNGP03 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: cpe-76-171-59-74.socal.res.rr .com 76.171.59.74
| Path: TK2MSFTNGHUB02. phx.gbl!TK2MSFT NGP01.phx.gbl!T K2MSFTNGP03.phx .gbl
| Xref: TK2MSFTNGHUB02. phx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:7379 8
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Thanks Allen. Setting the width attribute fixes the problem
|
| Is this a known issue for IE7 only or all versions of IE?
|
| So if no width attribute is specified, IE will not display the button
| correctly?
|
|
|
| "Allen Chen [MSFT]" <v-******@online.m icrosoft.comwro te in message
| news:IE******** ******@TK2MSFTN GHUB02.phx.gbl. ..
| 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="Button 1_Click"
| Style="z-index: 100;
| left: 186px; position: absolute; top: 147px; width:60px"
| Text="Button" />
| >
| >
| Regards,
| Allen Chen
| Microsoft Online Support
|
|
|

Aug 14 '08 #5
Hi Dave,

Do you have any questions about this issue? Please don't hesitate to let me
know if you need further assistance.

Regards,
Allen Chen
Microsoft Online Support

--------------------
| From: "Dave" <da*******@news group.nospam>
| References: <Oz************ **@TK2MSFTNGP02 .phx.gbl>
<2p************ **@TK2MSFTNGHUB 02.phx.gbl>
<IE************ **@TK2MSFTNGHUB 02.phx.gbl>
| Subject: Re: Newbie question
| Date: Tue, 12 Aug 2008 20:33:07 -0700
| Lines: 30
| 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: <#2************ **@TK2MSFTNGP03 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: cpe-76-171-59-74.socal.res.rr .com 76.171.59.74
| Path: TK2MSFTNGHUB02. phx.gbl!TK2MSFT NGP01.phx.gbl!T K2MSFTNGP03.phx .gbl
| Xref: TK2MSFTNGHUB02. phx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:7379 8
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Thanks Allen. Setting the width attribute fixes the problem
|
| Is this a known issue for IE7 only or all versions of IE?
|
| So if no width attribute is specified, IE will not display the button
| correctly?
|
|
|
| "Allen Chen [MSFT]" <v-******@online.m icrosoft.comwro te in message
| news:IE******** ******@TK2MSFTN GHUB02.phx.gbl. ..
| 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="Button 1_Click"
| Style="z-index: 100;
| left: 186px; position: absolute; top: 147px; width:60px"
| Text="Button" />
| >
| >
| Regards,
| Allen Chen
| Microsoft Online Support
|
|
|

Aug 19 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1576
by: Elger | last post by:
Dear Members, A newbie question How do I convert this XML example into HTML (using XSLT)? <DOCUMENT> <PARA> This <BOLD>is</BOLD> a <BOLD>test</BOLD> </PARA> </DOCUMENT>
4
1066
by: DragonLord | last post by:
I have a custom user control that i am trying to understand and it has numbers before the line items. So here it comes the real newbie question What the heck are the numbers for?? 205: For lngCount = 0 To lstIncluded.Items.Count - 1 206: If lstIncluded.GetSelected(lngCount) Then 207: strMembers = strMembers & VB6.GetItemData(lstIncluded, lngCount) & "," End If 209: Next 211: If Len(strMembers) > 0 Then 212: strMembers =...
5
2518
by: kamikaze04 | last post by:
Hello. I have a very newbie question about Streams. The situation is that i have a function (that i cannot modify it's definition/call): public void F1(istream & in){ while( ...) { in >> value do stuff with value; }
5
1142
by: Banibrata Dutta | last post by:
Hi, I've gone through the list of "language differences" between 2.3 / 2.4 & 2.5 of CPython. I've spend around 2 weeks now, learning v2.5 of CPython, and I consider myself still very very newbie. So, unable to take a call as to how-important or desirable the newer language features are -- so whether to write my app for v2.5 of Python, versus, as few others on this list have recommended, i.e. to stick to v2.3 ?? Are the preformance...
16
1882
by: Raxit | last post by:
Hi, i was reading/learning some hello world program in python. I think its very simillar to Java/C++/C#. What's different (except syntax) ? what can i do easily with python which is not easy in c++/java !? Tnx, Raxit
7
1515
by: idiolect | last post by:
Hi all - Sorry to plague you with another newbie question from a lurker. Hopefully, this will be simple. I have a list full of RGB pixel values read from an image. I want to test each RGB band value per pixel, and set it to something else if it meets or falls below a certain threshold - i.e., a Red value of 0 would be changed to 50. I've built my list by using a Python Image Library statement akin to the following:
5
2704
by: Randall | last post by:
I am a newbie trying to learn the DOM. Can someone tell me why the first alert statement returns null, and the second returns the value 33px (which was set using the style="top:33px;" in the DIV tag). Why doesn't the first alert statement pick up the style.left attribute from the CSS? <html> <head> <style type="text/css">
12
1852
by: Philipp.Weissenbacher | last post by:
Hi all! This is most certainly a total newbie question, but why doesn't the following code cause a segfault? void insertion_sort(int a, int length) { int i; for (i=0; i < length; i++) { int j, v = a;
3
2345
Lokean
by: Lokean | last post by:
Sorry for this newbie question, this is not my realm of expertese. I have searched google, tried several applications that claim they can do this, such as Mapforce, which I found confusing, to Oxygen, to HTML kit, et cetera. I am more confused than ever. here's my quandry. I was sent a file and told that we need to get the data into a more readable form. I've tried using apps to pull it in, but it's not displaying properly.
0
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8830
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9544
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4606
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2783
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.