Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 15th, 2009, 05:53 AM
Authorized User
 
Join Date: Dec 2007
Location: valsad, gujarat, India.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to dharmeshtandel
Smile Solving layout issues created by <form> tags

I have noticed that when I add a form to my asp page a line break is added to the page. There is no <br> or <p> tag but the line break appears in my page when displayed in a browser and it affects my page layout. Is there a way around the form tag to not add a space or line break at the end of the form?

here is the code :

<table>
<tr>
<td>
<h3>Before Form Tag.
</td>
</tr>
<tr>
<td>
<form>
Inside form
</form>
</td>
</tr>

<tr>
<td>
<h3>After Form Tag.
</td>
</tr>
</table>

This will disturbed the page layout.this will work well with the FF but not worked in IE8 Released version.

Regards,
Dharmesh
__________________
dharmeshtandel
 
Old April 15th, 2009, 09:52 AM
Lee Dumond's Avatar
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

If you're working in ASP.NET, then presumably the entire page would be wrapped in a <form runat="server"> that is just inside <body>.

In that case, you wouldn't want or need to embed a second form tag in the page. Just put your form controls right inside your <td> or wherever.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}




Similar Threads
Thread Thread Starter Forum Replies Last Post
how can split/replace the <br> with <Para> tags. moshaik XML 2 March 8th, 2009 11:11 AM
<!DOCTYPE> Tags? kennethjaysone HTML Code Clinic 0 May 18th, 2007 01:39 AM
Problem with IE's innerHTML and <form> tags??!?! nebulus Javascript 1 February 15th, 2006 05:08 PM
Regular Expression to remove <table> </table> tags mathalete CSS Cascading Style Sheets 2 January 23rd, 2006 01:59 PM
<style> tags in a <body> vs. <div> bcat BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 27th, 2005 08:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.