Can Not pull contents of a textarea

Hi Folks,
   I am scrapping some web pages. I have a simple asp page with a textarea and the next page pulls from the textarea to do some scrapping etc. All of the test pages that am scrapping are fine. However, I have to test examples in which my page will not pull the data from the textarea and I have no clue why. I thought perhaps I needed to increase the rows in the textarea but that should not matter - wouldn't it simply send what it could?
 I am using localhost, classical asp  and all of other examples process just fine - I can pull the contents of the textarea.
I have enclosed the coding from my two pages. The contents of the textarea will contain the source code that is copied and pasted from either emails or html pages. As I have said, all my other examples work fine EXCEPT for 2 and those 2 are the ones I need to process the most. Any help is appreciated. The error message I receive is this:

Error Message:
The website cannot display the page
  HTTP 500    
Most likely causes:
•The website is under maintenance.
•The website has a programming error.
 This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.

 Below is my textbox page:

<%@ Language=VBScript %>

        <title>Default Page</title>

     <form method="post" action="Page.asp" name="Page.asp">
    Paste Text the Data to be Extracted into the box.</br>
    Then click the Submit Button</br></br>

      <textarea  id="txtinfo1" name="txtinfo1" rows ="25" cols="80"> </textarea>
        <br />
    <input type="submit" name="Submit" value="Submit">

Open in new window

And this is my page to pull the content of the textbox:

<%@ Language="VBScript" %>
<!DOCTYPE html>
<html lang="en">
        <meta charset="utf-8" />
dim sText 

     response.write "Am at Page.asp" & "<br>"

         sText = Request.Form("txtinfo1")
         if sText = "" or isNull(sText) then
            write "Unable to pull text"
           strLength = Len(sText)
           response.write "length" & "<br>"
           response.write sText 
           response.write strLength
        end if

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hi @Overthere,

What database are you using?

What data type is the fieldname?

Also, try these steps to see if you can actually see the actual error message.

1, to fire up internet explorer
click on Internet Options
Click on Advanced tab,
Scroll down till you see a box that says, "Show friendly HTTP error messages.
Uncheck that box. Apply, OK and close the browser.

Now, try testing your app again to see what error messages you get.

If you still get the same message you showed on this post, then try follow this to send error messages to the browser.

This should reveal the real issue you are having:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shaun KlineLead Software EngineerCommented:
Line 16 in the code for the second page has a syntax error. It should be response.write, not just write. The syntax error will cause the http 500 error message.
OverthereAuthor Commented:
Line 16 was my error in typing it in the question box...
No database is being used. I am simply having a user copy and paste their source code from an HTML page so I can scrap the data from the HTML page that I need.
I will try unchecking the friendly HTTP option and see what happens. I will keep you folks posted and I appreciate both of you responding...
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

Shaun KlineLead Software EngineerCommented:
If you submit a blank/simple textarea, you get no error, correct? Then the error must be happening in the code being submitted. Instead of writing the submitted text directly to the page, either put it into a text area on your results page, or replace all of the less than/greater than signs with their equivalent HTML codes (&lt; / &gt;). This will allow you to verify that it is the submitted code causing the issue, not your page. From there, you would need to review the submitted code to see what is being posted. You could also use the W3C Markup Validation Direct Input tool to see if there are any errors in the HTML that could be causing the issue.
Big MontyWeb Ninja at largeCommented:
you can also try using the Server.HTMLEncode function, this'll allow you to display special characters in html

Response.Write Server.HTMLEncode( Request.Form("txtAreaName") )
OverthereAuthor Commented:
I appreciate everyone helping but I need to clarify something here.  One thing is that  the user pastes  html code from emails or other html pages into the textarea, I pull what they have pasted in the textarea into a variable, hence:     sText = Request.Form("txtinfo1")
Then I  decode the html chars that I don't want etc and pick out the data from strings - I am scrapping data from what they paste into the textarea. Not redisplaying what they have pasted.

This is what I found concerning the error message but what confuses me is that I am not attached to a server for web development, I am using my laptop in localhost mode, Windows 7. So how  in the heck do I apply the solution??
Here's what I found:

This is a server side issue related to the settings related to the IIS service.  When you received this error, the amount of data that can be received in the "request object" is likely restricted, some servers have a restriction as low as 200 KB.  

To work around this issue, you should contact your web Administrator or use 3rd party FTP software to upload larger files.

There are some technical workarounds, related to the metabase.xml, such as modifying these settings:

Well, you didn't say anything about uploading file to the server or the database (bad idea).

My best guess then would be that perhaps, you need to increase the size of the fieldname since it is textarea.

Now, if you are uploading a file, then modifying the metabase.xml makes sense.

More info is needed from you.
Big MontyWeb Ninja at largeCommented:
even when running a web site on your localhost, you're still running a web server. asp pages need something to interpret them, as do html files, so yes you are running a web server, locally, which is a normal thing to do.

The issue you're running into is the Request data you're looking to transfer between pages is too great. S.S. was on the right track, you need to edit the metabase.xml file and increase the size of data allowed for request actions. The article below gives specific instructions on how to increase the amount of data sent:
OverthereAuthor Commented:
thank you, you folks have been very helpful and now I am going to backup and try the solution. I am awarding points to both SammySeltzer and BigMonty because together you really help me to move forward with a resolution. If this is ot satisfactory please let me know....
OverthereAuthor Commented:
Thank you everyone, your help was appreciated.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.