AllExperts > Experts 
Search      

VB.NET

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More VB.NET Answers
Question Library

Ask a question about VB.NET
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Syed Rizwan Muhammad Rizvi
Expertise
I can answers questions regarding web based and desktop based programming in VB.Net. Which can include SOAP, XML, Custom Controls, COM Interoperability etc.

Experience
Have been working in this specific area for last 2 years previously I was a VB 6 Developer with experties in other languages as well. Total 10 years of programming experience.

 
   

You are here:  Experts > Computing/Technology > Basic > VB.NET > Regarding Master Pages

Topic: VB.NET



Expert: Syed Rizwan Muhammad Rizvi
Date: 4/24/2008
Subject: Regarding Master Pages

Question
stiil problem is not solved
Source Code of Masterpage.master
--------------------------------
<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
   <title>Untitled Page</title>
</head>
<body>
   <form id="form1" runat="server">
   <div>
                       <asp:Image ID="Image1" runat="server" ImageUrl="default_01.JPG" ImageAlign="Top" />
       
           <table style="padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px;
       padding-top: 0px">
               <tr>
                   <td colspan="3">
                       </td>
               </tr>
               <tr>
                   <td style="width: 10px; background-image: url(default_03.JPG); height: 186px;" colspan="2" align="left" valign="top">
                       <asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1" Width="60px" style="padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px;
       padding-top: 0px" Height="10px" NodeIndent="10">
                       </asp:TreeView>
                       <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
                        
                   </td>
                   <td >
                   
                   <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
                   <div style="height: 1000px; width:600px; overflow:scroll">
                    </div>
                    </asp:contentplaceholder>
                   
                   </td>
               </tr>
               <tr>
                   <td colspan="3">
                       <asp:Image ID="Image2" runat="server" ImageUrl="default04.JPG" /></td>
               </tr>
           </table>
      
   </div>
   </form>
</body>
</html>

Source code of Child Page
-------------------------
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" Theme="SkinFile" AutoEventWireup="false" CodeFile="mstequiptype.aspx.vb" Inherits="mstequiptype" title="Equipment Type Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
                    
    
   <asp:Label ID="Label1" runat="server" Font-Bold="True" Height="32px" Style="z-index: 111;
       left: 389px; position: absolute; top: 105px" Width="208px">Equipment Type Master</asp:Label>
   <asp:TextBox ID="txtequiptype" runat="server" Style="z-index: 102; left: 208px; position: absolute;
       top: 179px" Width="272px"></asp:TextBox>
   <asp:Button ID="cmdadd" runat="server" Height="32px" Style="z-index: 103; left: 209px;
       position: absolute; top: 246px" Text="Add" Width="73px" />
   <asp:Button ID="cmdmodify" runat="server" Height="32px" Style="z-index: 104; left: 303px;
       position: absolute; top: 245px" Text="Modify" Width="80px" />
   <asp:Button ID="cmdsave" runat="server" Height="32px" Style="z-index: 105; left: 399px;
       position: absolute; top: 244px" Text="Save" Width="88px" />
   <asp:DataGrid ID="dgequiptype" runat="server" AutoGenerateColumns="False" BorderColor="#804000"
       Height="40px" OnItemCommand="itemrow" Style="z-index: 101; left: 495px; position: absolute;
       top: 163px" Width="279px">
       <ItemStyle ForeColor="Blue" />
       <HeaderStyle BackColor="DarkRed" ForeColor="Snow" />
       <Columns>
           <asp:ButtonColumn CommandName="select" HeaderText="Click Here" Text="Edit"></asp:ButtonColumn>
           <asp:BoundColumn DataField="equip_type_code" HeaderText="Code" ReadOnly="True"></asp:BoundColumn>
           <asp:BoundColumn DataField="equip_type" HeaderText="Equipment Type" ReadOnly="True">
           </asp:BoundColumn>
       </Columns>
   </asp:DataGrid>

</asp:Content>  

Answer
Hi,

I dont think I would be able to find enough time to play around with the CSS and come with a solution to your problem. What I recommend is that you remove all css restricting height and widths of elements and then start applying CSS on each element.

A quicker of doing it can be by using IE Developer tool bar where you can modify the values of a page on the fly with in the browser and see the effects immediately.

Regards,
Riz

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.