Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 4th, 2005, 12:48 PM
Registered User
Join Date: Oct 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default page_load() hassel

i am using and Visual Studio.NET environment for web application development using c#.
i am developing a asp.net1.1 web page project and using c# as the script language.
i want to know whether there is a way around to use page_load() method within <script> tag on the webform1.aspx page to display some welcome message(Response.Write() for instance), overpowering the page_load() method on the webform1.cs page in VS.NET environent.(no solution using web matrix please!)
Old October 4th, 2005, 02:36 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

I am not exactly sure what you're asking. Don't you want to use VS.NET's code behind feature but use in-line script instead?

This is possible, but it will seriously cripple VS.NET as a RAD development tool. You'll loose intelli sense, project compilation and may other benefits.

If you persist on doing this, you can create ASPX pages like you normally would (as you'd do in Web Matrix or Dreamweaver MX or Notepad or whatever). Then drag the file from a Windows Explorer into VS.NET. When it asks if you want to create a class for the file, simply click no, and you'll end up with an ASPX file for in-line code.

But again, I wouldn't do this if I were you.


Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Pulse by The Tea Party (Track 9 from the album: Transmission) What's This?
Old October 6th, 2005, 01:30 PM
Registered User
Join Date: Oct 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

thanks for the help. i was exactly loking for this solution. as i m a beginner in this field. therefore i was quite surpised by the different behaviour by web matrix and VS.NET. it seems to be ok now. keep in touch .

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page_Load question wayneamurphy BOOK: Professional ASP.NET 2.0 Server Control and Component Development ISBN: 978-0-471-79350-2 4 November 6th, 2006 03:54 AM
Page_Load not working! New2ASPnet General .NET 6 July 28th, 2004 01:53 PM
forcing a page_load ? Rashe ASP.NET 1.0 and 1.1 Basics 2 February 16th, 2004 10:53 AM
force Page_Load miguel.ossa ASP.NET 1.0 and 1.1 Basics 7 January 23rd, 2004 06:04 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.