Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 10th, 2007, 05:08 AM
Registered User
 
Join Date: Mar 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to change your own tags in the forum?

I've tried

text = Regex.Replace(text, "\\[IMG\\](?<image>.*)\\[/IMG\\]",
"<img src=\"${image}\" border=\"0\"/>", RegexOptions.IgnoreCase);

in to attempt placing images in the forum but it doesn't seem to work, nor do

// replace the center-aligned special tags
text = Regex.Replace(text, "\\[M\\](?<centeredText>.*)\\[/M\\]",
"<p align=\"center\">${centeredText}</p>", RegexOptions.IgnoreCase);
// replace the right-aligned special tags
text = Regex.Replace(text, "\\[R\\](?<rightText>.*)\\[/R\\]",
"<p align=\"right\">${rightText}</p>", RegexOptions.IgnoreCase);

change text to be centered or right-aligned.

Anyone know on what to do?
 
Old April 14th, 2007, 12:14 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did you view the source in the browser to see what it did for you?

 
Old April 14th, 2007, 01:07 AM
Registered User
 
Join Date: Mar 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I did, but it didn't change the tags from the database into HTML code, it's like the program never changed. I don't know what is wrong, I've tried every different way of compiling and re-compiling, it just won't work for me.

I've actually tried the VB sample code from the website and that worked, however, there are issues with MyProfile.aspx in the forum and managing the Polls, it keeps saying I don't have permission even if I'm the GeneralSiteAdmin.
 
Old April 17th, 2007, 01:08 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you set a breakpoint on the code and watch it execute? You can also use System.Diagnostics.Debug.WriteLine to send info to the VS Output window when run in the debug mode.

Eric






Similar Threads
Thread Thread Starter Forum Replies Last Post
Access/change html-tags contained in elementvalues polarbear XSLT 3 December 26th, 2007 07:23 AM
Change in forum rank kherrerab BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 December 18th, 2006 10:39 AM
How can I creat a forum like P2P Forum? pcassiano ASP.NET 1.0 and 1.1 Basics 1 October 31st, 2005 05:00 AM
Need help regarding Custom Tags yamijala Dreamweaver (all versions) 0 December 27th, 2004 01:51 AM
converting Forum.aspx to Forum.ascx (help) drfunkie BOOK: ASP.NET Website Programming Problem-Design-Solution 1 July 11th, 2003 12:27 PM





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