Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityCommunity Membe...Community Membe...Free StringBuilder ModuleFree StringBuilder Module
Previous
 
Next
New Post
8/24/2006 4:17 PM
 

StringBuilder Code Generator for both DotNetNuke Versions 3 & 4.  Free & includes source.  Use it or download it here.


    - Doug Vogel     

 
New Post
8/27/2006 4:24 PM
 

I didn't find any contact form so I'll post here

The module is bugged, It doesn't convert " this is a illegal character in strings in VB.NET

also adding a CR could be replaced by adding CRLF
adding CRLF should have it's own *sb.append* because you are doing a cast and a string concat before adding this concatted string to the string builder


Edit your Skin.xml and Container.xml files with:
Yannick's SXE
 
New Post
8/28/2006 12:57 AM
 
I've been using it - it works - just cut and paste.  It has worked for me so far.  I don't see any bugs and I've used it several times just today.

The chr(34) = "  hasn't been a problem.  I substitute "" for " using "replace".

The carriage return is replaced with chr(13), I don't know, maybe it should have a vbnewline instead of the chr(13)?  But it works, compiles and gives back the info like it should.

Maybe we're not using it for the same things?

    - Doug Vogel     

 
New Post
8/30/2006 11:49 AM
 
I pasted some xml into the module

the " characters for my attributes weren't replaced properly

and LineBreaks were only specified by chr(13)
maybe you should have an option to choose between "chr(13)" and "chr(13) & chr(10)"

Edit your Skin.xml and Container.xml files with:
Yannick's SXE
 
New Post
8/30/2006 10:31 PM
 
purplebox wrote
LineBreaks were only specified by chr(13)
maybe you should have an option to choose between "chr(13)" and "chr(13) & chr(10)"


You are right about change the Chr(13).  Previously that was what was at the end of each line. 

Although it has worked for me so far that was because it is enough when a file is generated and opened in VS or IE or FF.  Even when I examined the source while in IE it displayed correctly via Notepad.  But to directly open it in Notepad: it was not right!  So my browsers were displaying what I expected, but Notepad doesn't.

I took a Hex Editor and opened a Notepad file "Test.txt" which had inside:

A
B
C

the Hex contents are:  41 0D 0A 42 0D 0A 43

where 0D is carriage return = chr(13)
and 0A is line feed = chr(10)

So I will opt for the vbCrLf constant which will give me the same Chr(13) & Chr(10) and work regardless of platform.  Now if it displays and works Okay in Notepad, it will still function just fine in all the rest.  So I have changed it and have opted to skip the Chr(13) altogether.

The new module stringbuilder.zip available here has been modified for the above if you want to try it again.

Next I will test on some XML files.  I am hoping this might actually solve all problems.  Let me know if you happen to test again and it fails - I would like to examine some of that XML file to see why if possible.

    - Doug Vogel     

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityCommunity Membe...Community Membe...Free StringBuilder ModuleFree StringBuilder Module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out