473,395 Members | 1,937 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,395 software developers and data experts.

Websites looks different in different browsers

I get different outputs in different browsers.

Please help me to find a solution.

Expand|Select|Wrap|Line Numbers
  1. <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
  2. <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
  3.  
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5.  
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head runat="server">
  8.     <title>Untitled Page</title>
  9.     <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
  10. </head>
  11. <body>
  12.     <form id="form1" runat="server">
  13.     <div>
  14.  
  15.     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  16.         <asp:Button ID="btnview" runat="server" Text="view" onclick="btnview_click"/>
  17.         <asp:LinkButton ID="onylforshow" runat="server"></asp:LinkButton>
  18.         <asp:ScriptManager ID="ScriptManager1" runat="server">
  19.     </asp:ScriptManager>
  20.        <%-- ---------------------------------------------------------------------------------------------%>
  21.        <asp:Panel ID="pnlmodalpopup" runat="server" Style="display:" CssClass="modalPopup"
  22.                        Height="550px" Width="850px" BackColor="White" Direction="LeftToRight" 
  23.                        BorderColor="Black" BorderWidth="2px" >
  24.  
  25.  
  26.         <asp:Button ID="btncancel" runat="server" BackColor="White" BorderColor="White" 
  27.             BorderStyle="Solid" Font-Bold="True" Font-Names="Tahoma" Font-Size="14px" 
  28.             ForeColor="Black" Text="X" Width="30px" style="margin-left: 816px" />
  29.           <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> 
  30.             <hr style="color: #3399FF" />
  31.             <br /><br /><br />
  32.             <hr style="color:Green" />
  33.              <br /><br /><br />
  34.             <hr style="color: Red" />
  35.             <br /><br /><br />
  36.             <hr style="color:Green" />
  37.              <br /><br /><br />
  38.             </asp:Panel>
  39.  
  40.  
  41.  
  42.                 <ajax:modalpopupextender ID="mpeMsgPopup" runat="server" 
  43.           TargetControlID="onylforshow" PopupControlID="pnlmodalpopup" BackgroundCssClass="modalBackground"  DropShadow="false" 
  44.          EnableViewState="true">
  45.     </ajax:modalpopupextender>
  46.  
  47.  
  48.     </div>
  49.  
  50.     </form>
  51. </body>
  52. </html>
Oct 29 '10 #1
1 1492
Frinavale
9,735 Expert Mod 8TB
Consider using CSS instead of HTML <br> elements an &nbsp; to specify how your page looks. This will most likely fix your problem.
Oct 29 '10 #2

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

Similar topics

13
by: Raja Kiran Kumar Reddy Sandireddy | last post by:
Hi, I observed a very strange phenomenon with my program outputs. I run my C-program on MSDOS environment and the same program on Sun-session. I get same output when the input is a small file...
15
by: Beeeeeves | last post by:
Is there a quick way to find the index of the first character different in two strings? For instance, if I had the strings "abcdefghijkl" and "abcdefxyz" I would want the return value to be...
1
by: Mamatha | last post by:
Hi I want to capture a live video from a webcam and make it as avi file,at the same time also i want to detect a motion from that live video.Is it possible to do the things simutaneously.Because...
9
by: Casanova | last post by:
int main() { int i=5; printf("\n%d",++i + ++i + ++i + ++i + ++i ); } Why does the above program print 40 as output in TC and 41 in GCC? logically it appeals to me that 40 makes more sense...
43
by: davidkoree | last post by:
I mean not about cookie. Does it have something to do with operating system or browser plugin? I appreciate any help.
3
by: Ryan Liu | last post by:
Hi, I have a big urgent problem to solve. I used to use Windows 2000 Chinese version, now I installed Windows XP (English) system. The problem is not about 2000 or XP, it is about English...
3
by: pradeep | last post by:
Hello, Can any one tell me different functions or properties of javascript which are gives different outputs on different browsers ? Thanks in advance. Bye
8
by: CJM | last post by:
I'm gradually upgrading and improving a website. it was bodged together by a marketing agency so you can imagine the starting point. Things are much improved but I've got a couple of layput...
2
by: JOHNSHELL08 | last post by:
Dear Team, There is a problem related to change ip address there in my network a domain admin user is exist and user knows its password and by this they are able to login with this...
10
mariko
by: mariko | last post by:
I know that there are different margins in different browsers. I tried the Global Reset and it didn't help. I am a beginner, so I might be doing something wrong and I won't be offended if you...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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.