<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Removing the TABLE from the CreateUserWizard control</title>
	<atom:link href="http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/</link>
	<description>Thoughts on life, liberty, and information technology</description>
	<pubDate>Sat, 31 Jul 2010 08:01:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: RA</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-601481</link>
		<dc:creator>RA</dc:creator>
		<pubDate>Tue, 09 Mar 2010 22:55:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-601481</guid>
		<description>replace
base.RenderContents(hw);
on
base.Render(hw);</description>
		<content:encoded><![CDATA[<p>replace<br />
base.RenderContents(hw);<br />
on<br />
base.Render(hw);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RA</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-601477</link>
		<dc:creator>RA</dc:creator>
		<pubDate>Tue, 09 Mar 2010 22:52:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-601477</guid>
		<description>"Create user" button is disappeared</description>
		<content:encoded><![CDATA[<p>&#8220;Create user&#8221; button is disappeared</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brian</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-13326</link>
		<dc:creator>brian</dc:creator>
		<pubDate>Wed, 14 Nov 2007 21:12:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-13326</guid>
		<description>The regex is now correct in my previous comment. Basically, it strips out TABLE, THEAD, TBODY, TR, and TD tags, which are those created by the CreateUserWizard adapter. You can use the same regex patterns with TFOOT, COLGROUP, COL, and TH to be more thorough (though it's unnecessary as they are not used).</description>
		<content:encoded><![CDATA[<p>The regex is now correct in my previous comment. Basically, it strips out TABLE, THEAD, TBODY, TR, and TD tags, which are those created by the CreateUserWizard adapter. You can use the same regex patterns with TFOOT, COLGROUP, COL, and TH to be more thorough (though it&#8217;s unnecessary as they are not used).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-13319</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Wed, 14 Nov 2007 21:04:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-13319</guid>
		<description>dang... that's sneaky... I couldn't even do it like that.. I'll try replacing the code with html safe values.  If this doesn't work, I'll stop comment spamming:

&#60;/?table[^&#62;]*&#62;&#124;&#60;/?tr[^&#62;]*&#62;&#124;&#60;/?td[^&#62;]*&#62;&#124;&#60;/?thead[^&#62;]*&#62;&#124;&#60;/?tbody[^&#62;]*&#62;</description>
		<content:encoded><![CDATA[<p>dang&#8230; that&#8217;s sneaky&#8230; I couldn&#8217;t even do it like that.. I&#8217;ll try replacing the code with html safe values.  If this doesn&#8217;t work, I&#8217;ll stop comment spamming:</p>
<p>&lt;/?table[^&gt;]*&gt;|&lt;/?tr[^&gt;]*&gt;|&lt;/?td[^&gt;]*&gt;|&lt;/?thead[^&gt;]*&gt;|&lt;/?tbody[^&gt;]*&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-13318</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Wed, 14 Nov 2007 21:02:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-13318</guid>
		<description>oooooh interesting...  I just pasted my code and it appears your parser is removed the valuable syntax.  I see the problem now.  I'll past it again with a space between each char.  This will only be the actual regex string.

 ] * &#62; &#124;  ] * &#62; &#124;  ] * &#62; &#124;  ] * &#62; &#124;  ] * &#62;</description>
		<content:encoded><![CDATA[<p>oooooh interesting&#8230;  I just pasted my code and it appears your parser is removed the valuable syntax.  I see the problem now.  I&#8217;ll past it again with a space between each char.  This will only be the actual regex string.</p>
<p> ] * &gt; |  ] * &gt; |  ] * &gt; |  ] * &gt; |  ] * &gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-13317</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Wed, 14 Nov 2007 21:00:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-13317</guid>
		<description>Actually... I think I got it.  I changed the regex stuff to this:
str = Regex.Replace(str, "]*&#62;&#124;]*&#62;&#124;]*&#62;&#124;]*&#62;&#124;]*&#62;", String.Empty);

Seems to work great now!  Thanks for all the help.</description>
		<content:encoded><![CDATA[<p>Actually&#8230; I think I got it.  I changed the regex stuff to this:<br />
str = Regex.Replace(str, &#8220;]*&gt;|]*&gt;|]*&gt;|]*&gt;|]*&gt;&#8221;, String.Empty);</p>
<p>Seems to work great now!  Thanks for all the help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brian</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-13316</link>
		<dc:creator>brian</dc:creator>
		<pubDate>Wed, 14 Nov 2007 20:56:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-13316</guid>
		<description>Text got stripped out when the post was made, let me fix it...

OK, should be better now. Damn web editors!</description>
		<content:encoded><![CDATA[<p>Text got stripped out when the post was made, let me fix it&#8230;</p>
<p>OK, should be better now. Damn web editors!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-13315</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Wed, 14 Nov 2007 20:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-13315</guid>
		<description>I'm no regex expert, but, the remove tables seems to do the same thing over and over again.  It doesn't remove the table, but it does remove the closing tags within my wizard and this causes a world of problems.  I'm assuming the regex stuff should be more related to "table tag" stuff like table, tr, td, th, tbody.  ?  Am I on the right track?</description>
		<content:encoded><![CDATA[<p>I&#8217;m no regex expert, but, the remove tables seems to do the same thing over and over again.  It doesn&#8217;t remove the table, but it does remove the closing tags within my wizard and this causes a world of problems.  I&#8217;m assuming the regex stuff should be more related to &#8220;table tag&#8221; stuff like table, tr, td, th, tbody.  ?  Am I on the right track?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brian</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-13301</link>
		<dc:creator>brian</dc:creator>
		<pubDate>Wed, 14 Nov 2007 20:13:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-13301</guid>
		<description>I would try the following, which I've used rather successfully on quite a few sites. Note that this will strip any HTML TABLEs from your markup, so don't use any in your templates.

&lt;pre&gt;
public class CssCreateUserWizard : System.Web.UI.WebControls.CreateUserWizard
{
	protected override void Render( HtmlTextWriter writer )
	{
		//write opening div
		writer.WriteBeginTag("div");
		writer.WriteAttribute("class", this.CssClass);
		writer.Write(HtmlTextWriter.TagRightChar);

		//get the rendered HTML
		StringBuilder sb = new StringBuilder();
		StringWriter sw = new StringWriter(sb);
		HtmlTextWriter hw = new HtmlTextWriter(sw);

		//render output to string
		base.RenderContents(hw);

		//remove tables
		string str = sb.ToString();
		str = Regex.Replace(str, "&#60;/?table[^&#62;]*&#62;", String.Empty);
		str = Regex.Replace(str, "&#60;/?tr[^&#62;]*&#62;", String.Empty);
		str = Regex.Replace(str, "&#60;/?td[^&#62;]*&#62;", String.Empty);
		str = Regex.Replace(str, "&#60;/?thead[^&#62;]*&#62;", String.Empty);
		str = Regex.Replace(str, "&#60;/?tbody[^&#62;]*&#62;", String.Empty);

		writer.Write(str);

		//write closing div
		writer.WriteEndTag("div");
	}
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I would try the following, which I&#8217;ve used rather successfully on quite a few sites. Note that this will strip any HTML TABLEs from your markup, so don&#8217;t use any in your templates.</p>
<pre>
public class CssCreateUserWizard : System.Web.UI.WebControls.CreateUserWizard
{
	protected override void Render( HtmlTextWriter writer )
	{
		//write opening div
		writer.WriteBeginTag("div");
		writer.WriteAttribute("class", this.CssClass);
		writer.Write(HtmlTextWriter.TagRightChar);

		//get the rendered HTML
		StringBuilder sb = new StringBuilder();
		StringWriter sw = new StringWriter(sb);
		HtmlTextWriter hw = new HtmlTextWriter(sw);

		//render output to string
		base.RenderContents(hw);

		//remove tables
		string str = sb.ToString();
		str = Regex.Replace(str, "&lt;/?table[^&gt;]*&gt;&#8221;, String.Empty);
		str = Regex.Replace(str, &#8220;&lt;/?tr[^&gt;]*&gt;&#8221;, String.Empty);
		str = Regex.Replace(str, &#8220;&lt;/?td[^&gt;]*&gt;&#8221;, String.Empty);
		str = Regex.Replace(str, &#8220;&lt;/?thead[^&gt;]*&gt;&#8221;, String.Empty);
		str = Regex.Replace(str, &#8220;&lt;/?tbody[^&gt;]*&gt;&#8221;, String.Empty);

		writer.Write(str);

		//write closing div
		writer.WriteEndTag(&#8221;div&#8221;);
	}
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-13247</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Wed, 14 Nov 2007 17:14:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.sidesofmarch.com/index.php/archive/2006/04/18/removing-the-table-from-the-createuserwizard-control/#comment-13247</guid>
		<description>Hey, this is a great article.  I'm looking to do this exact thing.  It's been a while since you wrote this article so I'm wondering if you've had any more insights.

I using this code but when I do, nothing shows up.  I did add the customtemplate and CustomNavigationTemplate (with nothing in them).  Is that sufficient?  Also, is the CompleteWizardStep node required?

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hey, this is a great article.  I&#8217;m looking to do this exact thing.  It&#8217;s been a while since you wrote this article so I&#8217;m wondering if you&#8217;ve had any more insights.</p>
<p>I using this code but when I do, nothing shows up.  I did add the customtemplate and CustomNavigationTemplate (with nothing in them).  Is that sufficient?  Also, is the CompleteWizardStep node required?</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
