473,394 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

My First .NET page - Not Good

da
This is my first try at an .ASPX page. I guess I'm skipping the hello world
step. What all do I need to do to make this baby run? In .ASP VBScript I
just put it between <% %>.

Here's my test which throws and error --
http://www.womentowomen.info/test.aspx

Code:

System.Net.WebClient wc = new System.Net.WebClient();

StreamReader stm = new
StreamReader(wc.OpenRead("http://www.womentowomen.info/emailtemplates/grid23
..asp?id=122"));

return stm.ReadToEnd();
Nov 19 '05 #1
3 907
If you follow the Guide that the error message is describing for you.. you
will get the real error.

that is... change the Web.Config file.. and set the Customer Error
parameter..to <customErrors mode="Off"/>

I asume right now it's set to <customErrors mode="RemoteOnly"/>

then.. after that, you will get to see the real error on the page!

Best greards
/Lars netzel
"da" <da@da.com> skrev i meddelandet
news:Tc*******************@twister.nyroc.rr.com...
This is my first try at an .ASPX page. I guess I'm skipping the hello
world step. What all do I need to do to make this baby run? In .ASP
VBScript I just put it between <% %>.

Here's my test which throws and error --
http://www.womentowomen.info/test.aspx

Code:

System.Net.WebClient wc = new System.Net.WebClient();

StreamReader stm = new
StreamReader(wc.OpenRead("http://www.womentowomen.info/emailtemplates/grid23
.asp?id=122"));

return stm.ReadToEnd();

Nov 19 '05 #2
I think you need to stop skipping steps. First of all, what you did with ASP
is irrelevant. Second, we have no context for your code. It looks like the
body of a function, as it returns a value. But what it returns a value TO is
unknown. Also, you neglected to mention what the error you received is.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"da" <da@da.com> wrote in message
news:Tc*******************@twister.nyroc.rr.com...
This is my first try at an .ASPX page. I guess I'm skipping the hello world step. What all do I need to do to make this baby run? In .ASP VBScript I
just put it between <% %>.

Here's my test which throws and error --
http://www.womentowomen.info/test.aspx

Code:

System.Net.WebClient wc = new System.Net.WebClient();

StreamReader stm = new
StreamReader(wc.OpenRead("http://www.womentowomen.info/emailtemplates/grid23 .asp?id=122"));

return stm.ReadToEnd();

Nov 19 '05 #3
or.. well.. I guess you are sitting local and I'm remote.. sorry... please
provide the error message!

/Lars
"Lars Netzel" <tr*****@apa.se> skrev i meddelandet
news:Ob**************@TK2MSFTNGP09.phx.gbl...
If you follow the Guide that the error message is describing for you.. you
will get the real error.

that is... change the Web.Config file.. and set the Customer Error
parameter..to <customErrors mode="Off"/>

I asume right now it's set to <customErrors mode="RemoteOnly"/>

then.. after that, you will get to see the real error on the page!

Best greards
/Lars netzel
"da" <da@da.com> skrev i meddelandet
news:Tc*******************@twister.nyroc.rr.com...
This is my first try at an .ASPX page. I guess I'm skipping the hello
world step. What all do I need to do to make this baby run? In .ASP
VBScript I just put it between <% %>.

Here's my test which throws and error --
http://www.womentowomen.info/test.aspx

Code:

System.Net.WebClient wc = new System.Net.WebClient();

StreamReader stm = new
StreamReader(wc.OpenRead("http://www.womentowomen.info/emailtemplates/grid23
.asp?id=122"));

return stm.ReadToEnd();


Nov 19 '05 #4

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

Similar topics

3
by: t-ball | last post by:
I am new to the world of ASP, and at the same time VBscript (also a firt time poster). I am currently creating a multiple page form where the information on the first page needs to be validated....
19
by: DotNetIsHorrible | last post by:
I write CRUD database applications for a living for an audience of about 100 users per application using classic ASP. I maintain and frequently change on user's request 22 different applications...
3
by: Bryan Harrington | last post by:
I have a list of requests that I'm displaying. The client wants to be able to display the details of the FIRST request as the page loads. Right now, as I loop through the recordset, I'm checking...
6
by: Frank Wilson | last post by:
Tom, It sounds to me like ASP, not ASP.NET is handling the request for WebForm1.aspx. This is most likely an IIS config issue that may have been caused by order of installation or...
1
by: Shourie | last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle. 1) MainPage_load 2) User control1_Load user clicks a...
16
by: TB | last post by:
Hi all: If you think that the following comments are absolute amateurish, then please bear with me, or simply skip this thread. A couple of months back I made the decision to initiate a...
3
by: danc | last post by:
I have a datagrid with a checkbox and dropdown list in each row. Both set AutoPostBack to true and ItemCommand and OnSelectedIndexChanged events for these controls works fine when DataGrid is not...
5
by: Paal Berggreen | last post by:
I am involved with development of a Portal solution using ASP.NET 2.0 and WebParts. The WebParts framework use the default personalization providers, and the personalization data thus ends up in...
7
by: | last post by:
I'm using ASP.NET 2.0, C#, SQL Server 2005, and databound controls like the DataList and the GridView. Right now I'm using SqlDataSource as part of very quick and dirty site; I'm not looking to...
10
by: Tom Cole | last post by:
While I've done javascript work for as long as I can remember (since Netscape first released it), I've only ever used it for trivial things, change a color here, validate a text element there, blah...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...

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.