Click here to Skip to main content
15,902,114 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Question[newbie] resource name is not a valid identifier Pin
jon-808-Mar-09 5:45
professionaljon-808-Mar-09 5:45 
AnswerRe: [newbie] resource name is not a valid identifier Pin
N a v a n e e t h8-Mar-09 16:26
N a v a n e e t h8-Mar-09 16:26 
GeneralRe: [newbie] resource name is not a valid identifier Pin
jon-808-Mar-09 20:09
professionaljon-808-Mar-09 20:09 
GeneralRe: [newbie] resource name is not a valid identifier Pin
Shashwat Tripathi1-Jun-13 19:53
Shashwat Tripathi1-Jun-13 19:53 
GeneralRe: [newbie] resource name is not a valid identifier Pin
Muhammed Yaseen5-Jun-13 2:38
Muhammed Yaseen5-Jun-13 2:38 
Questionfire Access report from asp.net page Pin
alvarog018-Mar-09 2:49
alvarog018-Mar-09 2:49 
AnswerRe: fire Access report from asp.net page Pin
Yusuf8-Mar-09 7:42
Yusuf8-Mar-09 7:42 
QuestionHTML Table Issue in ASP.Net Web app Pin
Harvey Saayman8-Mar-09 1:13
Harvey Saayman8-Mar-09 1:13 
Hey guys

I'm busy developing a website and ive hit a bit of a snag... again!

I've decided to put the content of my site in a table(the borders will be invisible or "0" after i get this to work right). Ive mocked up the table in a plain HTML file, here is the code for that.

<html>
<head>
</head>

<body>
<center>
<table border="1" width="1000" align="center" cellpadding="0" cellspacing="0">
<thead>
<tr>
<td align="center" colspan="4">Tool Bar</td>
</tr>
<tr>
<td align="left" colspan="2">Rooms 4 Rent Logo</td>
<td align="right" colspan="2">Add Space</td>
</tr>
<tr>
<td align="center" colspan="4">Tabs</td>
</tr>
</thead>
<thead>
<tr>
<td align="left" colspan="1" width="150" valign="top">Search</td>
<td align="center" colspan="2" width="700">
<center>Content
<br/><br/><br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/><br/><br/>
</center>
</td>
<td align="right" colspan="1" width="150" valign="top">Add Space</td>
</tr>
</thead>
<tfoot>
<tr>
<td align="center" colspan="4"><center>Link Bar</center></td>
</tr>
</tfoot>
</table>
</center>
</body>
</html>

And heres a screen shot of the result

http://www.r4r.co.za/images/TableLayout.JPG

So i took this design and put it in my ASP.net solutions master page. And added the content in the correct cell's

Here is the code

<table border="1" width="1000" align="center" cellpadding="0" cellspacing="0">
<thead>
<tr>
<td align="center" colspan="4">Tool Bar</td>
</tr>
<tr>
<td align="left" colspan="2">
<asp:Image ID="ImgLogo" runat="server" Height="100px" ImageUrl="~/Images/Logo.jpg"
Width="400px" ImageAlign="Left" Style="text-align: Left" />

</td>
<td align="right" colspan="2">Add Space</td>
</tr>
<tr>
<td align="center" colspan="4">

<asp:ImageButton ID="BtnHome" runat="server" ImageUrl="~/Button Images/HomeButton.jpg"
OnClick="BtnHome_Click" />
<asp:ImageButton ID="BtnJohannesburg" runat="server" ImageUrl="~/Button Images/JohannesburgButton.jpg"
OnClick="BtnJohennesburg_Click" />
<asp:ImageButton ID="BtnPretoria" runat="server" ImageUrl="~/Button Images/PretoriaButton.jpg"
OnClick="BtnPretoria_Click" />
<asp:ImageButton ID="BtnRustenburg" runat="server" ImageUrl="~/Button Images/RustenburgButton.jpg"
OnClick="BtnRustenburg_Click" />
<asp:ImageButton ID="BtnPolokwane" runat="server" ImageUrl="~/Button Images/PolokwaneButton.jpg"
OnClick="BtnPolokwane_Click" />
<asp:ImageButton ID="BtnNelspruit" runat="server" ImageUrl="~/Button Images/NelspruitButton.jpg"
OnClick="BtnNelspruit_Click" />
<asp:ImageButton ID="BtnDurban" runat="server" ImageUrl="~/Button Images/DurbanButton.jpg"
OnClick="BtnDurban_Click" />
<asp:ImageButton ID="BtnPortElizabeth" runat="server" ImageUrl="~/Button Images/PortElizabethButton.jpg"
OnClick="BtnPortElizabeth_Click" />
<asp:ImageButton ID="BtnCapeTown" runat="server" ImageUrl="~/Button Images/CapeTownButton.jpg"
OnClick="BtnCapeTown_Click" />
<asp:ImageButton ID="BtnBloemfontein" runat="server" ImageUrl="~/Button Images/BloemfonteinButton.jpg"
OnClick="BtnBloemfontein_Click" />
<asp:ImageButton ID="BtnFAQ" runat="server" ImageUrl="~/Button Images/FaqButton.jpg"
OnClick="BtnFaq_Click" />
<asp:ImageButton ID="BtnContactUs" runat="server" ImageUrl="~/Button Images/ContactUsButton.jpg"
OnClick="BtnContactUs_Click" />
</td>
</tr>
</thead>
<thead>
<tr>
<td align="left" colspan="1" width="150" valign="top">Search</td>
<td align="center" colspan="2" width="700">
<center><asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"><br/><br/><br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/><br/><br/>
</asp:ContentPlaceHolder>

</center>
</td>
<td align="right" colspan="1" width="150" valign="top">Add Space</td>
</tr>
</thead>
<tfoot>
<tr>
<td align="center" colspan="4"><center><a href="Default.aspx">[Home]</a>&nbsp; <a href="mailTo:Info@r4r.co.za">[E-mail Info]</a>&nbsp;
<a href="mailTo:WebMaster@r4r.co.za">[E-mail Web Master]
</a>&nbsp;<a href="AdminLogin.aspx">[Admin]</a></center></td>
</tr>
</tfoot>
</table>

And here is the result

http://www.r4r.co.za/images/Problem.JPG



Now what seems to be happening is that when i put the logo in the cell it belongs, the corresponding columns width increases.

How can i get the columns width to stay the the way it is irrespective of its content?
Note: I need the cell heights to dynamically increase as content is added, and it is doing this correctly

<div class="ForumSig"><center><b><font color="red">Harvey Saayman - South Africa
Software Developer
.Net, C#, SQL</font></b>
<code>you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)</code>
<font color="lime"><b>1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111 </b></font></center></div>
AnswerRe: HTML Table Issue in ASP.Net Web app Pin
Jitendra R Wadhwani8-Mar-09 1:41
Jitendra R Wadhwani8-Mar-09 1:41 
AnswerRe: HTML Table Issue in ASP.Net Web app Pin
Jerry.Wang8-Mar-09 19:27
Jerry.Wang8-Mar-09 19:27 
QuestionNeed Help to read my mail from my gmail Pin
Senthil S8-Mar-09 0:52
Senthil S8-Mar-09 0:52 
AnswerRe: Need Help to read my mail from my gmail Pin
Ashfield8-Mar-09 9:01
Ashfield8-Mar-09 9:01 
AnswerRe: Need Help to read my mail from my gmail Pin
Christian Graus8-Mar-09 14:15
protectorChristian Graus8-Mar-09 14:15 
GeneralRe: Need Help to read my mail from my gmail Pin
_Maxxx_8-Mar-09 20:47
professional_Maxxx_8-Mar-09 20:47 
QuestionDataSets Pin
Illegal Operation7-Mar-09 17:24
Illegal Operation7-Mar-09 17:24 
AnswerRe: DataSets Pin
Blue_Boy7-Mar-09 22:14
Blue_Boy7-Mar-09 22:14 
AnswerRe: DataSets Pin
Xmen Real 7-Mar-09 23:32
professional Xmen Real 7-Mar-09 23:32 
GeneralRe: DataSets Pin
Xmen Real 7-Mar-09 23:33
professional Xmen Real 7-Mar-09 23:33 
QuestionStatic Timer in WebSite Pin
Masterhame7-Mar-09 10:48
Masterhame7-Mar-09 10:48 
AnswerRe: Static Timer in WebSite Pin
Yusuf7-Mar-09 12:20
Yusuf7-Mar-09 12:20 
GeneralRe: Static Timer in WebSite Pin
Masterhame7-Mar-09 17:03
Masterhame7-Mar-09 17:03 
GeneralRe: Static Timer in WebSite Pin
Yusuf8-Mar-09 1:46
Yusuf8-Mar-09 1:46 
GeneralRe: Static Timer in WebSite Pin
AprNgp8-Mar-09 2:02
AprNgp8-Mar-09 2:02 
QuestionC#, .net, prototype, design [modified] Pin
software1017-Mar-09 6:53
software1017-Mar-09 6:53 
RantRe: C#, .net, prototype, design Pin
Xmen Real 7-Mar-09 14:36
professional Xmen Real 7-Mar-09 14:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.