CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 2/12/2004 3:40:13 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 18 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
SomeNewKid
Asp.Net User
Maintaining indent during render2/12/2004 3:40:13 AM

0/0

Say I use the standard Panel server control:
            <asp:Panel runat="server">

Hello, world!
</asp:Panel>
It will render with the indenting maintained:
            <div>

Hello, world!
</div>


I then create a custom server control that does nothing except inherit Panel:
    namespace e3.Web.UI

{
public class Panel : System.Web.UI.WebControls.Panel
{
public Panel()
{
}
}
}


Now I use my inherited Panel server control:
            <e3:Panel runat="server">

Hello, world!
</e3:Panel>
When rendered, the closing tag's indent is not maintained:
            <div>

Hello, world!
</div>


Obviously, I have not changed anything within the server control's logic ... it is an unchanged inheritance. Yet the rendering is different.

How can I get my custom server controls' closing tags to maintain the correct indentation?

(I know it's a superficial concern ... but it's really bugging me!)

Thanks to anyone who can shed some light on this for me ...
Alister
bashar_naffa
Asp.Net User
Re: Maintaining indent during render2/14/2004 6:19:17 AM

0/0

hi,

try to over the two methods RenderBeginTag, RenderEndTag
and write your own rendering tags

HTH


Destiny is not a thing to be waited, it's a thing to be achieved
SomeNewKid
Asp.Net User
Re: Maintaining indent during render2/14/2004 10:20:57 AM

0/0

Even if I overrode those methods, how can I determine what the original indentation was?

I would have thought the indentation was a part of the LiteralControl immediately before my custom control ... hence, it's not available to my control.
Alister
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Thin Film Materials: Stress, Defect Formation, and Surface Evolution Authors: L. B. Freund, Subra Suresh, Pages: 750, Published: 2003

Web:
Docs For Class Container It lets you push data into it, and it will render each item indented .... int $ output_debug: - the output debug flag to maintain compatibility w/ the API. ...
decrease indent Resources | TechRepublic Clicking the Increase Indent or Decrease Indentbuttons increases or ... of some of the graphical frills that XP uses to render the desktop will improve the ...
msxml indent - Re: Result still indented despite indent="no" And during the same time frame, SAX evolved into the de facto streaming (push- model) ... processing instruction that is often used to render XML documents*. ...
GEOLOGICAL SURVEY OF INDIA INDENT FORM FOR PURCHASE OF UNPUBLISHED ... C. I will maintain a proper record of all the Restricted Maps sold to me and ... that the failure to report about the loss would render me liable for ...
3D tactile rendering based on Bi (multi) stable SMA monolithic ... 3D rendering for tactile exploration. The second alternative for bistability can be achieved. through the snap-through of a buckled beam to maintain two ...
Citizen's Charter To conduct training in Supply & Quality Management and render consultancy ... To have interaction with the indenting departments to have a feed back on the ...
Playing with Lists - Numbering - Subheads - Indenting - Margins Lists are an easy way to maintain a Web page. Not only are they easy for your customers to ... Most browsers have a very specific way of rendering lists, ...
Antipode - Link - Indentation voodoo in Python Feb 25, 2008 ... By forcing the indent, it fixes a minor human program (which should be caught during testing / using a debugger), with a problem that is ...
Thomas Kahn's Umbraco Blog: Graphic headlines while maintaining ... May 2, 2008 ... Graphic headlines while maintaining semanically correct markup ... Thus no CSS = no graphic headline, no indent and no overflow hidden. ...
Axiom Development Guidelines - Axiom : A 3D Rendering Engine in C# Do indent block contents
  • Do not indent open and close braces ... Many thanks to the OGRE team for maintaining such a high quality project. ...




  • Search This Site:










    registration benefits for express editions?

    how can i selectively protect pages?

    bug fixing in dnn 2.1.2?

    new module: smart-thinker quotes

    arrays v. collections

    skin choose in asp.net

    log viewer unavailable

    just a question regarding a themed webpage

    dnn for applications input

    trouble installing dotnetnuke (yes i looked)

    is it possible to drag and drop in web parts

    problem with iis and access right to publish aspx pages

    need help with gridview update process

    why are there hard coded widths for edit modules

    trackback

    is this a bug in the menu control...?

    dynamic membershipprovider

    initial dotnetnuke install from http://localhost/dotnetnuke

    controls do not show up

    wizard control and web user control

    server application unavailable

    beginners question on membership

    very upset with my hosting provider...

    can you have dynamic data sources for the dsd (xsd dataset designer?)

    custom database-driven site map provider

    treeview: autopostback for only certain events?

    trying to login to asp.net app

    help converting c# statement to vb

    help for a nub..install ok...localhost browse ok....remote browsing no ok?!?!?

    error: lists is currently unavailable

     
    All Times Are GMT