473,545 Members | 2,451 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.Text.Str ingBuilder

I am using some code off the web that requires a string builder in a script
within a web page.

In order to get the script to work I need to include the relevant library in
the references section in the project.

However, if I include the System library, the application does not work. In
the help files the string builder class is meant to be in system.text but it
aint!!

What library should I include so that string builder is available

Thanks in advance
Jul 21 '05 #1
6 6068
Hp.

System.text

I hope this helps?

Cor

"hplloyd" <hp*****@discus sions.microsoft .com>
I am using some code off the web that requires a string builder in a script
within a web page.

In order to get the script to work I need to include the relevant library
in
the references section in the project.

However, if I include the System library, the application does not work.
In
the help files the string builder class is meant to be in system.text but
it
aint!!

What library should I include so that string builder is available

Thanks in advance

Jul 21 '05 #2
There is no system.text library in the list when I add a reference to the
project

"Cor Ligthert" wrote:
Hp.

System.text

I hope this helps?

Cor

"hplloyd" <hp*****@discus sions.microsoft .com>
I am using some code off the web that requires a string builder in a script
within a web page.

In order to get the script to work I need to include the relevant library
in
the references section in the project.

However, if I include the System library, the application does not work.
In
the help files the string builder class is meant to be in system.text but
it
aint!!

What library should I include so that string builder is available

Thanks in advance


Jul 21 '05 #3
Hp,

What kind of script are you talking about, serverside of clientside?

Cor
Jul 21 '05 #4
Cor et al,

It's actually my problem. Hp started this thread for me.

What I want to do is use the methodology provided in the following tutorial:
http://www.charon.co.uk/content.aspx...8&ArticleID=53 in order to
render compliant XHTML.

I've compiled the Components class, and added the ?serverside? script to my
webpage aspx file in Visual Studio. However, when I run Build I get the
following:

Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'StringWriter'
could not be found (are you missing a using directive or an assembly
reference?)

Source Error:

Line 17: {
Line 18: StringBuilder stringBuilder = new StringBuilder() ;
Line 19: StringWriter stringWriter = new StringWriter(st ringBuilder);
Line 20: HtmlTextWriter htmlWriter = new HtmlTextWriter( stringWriter);
Line 21: base.Render(htm lWriter);
Source File: http://localhost/EmployeeInfo2/EmployeeForm.aspx Line: 19

Thanks for your help,
Cormy

"Cor Ligthert" wrote:
Hp,

What kind of script are you talking about, serverside of clientside?

Cor

Jul 21 '05 #5
Cormy,

Can you add this in top of your page
<%@ Import Namespace="Syst em.Text" %>
<%@ Import Namespace="Syst em.IO" %>

I took the next error as well the rest you may do yourself.

I hope this helps?

Cor

"Cormy" <Co***@discussi ons.microsoft.c om>
Cor et al,

It's actually my problem. Hp started this thread for me.

What I want to do is use the methodology provided in the following
tutorial:
http://www.charon.co.uk/content.aspx...8&ArticleID=53 in order
to
render compliant XHTML.

I've compiled the Components class, and added the ?serverside? script to
my
webpage aspx file in Visual Studio. However, when I run Build I get the
following:

Compilation Error
Description: An error occurred during the compilation of a resource
required
to service this request. Please review the following specific error
details
and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'StringWriter'
could not be found (are you missing a using directive or an assembly
reference?)

Source Error:

Line 17: {
Line 18: StringBuilder stringBuilder = new StringBuilder() ;
Line 19: StringWriter stringWriter = new StringWriter(st ringBuilder);
Line 20: HtmlTextWriter htmlWriter = new HtmlTextWriter( stringWriter);
Line 21: base.Render(htm lWriter);
Source File: http://localhost/EmployeeInfo2/EmployeeForm.aspx Line: 19

Thanks for your help,
Cormy

"Cor Ligthert" wrote:
Hp,

What kind of script are you talking about, serverside of clientside?

Cor

Jul 21 '05 #6
Thanks so much for this, Cor. It works beautifully.

Cormy

"Cor Ligthert" wrote:
Cormy,

Can you add this in top of your page
<%@ Import Namespace="Syst em.Text" %>
<%@ Import Namespace="Syst em.IO" %>

I took the next error as well the rest you may do yourself.

I hope this helps?

Cor

"Cormy" <Co***@discussi ons.microsoft.c om>
Cor et al,

It's actually my problem. Hp started this thread for me.

What I want to do is use the methodology provided in the following
tutorial:
http://www.charon.co.uk/content.aspx...8&ArticleID=53 in order
to
render compliant XHTML.

I've compiled the Components class, and added the ?serverside? script to
my
webpage aspx file in Visual Studio. However, when I run Build I get the
following:

Compilation Error
Description: An error occurred during the compilation of a resource
required
to service this request. Please review the following specific error
details
and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'StringWriter'
could not be found (are you missing a using directive or an assembly
reference?)

Source Error:

Line 17: {
Line 18: StringBuilder stringBuilder = new StringBuilder() ;
Line 19: StringWriter stringWriter = new StringWriter(st ringBuilder);
Line 20: HtmlTextWriter htmlWriter = new HtmlTextWriter( stringWriter);
Line 21: base.Render(htm lWriter);
Source File: http://localhost/EmployeeInfo2/EmployeeForm.aspx Line: 19

Thanks for your help,
Cormy

"Cor Ligthert" wrote:
Hp,

What kind of script are you talking about, serverside of clientside?

Cor


Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2793
by: Dennis C. Drumm | last post by:
How can I programmable determine the type of file system a drive uses (FAT, FAT32, or NTFS)? Thanks, Dennis
0
1957
by: Bob | last post by:
I am using an API that needs a function pointer with the following prototype: void CALLBACK DXLExportStreamFunc ( const BYTE *bytes, DWORD length, void far *Context ) I get to pass it the Context and want to pass it a StringBuilder to catch the "bytes" in. I tried: System::Text::StringBuilder *sb = new System::Text::StringBuilder;
0
958
by: Arne Adams | last post by:
Hi changing a StringBuilder through a deduced type throws an exception - Sample Code void editBuilder(System::Text::StringBuilder* t System::String* insertThis = S"inserted" t->EnsureCapacity(t->Length + insertThis->Length + 1) std::cout << "Capacity: " << t->Capacity << "\n" t->Insert(0,insertThis)
1
2510
by: Jitesh Sinha | last post by:
Hi, I am running Windows 2003/ IIS 6.0. I was stuck with rather a abnormal behaviour of System.Web.mail class. It was truncating the message body after 3,071 character. The code i was testing was: Import Namespace="System.Web.Mail" Dim aa as new StringBuilder(600010) Dim i as Integer
2
500
by: Ben | last post by:
I have several pages written in aspx, but sometime the aspx page return the following error. And it hapeen, the whole web application gives this error, that means all the aspx files get affected. Any ideas? Here is the error: Server Error in '/' Application. -------------------------------------------------------------------------------- ...
6
1301
by: hplloyd | last post by:
I am using some code off the web that requires a string builder in a script within a web page. In order to get the script to work I need to include the relevant library in the references section in the project. However, if I include the System library, the application does not work. In the help files the string builder class is meant to...
7
11081
by: Mark Rae | last post by:
Hi, Has anyone successfully used the FTP stuff in the System.Net namespace against a VMS FTP server? I'm trying to do this at the moment and can't even get a directory listing, although there are no problems using the Chilkat FTP component, or connecting and browsing manually with a variety of FTP clients. The code I'm using is:
5
8280
by: Henry Stock | last post by:
I am trying to understand the following error: Any thing you can tell me about this is appreciated. Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's...
5
14968
by: SSekar | last post by:
Hi, I am getting this exceptions when I am trying to access the Frotran dll. Here is sample code for that. using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace TestApplicationFracEngine {
0
7420
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7446
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7778
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6003
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5349
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4966
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3459
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1908
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
731
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.