Posted on 2009-12-16
Medium Priority
Last Modified: 2012-06-27
Getting an Error Message on code below....
Dim writer As System.Web.UI.HtmlTextWriter
        writer.Write("      <table><tr>")
        writer.Write("        <td width=""25%"" align=""right"" valign=""middle"">Assign PointMan ID:</td>")
        writer.Write("        <td width=""75%"" align=""left"" valign=""middle"">ptmn0")
        writer.Write("        </td>")
        writer.Write("      </tr></table>")

Open in new window

Question by:lrbrister
LVL 18

Expert Comment

by:Rajar Ahmed
ID: 26065678
how abt this ???  

Response.Write("      <table><tr>")
        Response.Write("        <td width=""25%"" align=""right"" valign=""middle"">Assign PointMan ID:</td>")
        Response.Write("        <td width=""75%"" align=""left"" valign=""middle"">ptmn0")
        Response.Write("        </td>")
        Response.Write("      </tr></table>")

Open in new window


Author Comment

ID: 26065776
The code I have above is from an existing project that I've taken over.  i HAVE to use the writer.write on new pages and I can't for the life of me figure out why this isn't working
LVL 23

Accepted Solution

Snarf0001 earned 2000 total points
ID: 26065897
Whats the error message?  Wondering if it's a null object error or something along those lines...
try adding "new":

Dim writer As New System.Web.UI.HtmlTextWriter

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question